Creating a Display toggle?

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

Creating a Display toggle?

Postby SkyNoz » Thu Nov 23, 2006 3:18 am

I've been trying to figure out how to create a "CUSTOM" display toggle for a Window which appears when, toggle is selected? Anyone which can help me, would be a great help. ;D
Last edited by SkyNoz on Thu Nov 23, 2006 3:19 am, edited 1 time in total.
Project Kfir!
Image
My Gmax page
Aircraft modeler/Aircarft painter

Aye the key!
[GeneralEngineData]
//0=Piston, 1=Jet, 2=N
SkyNoz
Major
Major
 
Posts: 1703
Joined: Sat Aug 06, 2005 11:02 am

Re: Creating a Display toggle?

Postby wji » Fri Nov 24, 2006 12:03 pm

"Window which appears when, toggle is selected?"
Cannot compute . . . insufficient information.

Do you mean FS9 Windows called with SHFT+#?
Image PhotoShop 7 user
User avatar
wji
Major
Major
 
Posts: 1644
Joined: Tue May 04, 2004 11:27 am

Re: Creating a Display toggle?

Postby SkyNoz » Fri Nov 24, 2006 2:46 pm


Do you mean FS9 Windows called with SHFT+#?


Yessss... lol
Last edited by SkyNoz on Fri Nov 24, 2006 2:46 pm, edited 1 time in total.
Project Kfir!
Image
My Gmax page
Aircraft modeler/Aircarft painter

Aye the key!
[GeneralEngineData]
//0=Piston, 1=Jet, 2=N
SkyNoz
Major
Major
 
Posts: 1703
Joined: Sat Aug 06, 2005 11:02 am

Re: Creating a Display toggle?

Postby Gypsy_Baron » Fri Nov 24, 2006 6:55 pm

I've been trying to figure out how to create a "CUSTOM" display toggle for a Window which appears when, toggle is selected? Anyone which can help me, would be a great help. ;D



It's pretty simple to do. You simply need to use the "ident=xxxxx"
in the panel.cfg Windowxx section for the window you want to
toggle and have a custom icon to do the toggling.

Here's a sample of XML code to toggle a window with an ID of 10032:


 
 
     Toggle Custom Window
     
     10032 (>K:PANEL_ID_TOGGLE)
 



The BMP is the Icon bitmap. You can easily create custom bitmaps
using Paintshop Pro and similar programs.

Here's the first part of the Window specification from a panel.cfg
file:
[Window14]
Background_color=0,0,0
size_mm=1024,768
position=7
visible=0
ident=10032      <---------- this is what you use to create custom windows. Some Idents are predefined by MSFS but
generally numbers above 10000 can be used at will.

You also need to call out the Icon gauge on your main panel.
I put my custom Icons into a folder "PDS_Icons". It contains
the XML file and the BMP file. It can be located in your main
Gauge folder of the panel folder where you are actually using
the custom icon.

I added this line to my panel.cfg to place the icon in the
lower left area of the panel.

gauge85=PDS_Icons!Panel_32_Icon, 5, 740, 20, 20

If the new window covers up the main window, you will also need
to place the toggle window icon on your custom window so you
can switch back. Simply add the same line as above with the
appropriate Gaugexx= number.

  Paul
Image
User avatar
Gypsy_Baron
1st Lieutenant
1st Lieutenant
 
Posts: 467
Joined: Tue Oct 05, 2004 6:33 pm
Location: Daly City, California

Re: Creating a Display toggle?

Postby SkyNoz » Fri Nov 24, 2006 7:50 pm

Thank you Gypsy_Baron! the key is just doing the indent, I was looking into it but must have forgot the indent!

-Cheers, SN ;) ;D
Project Kfir!
Image
My Gmax page
Aircraft modeler/Aircarft painter

Aye the key!
[GeneralEngineData]
//0=Piston, 1=Jet, 2=N
SkyNoz
Major
Major
 
Posts: 1703
Joined: Sat Aug 06, 2005 11:02 am

Re: Creating a Display toggle?

Postby wji » Sat Nov 25, 2006 11:35 am

Well, there ya go . . . just as I thought -- nothing to it.  ;D
Image PhotoShop 7 user
User avatar
wji
Major
Major
 
Posts: 1644
Joined: Tue May 04, 2004 11:27 am

Re: Creating a Display toggle?

Postby SkyNoz » Wed Nov 29, 2006 7:18 pm

Tip

-Also, remember to compress the gauge file as .CAB or it wont load properly.  ;)
Project Kfir!
Image
My Gmax page
Aircraft modeler/Aircarft painter

Aye the key!
[GeneralEngineData]
//0=Piston, 1=Jet, 2=N
SkyNoz
Major
Major
 
Posts: 1703
Joined: Sat Aug 06, 2005 11:02 am


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 111 guests