PDA

View Full Version : What am I doing wrong here?


timdog82001
2007-02-24, 12:44
I'm trying to make a button that allows you to choose between three different modes, so only one is shown at a time, but for some reason, it won't let me move from the first button. It goes through the actions as if their focusing, but the text never changes, the settings never change, and when its supposedly focused on the other two buttons, the highlight goes away....

I imagine there is something really stupid and obvious i'm doing wrong here, but i'm too tired to tell and i'm starting to get really frustrated. Could some body point me toward what I need to fix here?


here's the relevant code...
<control type="group" id="3">
<control type="button" id="4">
<description>Single Script Mode Button</description>
<posx>340</posx>
<posy>160</posy>
<width>350</width>
<height>59</height>
<label>Single Script Mode</label>
<texturefocus>guide-button-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onleft>6</onleft>
<onright>5</onright>
<onup>2</onup>
<ondown>7</ondown>
<font>font14</font>
<textoffsetx>40</textoffsetx>
<textoffsety>18</textoffsety>
<include>TextcolorBlack</include>
<include>shadow-white</include>
<onfocus>Skin.Reset(BookmarkMode-2)</onfocus>
<onfocus>Skin.Reset(USE_Category-2)</onfocus>
<visible allowhiddenfocus="true">![Skin.HasSetting(USE_Category-2) + Skin.HasSetting(BookmarkMode-2)]</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="5">
<description>Category Mode Button</description>
<posx>340</posx>
<posy>160</posy>
<width>350</width>
<height>59</height>
<label>Category Mode</label>
<texturefocus>guide-button-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onleft>4</onleft>
<onright>6</onright>
<onup>2</onup>
<ondown>7</ondown>
<onfocus>Skin.SetBool(USE_Category-2)</onfocus>
<onfocus>Skin.Reset(BookmarkMode-2)</onfocus>
<font>font14</font>
<textoffsetx>40</textoffsetx>
<include>TextcolorBlack</include>
<include>shadow-white</include>
<visible allowhiddenfocus="true">Skin.HasSetting(USE_Category-2)</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="6">
<description>Bookmark Mode Button</description>
<posx>340</posx>
<posy>160</posy>
<width>350</width>
<height>59</height>
<label>Video Bookmark Mode</label>
<texturefocus>guide-button-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onleft>5</onleft>
<onright>4</onright>
<onup>2</onup>
<ondown>7</ondown>
<onfocus>Skin.SetBool(BookmarkMode-2)</onfocus>
<onfocus>Skin.Reset(USE_Category-2)</onfocus>
<font>font14</font>
<textoffsetx>40</textoffsetx>
<include>TextcolorBlack</include>
<include>shadow-white</include>
<visible allowhiddenfocus="true">Skin.HasSetting(BookmarkMode-2)</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>

Jezz_X
2007-02-24, 19:49
..........it won't let me move from the first button. It goes through the actions as if their focusing, but the text never changes, the settings never change, and when its supposedly focused on the other two buttons, the highlight goes away....


Allowhiddenfocus="true" would be one of the main problems and why it dosn't highlight because the hidden button is the one that has focus not the new ones