Jump to content

Sign in to follow this  
Guest lewislp

New Toggle Buttons in FS2002

Recommended Posts

Guest lewislp

I'm trying to create a toggle button for a new instrument panel, and I can't figure out how to tell FlightSim to display or hide the panel. Is there a function call available or does FSUIPC have a method of doing this? Thanks.

Share this post


Link to post
Share on other sites

Hi,You need to make an xml gauge and some alterations in the panel.cfg.Example:Window00=mainWindow01=overheadWindow02=pedestalWindow03=fmcWindow04=gpsWindow05=YOUR PANEL........[Window05]file=YOUR BITMAP.bmp size_mm=1280,960window_size_ratio=1.00 position=0visible=0ident=YOUR NUMBER (see below)gauge00=YOUR GAUGES ........Now the gauge:Display Your PanelYOUR NUMBER (>K:PANEL_ID_TOGGLE)Place it somewhere on the main and YOUR panel.Hope it helps,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites
Guest lewislp

Jan, thanks for your help. I haven't even tried doing XML gauges yet since most of the other gauge work I do requires programming beyond the limitations of XML (interfacing with other processes, heavy computation). For simple gauges like this, though, XML is the way to go. I'll have to look into this.I also answered my own question on the programming side. There's a function call in gauges.h which accepts the panel ID (same as YOUR NUMBER above) to toggle panels on and off. I don't know how I missed it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...