Can someone help me with my conditional operators for this mod? It doesn't work.
Link about conditional operator.
Here's the relevant snippet. I have 4 images in this page that are invisible by default that correspond with the 4 archetypes. My idea was that a group member joins the MemberInfoPage becomes visible. OnShow is activated. If that member's archetype =
whatever, then make
whatever icon visible. But everything stays invisible, even when I hide and reshow the window mid-group.
Code:
<Page
BackgroundColor="#00FF00"
Name="MemberInfoPage"
OnShow="Scout_Icon.Visible=( GameData.Group.Group_1.Archetype == 'Scout' ? true : false )
Fighter_Icon.Visible=( GameData.Group.Group_1.Archetype == 'Fighter' ? true : false )
Mage_Icon.Visible=( GameData.Group.Group_1.Archetype == 'Mage' ? true : false )
Priest_Icon.Visible=( GameData.Group.Group_1.Archetype == 'Priest' ? true : false )"
PackLocation="left,top" PackLocationProp="0000/0001,0000/0001"
ScrollExtent="125,50"
Size="125,50"
>
Also if you can think of a different way to do this that would be great.