2019-07-05, 20:27
I'd like to customize each button with a colored stripe. So "Settings" should have a yellow stripe on top, "Music" should have a red stripe.
I tried this by setting up a variable that should change the value (path to images with different colors) with an hasfocus-condition. But all Buttons use the same color. If I hover over the buttons the color changes of all the buttons. That's weird.
Those for buttons should have a stripe in red,blue,yellow and green color. But my code messes up. Please help me out?
Here some screenshots
code:
for the buttons that are in an itemlayout/focusedlayout:
I tried this by setting up a variable that should change the value (path to images with different colors) with an hasfocus-condition. But all Buttons use the same color. If I hover over the buttons the color changes of all the buttons. That's weird.
Those for buttons should have a stripe in red,blue,yellow and green color. But my code messes up. Please help me out?
Here some screenshots
code:
xml:<variable name="MainMenu_Button_stripe">
<value condition="Container(9000).Hasfocus(1)">special://skin/extras/stripe/red.png</value>
<value condition="Container(9000).Hasfocus(2)">special://skin/extras/stripe/blue.png</value>
<value condition="Container(9000).Hasfocus(3)">special://skin/extras/stripe/yellow.png</value>
<value condition="Container(9000).Hasfocus(4)">special://skin/extras/stripe/green.png</value>
</variable>
for the buttons that are in an itemlayout/focusedlayout:
xml:<control type="image"> <!-- oberer Streifen -->
<top>24</top>
<left>7</left>
<width>190</width>
<height>4</height>
<texture>$VAR[MainMenu_Button_stripe]</texture>
<aspectratio>scale</aspectratio>
</control>