SettingsCategory buttons
#1
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...

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.
Reply
#2
iirc there's indeed some hardcoded stuff going on in the settingscategory window.

try to experiment with a togglebutton instead, that might get you closer to what you're after:
Code:
<control type="togglebutton" id="10">
    <texturefocus border="10">Button_Focus.png</texturefocus>
    <texturenofocus border="10">Button_NoFocus.png</texturenofocus>
    <alttexturefocus border="10">Button_AltFocus.png</alttexturefocus>
    <alttexturenofocus border="10">Button_AltNoFocus.png</alttexturenofocus>
    <usealttexture>!ControlGroup(5).HasFocus</usealttexture>
</control>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Perfect, I'll give it a shot.

Thanks a bunch ronie.
Reply

Logout Mark Read Team Forum Stats Members Help
SettingsCategory buttons0