Jump to content


Photo

What Am I Missing Here?


  • This topic is locked This topic is locked
4 replies to this topic

#1 timdog82001

timdog82001

    X-S Genius

  • Members
  • PipPipPipPip
  • 877 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 18 February 2007 - 09:21 AM

I'm trying to add a button to the dialogbuttonmenu.xml (shutdown menu), and I'm almost done. However, I'm really adding two buttons, but you access the second one by pressing left or right, like you do going between the shutdown button and the shutdown timers. The buttons I'm adding both launch scripts...

I can succesfully launch both the scripts, the buttons highlight correctly, the descriptions show up correctly....The only thing that refuses to show is the label for the button itself...Does anybody know what I'm doing wrong here? I of course have the label added to translate.xml, and i've checked and checked and checked again, and its exactly as it should be....In fact, I'll post that under the first snippet of code here as proof. Here's part of what i've added...

CODE
<control type="button" id="3118">
            <description>Shutdown PC Button</description>
            <posx>340</posx>
            <posy>178</posy>
            <width>350</width>
            <height>59</height>
            <label>25009</label>
            <include>TextcolorBlack</include>
            <include>shadow-grey</include>
            <font>font14</font>
            <textoffsetx>40</textoffsetx>
            <aligny>center</aligny>
            <texturefocus>guide-button-focus.png</texturefocus>
            <texturenofocus>-</texturenofocus>
            <alttexturefocus>guide-button-focus.png</alttexturefocus>
            <onclick>XBMC.RunScript(Q:\scripts\ShutdownPConLAN\sol.py)</onclick>
            <pulseonselect>no</pulseonselect>
            <onleft>3117</onleft>
            <onright>3117</onright>
            <onup>3113</onup>
            <ondown>3116</ondown>
            <visible allowhiddenfocus="true">Control.HasFocus(3118)</visible>
            <animation effect="fade" delay="450" time="200">WindowOpen</animation>
            <animation effect="fade" time="200">WindowClose</animation>
            <animation effect="zoom" start="95" end="100" center="515,245" time="300" reversible="false">focus</animation>
        </control>
        <control type="button" id="3117">
            <description>Start PC Button</description>
            <posx>340</posx>
            <posy>178</posy>
            <width>350</width>
            <height>59</height>
            <label>25008</label>
            <include>TextcolorBlack</include>
            <include>shadow-grey</include>
            <font>font14</font>
            <textoffsetx>40</textoffsetx>
            <aligny>center</aligny>
            <texturefocus>guide-button-focus.png</texturefocus>
            <texturenofocus>-</texturenofocus>
            <alttexturefocus>guide-button-focus.png</alttexturefocus>
            <onclick>XBMC.RunScript(Q:\scripts\Tweaked WOL\default.py)</onclick>
            <pulseonselect>no</pulseonselect>
            <onleft>3118</onleft>
            <onright>3118</onright>
            <onup>3113</onup>
            <ondown>3116</ondown>
            <visible allowhiddenfocus="true">System.HasNetwork + System.LoggedOn + System.HasLocks + System.HasLoginScreen + Skin.HasSetting(USE_RemoteComputer) + !Control.HasFocus(3118)</visible>
            <animation effect="fade" delay="450" time="200">WindowOpen</animation>
            <animation effect="fade" time="200">WindowClose</animation>
            <animation effect="zoom" start="95" end="100" center="515,245" time="300" reversible="false">focus</animation>
        </control>


and the labels that aren't showing up, as they're seen in translate.xml

CODE

    <include name="25008">
        <label>Start PC</label>
    </include>
    <include name="25009">
        <label>Shutdown PC</label>
    </include>

Edited by timdog82001, 18 February 2007 - 09:25 AM.


#2 Jeroen_JRP

Jeroen_JRP

    X-S Young Member

  • Members
  • Pip
  • 40 posts
  • Xbox Version:v1.6
  • 360 version:v3.0 (falcon)

Posted 18 February 2007 - 11:52 AM

You tried restarting your xbox, that works for me most of the time biggrin.gif

#3 timdog82001

timdog82001

    X-S Genius

  • Members
  • PipPipPipPip
  • 877 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 18 February 2007 - 12:12 PM

QUOTE(Jeroen_JRP @ Feb 18 2007, 02:59 AM) View Post

You tried restarting your xbox, that works for me most of the time biggrin.gif


yeah, i've restarted my xbox almost everytime i changed something.

By the way, i know there are a few smallish things kinda wrong in that code i posted, I have since changed it, but none of it is stuff that could affect visibility of the label, especially since the button itself is obviously visible, since i can navigate to it and it highlights, and the description shows up and everything.

I've tried even putting in the lable id number for other thinsg already in the skin, like i put in the number for "Reboot Xbox" but it still didn't show up....Here's a screenshot.

IPB Image

