Jump to content
Sign in to follow this  
Guest

Panel window toggle switches

Recommended Posts

Guest

i've just finished a F-18A/C panel, looking great (it'll be released very soon), but it has 10 windows besides the main panel. obviously only 8 of these are switchable using the SHIFT+number keystroke, so i want to use some toggle switches (like the default ones for GPS etc.).are there any around that will open these windows? i've tried experimenting with the default ones, but no luck.http://www.ai-uk.net/VUSN/f-18.jpg

Share this post


Link to post
Share on other sites
Guest

>are there any around that will open these windows? i've >tried experimenting with the default ones, but no luck. Why not simply create your own in XML? You can create as many 'switchable windows' as you have patience for... :)Here is an example:- [Gauge Name=Yoke Icon" Version="1.0] [image Name="Icon_Yoke.bmp" ImageSizes="19,19,30,30" /] - [Mouse] [Tooltip]Toggle Yoke Window[/Tooltip] [Cursor Type="Hand" /] [Click]60 (]K:PANEL_ID_TOGGLE)[/Click] [/Mouse] [/Gauge]NOTE: I've replaced all > and < with [ and ], so that they won't be interpreted as HTLM code... :)The 'key' to making it work is the number (or name) following the [Click] keyword. It is the Panel ID number you assign in the panel.cfg fileThe plain text inbetween the [Tooltip] and [/Tooltip] keywords is what will show when the cursor hovers over the button.Simply create your icon artwork in 30x30 pixels and store in a 1024 folder, scale them down to 19x19 and put those in a 640 folder. Create a set of XML gauges using the above as a template, and put into a folder named appropriately.F18A Icons panel1.xml panel2.xml ect. 1024 panel1.bmp panel2.bmp etc. 640 panel1.bmp panel2.bmp

Share this post


Link to post
Share on other sites
Guest

ARGGHHH!!!I *despise* web based forums! They make simple things more difficult... Here it is again:Here is an example: {Gauge Name="Yoke Icon" Version="1.0"} {Image Name="Icon_Yoke.bmp" ImageSizes="19,19,30,30" /}{Mouse}{Tooltip]Toggle Yoke Window[/Tooltip}{Cursor Type="Hand" /}{Click]60 (}K:PANEL_ID_TOGGLE){/Click}{/Mouse} {/Gauge} NOTE: I've replaced all > and :)

Share this post


Link to post
Share on other sites
Guest bartels

I don't have anything to add to this, but if you want proper indentifiably XML code here try to replaxe any & by &, any > and < by > and <. And don't try to preview or edit (just like me know)!!Or try to attach it as text file.Arne Bartels

Share this post


Link to post
Share on other sites
Guest

>I don't have anything to add to this, but if you want proper >indentifiably XML code here try to replaxe any & by >&, any > and :)

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...