2012-06-06, 00:23
Hi there, having a slight brain freeze. I am trying to create a list, whose height will change depending on whether a setting is applied or not. Code fragment below:
<control type="list" id="506">
<posx>300</posx>
<posy>544</posy>
<width>1000</width>
<height>176</height>
<viewtype label="ninjalist">list</viewtype>
...
...
Now, if for instance a condition such as "Skin.HasSetting(raiselist)" I want the height of the list to be a certain value, and if this condition "!Skin.HasSetting(raiselist)" is not met, I would like the height to be another value. Is there something like conditional height when I can do the following in a single list control.
<height condition="Skin.HasSetting(raiselist)">300</height>
<height condition="!Skin.HasSetting(raiselist)">176</height>
I have attempted to create two list controls with same id number, and different heights which is visible when these either of the two conditions are met, but one of them won't work.
Any idea what the solution to my dilemma may be guys?
<control type="list" id="506">
<posx>300</posx>
<posy>544</posy>
<width>1000</width>
<height>176</height>
<viewtype label="ninjalist">list</viewtype>
...
...
Now, if for instance a condition such as "Skin.HasSetting(raiselist)" I want the height of the list to be a certain value, and if this condition "!Skin.HasSetting(raiselist)" is not met, I would like the height to be another value. Is there something like conditional height when I can do the following in a single list control.
<height condition="Skin.HasSetting(raiselist)">300</height>
<height condition="!Skin.HasSetting(raiselist)">176</height>
I have attempted to create two list controls with same id number, and different heights which is visible when these either of the two conditions are met, but one of them won't work.
Any idea what the solution to my dilemma may be guys?