Also, just to so everybody understands where i am, i'm reposting the code as it is now. I've changed it to be three buttons....Two of them are the same, except one of thsoe two have allowhiddenfocus="true," and the other one doesn't....When i had only two buttons, and both allowed hidden focus, if i turned this mod off (I added a setting for it so i can disable it) it would still highlight the button, even though it wasn't 'visible'...so i just made it so the stock one is regular and the duplicate, which you can only navigate to by first going through the second button, allows hidden focus. Sorry if that was confusing...It isn't really that important...but if anybody sees i have two of the same button in the same spot, thats why.

CODE
<control type="button" id="3125">
            <description>Start PC Button</description>
            <posx>340</posx>
            <posy>178</posy>
            <width>350</width>
            <height>59</height>
            <label>25008</label>
            <include>TextcolorBlack</include>
            <include>shadow-grey</include>
            <font>font14</font>
            <textoffsetx>40</textoffsetx>
            <aligny>center</aligny>
            <texturefocus>guide-button-focus.png</texturefocus>
            <texturenofocus>-</texturenofocus>
            <alttexturefocus>guide-button-focus.png</alttexturefocus>
            <onclick>XBMC.RunScript(Q:\scripts\Tweaked WOL\default.py)</onclick>
            <pulseonselect>no</pulseonselect>
            <onleft>3124</onleft>
            <onright>3124</onright>
            <onup>3113</onup>
            <ondown>3120</ondown>
            <visible allowhiddenfocus="true">Control.HasFocus(3125)</visible>
            <animation effect="fade" delay="450" time="200">WindowOpen</animation>
            <animation effect="fade" time="200">WindowClose</animation>
            <animation effect="zoom" start="95" end="100" center="515,245" time="300" reversible="false">focus</animation>
        </control>
        <control type="button" id="3124">
            <description>Shutdown PC Button</description>
            <posx>340</posx>
            <posy>178</posy>
            <width>350</width>
            <height>59</height>
            <label>25009</label>
            <include>TextcolorBlack</include>
            <include>shadow-grey</include>
            <font>font14</font>
            <textoffsetx>40</textoffsetx>
            <aligny>center</aligny>
            <texturefocus>guide-button-focus.png</texturefocus>
            <texturenofocus>-</texturenofocus>
            <alttexturefocus>guide-button-focus.png</alttexturefocus>
            <onclick>XBMC.RunScript(Q:\scripts\ShutdownPConLAN\sol.py)</onclick>
            <pulseonselect>no</pulseonselect>
            <onleft>3125</onleft>
            <onright>3125</onright>
            <onup>3113</onup>
            <ondown>3120</ondown>
            <visible allowhiddenfocus="true">Control.HasFocus(3124)</visible>
            <animation effect="fade" delay="450" time="200">WindowOpen</animation>
            <animation effect="fade" time="200">WindowClose</animation>
            <animation effect="zoom" start="95" end="100" center="515,245" time="300" reversible="false">focus</animation>
        </control>
        <control type="button" id="3123">
            <description>Start PC Button</description>
            <posx>340</posx>
            <posy>178</posy>
            <width>350</width>
            <height>59</height>
            <label>25008</label>
            <include>TextcolorBlack</include>
            <include>shadow-grey</include>
            <font>font14</font>
            <textoffsetx>40</textoffsetx>
            <aligny>center</aligny>
            <texturefocus>guide-button-focus.png</texturefocus>
            <texturenofocus>-</texturenofocus>
            <alttexturefocus>guide-button-focus.png</alttexturefocus>
            <onclick>XBMC.RunScript(Q:\scripts\Tweaked WOL\default.py)</onclick>
            <pulseonselect>no</pulseonselect>
            <onleft>3124</onleft>
            <onright>3124</onright>
            <onup>3113</onup>
            <ondown>3120</ondown>
            <visible>System.HasNetwork + System.LoggedOn + System.HasLocks + System.HasLoginScreen + Skin.HasSetting(USE_RemoteComputer) + [!Control.HasFocus(3124) + !Control.HasFocus(3125)]</visible>
            <animation effect="fade" delay="450" time="200">WindowOpen</animation>
            <animation effect="fade" time="200">WindowClose</animation>
            <animation effect="zoom" start="95" end="100" center="515,245" time="300" reversible="false">focus</animation>
        </control>


#4 Blackbolt

Blackbolt

    Skin God

  • Moderator
  • PipPipPipPipPip
  • 1,582 posts
  • Location:England
  • Interests:Graphic Design
  • Xbox Version:v1.1
  • 360 version:v3.0 (falcon)

Posted 18 February 2007 - 03:17 PM

If you have added the label to Translate.xml then you shouldnt be using the tag

CODE
<label>25008</label>


You need to use:

CODE
<include>25008</include>


Hope this helps, <label> is only for default XBMC strings in the language files, <include> is for anything in the includes or files linked via that.

#5 timdog82001

timdog82001

    X-S Genius

  • Members
  • PipPipPipPip
  • 877 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 19 February 2007 - 12:30 AM

thanks! I can't believe I didn't remember that....

Oh well, its been a while since i've done any skin mods. I'll be posting this in a few minutes for anybody that's interested.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users