CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> Weapon Select XML
https://www.captainsim.org/forum/csf.pl?num=1568904838

Message started by ormoc44 on Sep 19th, 2019 at 2:53pm

Title: Weapon Select XML
Post by ormoc44 on Sep 19th, 2019 at 2:53pm
I'm making a new 2D Weapon Control panel which resembles the one in the actual aircraft.

Everything is working except the weapon select buttons.

Looks like the on the original it uses a knob to cycle through weapon types. 

On the new one looking just for push buttons. So if the push button is selected it goes to that position instead of cycling.

For example, I used this mouse click code which should bring it to the number 2, RCKT position:

    <Mouse>
     <Help ID="Station 4"/>
     <Tooltip ID="">Station 4</Tooltip>
     <Cursor Type="Hand"/>
     <Click>(>L:CSG_WpnSelect, position) 2</Click>
</Mouse>

However, when the push button is clicked on this position it jumps (or cycles) back to the first position for the Gun.

Any ideas would be appreciated.

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.