- Messages
- 549
- Country

Hi!
So I have this custom animation that is as follows:
They work fine, but I wanted to make some sort of 2D control panel to control this and many other animations from the exterior...
Here's my problem: I only know how to make invisible XML gauges to control afterburners and G effects but I never made one that had images on it and buttons...
Can you give me a hand on how to relate my animation's variable with the 2D gauge's variable?
So I have this custom animation that is as follows:
Code:
<part>
<name>bay_door</name>
<animation>
<parameter>
<code>
(L:bay door,bool) 1;
if{ 100 }
els{ 0 }
</code>
<lag>50</lag>
</parameter>
</animation>
</part>
<part>
<name>Bay_door_switch</name>
<animation>
<parameter>
<sim>
<variable>bay door</variable>
<units>bool</units>
</sim>
<lag>50</lag>
</parameter>
</animation>
<mouserect>
<cursor>hand</cursor>
<tooltip_text>Open/Close Missile Bay</tooltip_text>
<callback_code>
(L:bay door,bool) ! (>L:bay door,bool)
</callback_code>
</mouserect>
</part>
They work fine, but I wanted to make some sort of 2D control panel to control this and many other animations from the exterior...
Here's my problem: I only know how to make invisible XML gauges to control afterburners and G effects but I never made one that had images on it and buttons...
Can you give me a hand on how to relate my animation's variable with the 2D gauge's variable?