• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Making icons work

sblzei

Charter Member
Hi folks,
I'm still a 2D panel aficionado and I like to design my own 2D when it is not available in downloaded airplanes, or modify existing ones to make them more realistic.

The problem i'm regularely running into is to make icons work.
Map, GPS, radio, icons are OK, but when I make a new window I can spend hours in trying open it with any of the icons contained in common icons files such as "simicons.cab" or "simicons 1924.cab".
I understand that a link must be established with the line " ident=xxx" in the panel.cfg, but I'm not able to find any parameter in the icon gauge file capable to do this. Additionally, how to avoid the risk of modifying ALL the applications of the same icon?

Is there any tutorial that explains the process or is there anybody willing to give me some hints?

Thank you

Ezio
 
Make your own gauge ,(>K:pANEL_3) by changing the number to associate the popup you wish to have attached to the icon ( small bitmap )


<GAUGE Name="camera" Version="1.0">
<ELEMENT>
<GAUGE Name="camera" Version="1.0">
<ELEMENT>
i have included one to use as a template , change it to an XML file for use
</ELEMENT>
<MOUSE>
<CURSOR Type="Hand" />
<HELP id="" />
</MOUSE>
</GAUGE>
<HELP id="" />
</MOUSE>
</GAUGE>
 
I use CPT.ICONS (search for cptts1.2.zip on AVSIM) for additional panel windows. You can look through this collection to see how they are done and customize for your purposes if these do not work for you.

This package of lights and icons was originally designed for FS2002 but seem to work fine in FS2004 and FSX, so far anyway.

Rick
 
The trick is finding the enumerated value that each one of those icon gauges is calling for the PANEL_ID_TOGGLE variable...
Each one of those gauges calls a specific value for that variable and that value is what needs to be placed in the IDENT= field for the pop-up window that you want to call.

Example from the Compass Icon sub-gauge of SimIcons.cab:
Code:
<click>{click}75 (>K:PANEL_ID_TOGGLE){/click}</click>
This one will set that variable to "75", so if you've got a pop-up with 75 in the IDENT field it will be toggled when that gauge is used.

This one is from the Overhead Icon subgauge...
Code:
<click>{click}225 (>K:PANEL_ID_TOGGLE){/click}</click>
It will call any pop-up window with 225 in the IDENT= field.


So...long story short...
Open up the XML for the gauge that you're wanting to use and see what number is being used, then set the IDENT= field for the pop-up that you want to control to that value.


There are a few predefined text strings (MAIN_PANEL, GPS_PANEL, THROTTLE_PANEL, etc...) that can be used in the IDENT= field, but they just wind up calling a specific enumerated value just as if you would use that number instead. I don't have my list of those text strings handy at the moment though.
 
Back
Top