2015-03-04, 21:56
Having a problem I'm trying to get creative with, and failing miserably...
I'd like to retexture the default button control id 10.
I can apply a <texturefocus> and <texturenofocus> ofcourse, but I'd like to extend beyond the default behavior which occurs when moving from list id 3 to list id 5.
Currently (I believe) a alpha blend is applied to the texturefocus to display to the user it is still active. I would like a different texture all together.
I've tried using conditional visibility with <texturefocus> based on grouplist id 5 having focus, and this seems to be ignored.
I've also tried using a variable for the texture string value, this results in nothing.
Lastly I've tried duplicating the whole control, using conditions to define which is displayed... The first is always used, the second ignored, regardless of visibility.
A quick display of different attempts...
Any ideas for me to try? Appreciate any and all help.
I'd like to retexture the default button control id 10.
I can apply a <texturefocus> and <texturenofocus> ofcourse, but I'd like to extend beyond the default behavior which occurs when moving from list id 3 to list id 5.
Currently (I believe) a alpha blend is applied to the texturefocus to display to the user it is still active. I would like a different texture all together.
I've tried using conditional visibility with <texturefocus> based on grouplist id 5 having focus, and this seems to be ignored.
I've also tried using a variable for the texture string value, this results in nothing.
Lastly I've tried duplicating the whole control, using conditions to define which is displayed... The first is always used, the second ignored, regardless of visibility.
A quick display of different attempts...
PHP Code:
Variable Attempt
<variable name="SettingsT3Button">
<value condition="ControlGroup(5).HasFocus">list_textures/t3_activesettings.png</value>
<value>list_textures/t3_focusbutton.png</value>
</variable>
<control type="button" id="10">
<texturefocus>$VAR[SettingsT3Button]</texturefocus>
</control>
PHP Code:
Condition Attempts
<control type="button" id="10">
<texturefocus condition="ControlGroup(5).HasFocus">list_textures/t3_activesettings.png</texturefocus>
<texturefocus condition="!ControlGroup(5).HasFocus">list_textures/t3_focusbutton.png</texturefocus>
</control>
PHP Code:
Condition Attempts
<control type="button" id="10">
<visible>!ControlGroup(5).HasFocus</visible>
<texturefocus>list_textures/t3_focusbutton.png</texturefocus>
</control>
<control type="button" id="10">
<visible>ControlGroup(5).HasFocus</visible>
<texturefocus>list_textures/t3_activesettings.png</texturefocus>
</control>
Any ideas for me to try? Appreciate any and all help.