VAR + colordiffuse + Itemlayout
#1
So, if you use a VAR in itemlayout to check a Listitem condition isn't it supposed to check for the ListItem that is not in focus?
With the following code it changes the colordiffuse of the itemlayout based on whether the focused item has a clearlogo.
Is it supposed to do that?

Code:
<control type="panel" id="637">
    ...
    <itemlayout height="325" width="410">
    ...
    <control type="image">
        <texture>$INFO[ListItem.Art(fanart)]</texture>
        <colordiffuse>$VAR[LogoDiffuse]</colordiffuse>
    </control>
    <control type="image">
        <texture>$INFO[ListItem.Art(clearlogo)]</texture>
    </control>

Code:
<variable name="LogoDiffuse">
    <value condition="!IsEmpty(ListItem.Art(clearlogo))">D7E5E5E5</value>
    <value>FFFFFFFF</value>
</variable>
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#2
I have variables in listitems, both focusedlayout and itemlayout and they work fine.

EDIT: I can confirm this. I guess its a problem with colordiffuse, as variables in textures and labels work as expected.
Reply
#3
It looks like it's processed out of scope in the GUIControlFactory. My compiling is broken currently but I'll do a PR with a fix in the next days.
Image
Reply
#4
Thnx guys
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply

Logout Mark Read Team Forum Stats Members Help
VAR + colordiffuse + Itemlayout0