XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Skin Help and Support > Project Mayhem III (PM3)

Project Mayhem III (PM3) Subforum for Project Mayhem 3, PM3.HD, and mods for/of them.

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-10-19, 07:17   #1
marcusjb
Junior Member
 
Join Date: Jun 2008
Posts: 12
marcusjb is on a distinguished road
Default home-focus.gif doesn't work on some items

I rearranged some items on the home screen, and now the bottom two items of the main five don't have the yellow dot, which i'm assuming is home-focus.gif

Otherwise everything works fine. Any idea why it would work on the first three? Here is the code of one that doesn't work.

<description>My Programs normal push button</description>
<posx>53</posx>
<posy>163</posy>
<width>12</width>
<height>14</height>
<hitrect x="45" y="15" w="220" h="40" />
<label>0</label>
<font>special13</font>
<onclick>ActivateWindow(MyPrograms)</onclick>
<onleft>98</onleft>
<onright>96</onright>
<onup>3</onup>
<ondown>4</ondown>
<texturefocus>home-focus.gif</texturefocus>
<texturenofocus>-</texturenofocus>
<textoffsetx>30</textoffsetx>
marcusjb is offline   Reply With Quote
Old 2008-10-19, 08:42   #2
Jezz_X
Team-XBMC Skinner
 
Jezz_X's Avatar
 
Join Date: Jun 2006
Location: Earth
Posts: 2,517
Jezz_X is on a distinguished road
Default

looks fine to me so I assume you have the button code on top of the
PHP Code:
<control type="image">
    <
posx>50</posx>
    <
posy>204</posy>
    <
width>22</width>
    <
height>22</height>
    <
texture>homebutton-small.png</texture>
</
control
so the background one gets drawn over the top of it making the focus one invisible
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Jezz_X is offline   Reply With Quote
Old 2008-10-19, 08:51   #3
marcusjb
Junior Member
 
Join Date: Jun 2008
Posts: 12
marcusjb is on a distinguished road
Default

Thanks for your quick reply! Unfortunately I'm not really sure if you're asking me a question or pointing out the problem. Could you elaborate for me? Much appreciated!
marcusjb is offline   Reply With Quote
Old 2008-10-19, 08:56   #4
Jezz_X
Team-XBMC Skinner
 
Jezz_X's Avatar
 
Join Date: Jun 2006
Location: Earth
Posts: 2,517
Jezz_X is on a distinguished road
Default

the xmls are drawn from top to bottom
if you have the nonfocus background image control (<texture>homebutton-small.png</texture> The one I posted above) below the actual button control in the home.xml file (the one you posted) the nonfocus one will be drawn on top of it making the focus drawn under it ( so you can't see it )
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Jezz_X is offline   Reply With Quote
Old 2008-10-19, 09:03   #5
marcusjb
Junior Member
 
Join Date: Jun 2008
Posts: 12
marcusjb is on a distinguished road
Default

That makes sense. For some reason this home.xml has "My Weather normal push button" control listed twice along with the other ones that are working. Where as the two that aren't are listed once, i guess they're not repeated below the nonfocus image control like you said. I'll blame whoever made this home.xml!
marcusjb is offline   Reply With Quote
Old 2008-10-19, 09:05   #6
marcusjb
Junior Member
 
Join Date: Jun 2008
Posts: 12
marcusjb is on a distinguished road
Default

or, its just because when I changed the posy on the buttons, I didn't realize i had to change the ones below. I get it now.
marcusjb is offline   Reply With Quote
Old 2008-10-19, 09:06   #7
Jezz_X
Team-XBMC Skinner
 
Jezz_X's Avatar
 
Join Date: Jun 2006
Location: Earth
Posts: 2,517
Jezz_X is on a distinguished road
Default

Quote:
Originally Posted by marcusjb View Post
I'll blame whoever made this home.xml!
That would be me

Just post the whole thing to pastebin.com if your still having troubles and I'll look at it
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Jezz_X is offline   Reply With Quote
Old 2008-10-19, 09:23   #8
marcusjb
Junior Member
 
Join Date: Jun 2008
Posts: 12
marcusjb is on a distinguished road
Default

I'm sure I'll get it working now. Why are there two My Pictures controls with different posx and posy, along with the other controls, am I missing something?
marcusjb is offline   Reply With Quote
Old 2008-10-19, 09:33   #9
marcusjb
Junior Member
 
Join Date: Jun 2008
Posts: 12
marcusjb is on a distinguished road
Default

Ok, i've gotten myself pretty lost, and i don't want to start over, so if you don't mind looking at it, it would be great.

http://pastebin.ca/1230788
marcusjb is offline   Reply With Quote
Old 2008-10-19, 10:13   #10
Jezz_X
Team-XBMC Skinner
 
Jezz_X's Avatar
 
Join Date: Jun 2006
Location: Earth
Posts: 2,517
Jezz_X is on a distinguished road
Default

Yeah its all to do with what I said the order of the things in the xml getting drawn over the top of the others
try this one
http://pastebin.ca/1230806
note I changed the Y pos and the layout a bit of all the menu ones
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Jezz_X is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:34.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project