Conditional visibility (1 Viewer)

Krimskrams34

Portal Pro
July 2, 2012
85
37
39
Home Country
Germany Germany
Hello @ajs,

I would like to add an additional animation for the winner of the MP game Hexxagon in the file MyHexxagon.xml, as used in the skin PureVision. Therefore I thought about using a conditional visibility that compares the numeric value of #Ply1.Count and #Ply2.Count, in the manner of "if #Ply1.Count > #Ply2.Count" or "if #Ply2.Count > #Ply1.Count", to which the visibility would then apply when the condition was met respectively. Since I unfortunately do not have the necessary expertise, I wanted to ask you as an experienced programmer, whether you can implement this idea in a corresponding program line for the conditional visibility?
Just as an example, the following control taken from PureVision could show the higher value of player 2 in a loop with a complementary zoom animation.

<control>
<description>text label</description>
<type>label</type>
<id>13</id>
<posX>818</posX>
<posY>829</posY>
<label>#Ply2.Count</label>
<font>RSS</font>
<align>Left</align>
<textcolor>ffffff00</textcolor>
<animation effect="zoom" start="100,100" end="110,110" time="1000" pulse="true" condition="true">conditional</animation>
<visibility>...... </visibility>
</control>



Thanks in advance
 

Users who are viewing this thread

Top Bottom