Jump to content
Sign in to follow this  
Carob

FS9 Panel Ident

Recommended Posts

Hello.

I'm hoping someone can answer this for me.

I'm trying to add an icon to open and close a new gauge.  I thought I knew how to do this but apparently I only know half of it.

I have decided to try and use the "500_X" icon from the cpt.icons.cab file.  I have added the icon and gauge to the panel.  The gauge opens fine when selecting it from the menu, but when I click the icon it opens a different item.  I'm pretty sure this has something to do with the "ident" line but I can't get it right.

Can anyone help me figure this out?

Share this post


Link to post
Share on other sites

From the cpt.icons gauge:

<Click>500 (&gt;K:PANEL_ID_TOGGLE)</Click>

The ident value from the panel window description in panel.cfg has to match the value you are sending to the PANEL_ID_TOGGLE function.

In this case, your panel window has to have an ident value of 500, or you need to change the code, as quoted above, to match the ident value in panel.cfg.

Note that you cannot use the text macro values you sometimes see in panel.cfg as ident values in xml code.  This will not work:

<Click>THROTTLE_PANEL (&gt;K:PANEL_ID_TOGGLE)</Click>

 

Doug

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...