Visit Captain Sim web site  
  Welcome, Guest. Please Login or Register

 

Page Index Toggle Pages: 1 Send TopicPrint
Weapon Select XML (Read 1132 times)
ormoc44
New Member
Offline



Posts: 3
Joined: Oct 7th, 2018
Weapon Select XML
Sep 19th, 2019 at 2:53pm
Print Post  
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.
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12349
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: Weapon Select XML
Reply #1 - Sep 19th, 2019 at 3:27pm
Print Post  
Where are you placing the code?

What you need to do by default, is either mouse click on the Weapon Type Selector Switch (on the Weapon PanEL), or use Ctrl+7 to cycle through weapon types.
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
ormoc44
New Member
Offline



Posts: 3
Joined: Oct 7th, 2018
Re: Weapon Select XML
Reply #2 - Sep 20th, 2019 at 12:58am
Print Post  
Thanks, that's a good idea with the cntrl+7. 

Just wondering if this can be edited to a single keystroke to replace the cntrl+7 under the CSweapon.xml?

        <Action name="nextWeaponType" control="Ctrl+7" />
        <!-- weapon type selector switch -->

If so, then maybe I can use the key equivalent in the mouse click area of the switch?

  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12349
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: Weapon Select XML
Reply #3 - Sep 20th, 2019 at 3:19am
Print Post  
I assume you would have to make those changes to the CSWeapon_panel.xml, which is a part (a file) of the CSWeapon_panel.cab (which can be found in the FSX\Gauges folder).

You do this at your own risk. So...

Backup the CSWeapon_panel.cab BEFORE you make any chages to the CSWeapon_panel.xml within it!!!  Wink
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
 
  « Board Index ‹ Board  ^Top