2013-01-13, 12:35
Is it possible to use conditions (or perhaps $VAR[]) in <timeperimage> ?
e.g. none of this works
or
or
Only way I was able to do this was to have multiple multiimage controls and then set visibility using <visible> conditions. Is there a better way ?
e.g. none of this works
Code:
<timeperimage condition="Skin.HasSetting(somesetting)">30000</timeperimage>
or
Code:
<timeperimage>$INFO[Skin.String(someskinstring)]</timeperimage>
or
Code:
<variable name="timeperimagevalue">
<value condition="Skin.HasSetting(somesetting1)">30000</value>
<value condition="Skin.HasSetting(somesetting2)">60000</value>
</variable>
...
<timeperimage>$VAR[timeperimagevalue]</timeperimage>
Only way I was able to do this was to have multiple multiimage controls and then set visibility using <visible> conditions. Is there a better way ?
PHP Code:
<control type="multiimage">
[...]
<timeperimage>15000</timeperimage>
<visible>stringcompare(Skin.String(BackdropMultiTime),15000)</visible>
</control>
<control type="multiimage">
[...]
<timeperimage>30000</timeperimage>
<visible>stringcompare(Skin.String(BackdropMultiTime),30000)</visible>
</control>
<control type="multiimage">
[...]
<timeperimage>60000</timeperimage>
<visible>stringcompare(Skin.String(BackdropMultiTime),60000)</visible>
</control>