Include condition (1 Viewer)

MightyPolo

Portal Pro
October 24, 2007
181
80
Home Country
Czech Republic Czech Republic
Hi.
Iam modding Moving pictures Titan skin for NetflixAlpha plugin and trying to use this code
Code:
<include condition="#(eq(#ShowSideInfo, 'true'))">movingpictures.views.xml</include>

Mentioned part is never included, although I know that value of #ShowSideInfo is true/false from the label which displays it.

Am I missing something?
Has the GUIProperty to be set in some special way so it can be used in condition?

Thanks for help.
p.
 

MightyPolo

Portal Pro
October 24, 2007
181
80
Home Country
Czech Republic Czech Republic
This should work:

<include condition="!#(eq(#ShowSideInfo,))">movingpictures.views.xml</include>
Hi.
Iam must be missing something, because it doesnt work.
But the condition feature works, because when I set
Code:
<include condition="#(eq(1,1))">movingpictures.views.xml</include>
its always included.

The property is set
Code:
GUIPropertyManager.SetProperty("#ShowSideInfo", "true");

Thanks.
 

wizard123

Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Shouldnt just this work ?
    <include condition="#ShowSideInfo">movingpictures.views.xml</include>
     

    Pog

    Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    Test #ShowSideInfo via a "label" control to verify that it contains the value your checking.

    condition="#(eq(#ShowSideInfo,'[value]'))" should be all you need for the file to be included.
     

    MightyPolo

    Portal Pro
    October 24, 2007
    181
    80
    Home Country
    Czech Republic Czech Republic
    Well, I gues that problem is that property is not set when the skin is loading.
    It is set, just after some work is done.

    That would explain behavior Iam seeing.
    Is there any other way how to "hide" group of controls?

    I wanted to avoid setting visible parametr to all controls in included file.

    Thanks.
     

    Users who are viewing this thread

    Top Bottom