Search the archive:
Simviation Main Site
|
Site Search
|
Upload Images
Simviation Forum
›
Design Forums
›
Scenery & Panel Design
› Creating a Display toggle?
(Moderators: Mitch., Fly2e, ozzy72, beaky, Clipper, JBaymore, Bob70, BigTruck)
‹
Previous Topic
|
Next Topic
›
Pages: 1
Creating a Display toggle? (Read 276 times)
Nov 23
rd
, 2006 at 3:18am
SkyNoz
Offline
Colonel
Project Kfir!
Gender:
Posts: 1720
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.
Project Kfir!&&
&&
My Gmax page
&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
Back to top
IP Logged
Reply #1 -
Nov 24
th
, 2006 at 12:03pm
wji
Offline
Colonel
Posts: 1644
"Window which appears when, toggle is selected?"
Cannot compute . . . insufficient information.
Do you mean FS9 Windows called with SHFT+#?
PhotoShop 7 user
Back to top
IP Logged
Reply #2 -
Nov 24
th
, 2006 at 2:46pm
SkyNoz
Offline
Colonel
Project Kfir!
Gender:
Posts: 1720
Quote:
Do you mean FS9 Windows called with SHFT+#?
Yessss... lol
Project Kfir!&&
&&
My Gmax page
&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
Back to top
IP Logged
Reply #3 -
Nov 24
th
, 2006 at 6:55pm
Gypsy_Baron
Offline
Colonel
USS Dewey DGL-14 & VX-8
Daly City, California
Gender:
Posts: 467
[quote author=SkyNoz link=1164269901/0#0 date=1164269901]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[/quote]
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:
<Gauge Name="Panel Icon" Version="1.0">
<Image Name="Icon_Panel_32.bmp" ImageSizes="19,19,30,30"/>
<Mouse>
<Tooltip>Toggle Custom Window</Tooltip>
<Cursor Type="Hand"/>
<Click>10032 (>K:PANEL_ID_TOGGLE)</Click>
</Mouse>
</Gauge>
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
Back to top
IP Logged
Reply #4 -
Nov 24
th
, 2006 at 7:50pm
SkyNoz
Offline
Colonel
Project Kfir!
Gender:
Posts: 1720
Thank you Gypsy_Baron! the key is just doing the indent, I was looking into it but must have forgot the indent!
-Cheers, SN
Project Kfir!&&
&&
My Gmax page
&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
Back to top
IP Logged
Reply #5 -
Nov 25
th
, 2006 at 11:35am
wji
Offline
Colonel
Posts: 1644
Well, there ya go . . .
just as I thought -- nothing to it.
PhotoShop 7 user
Back to top
IP Logged
Reply #6 -
Nov 29
th
, 2006 at 7:18pm
SkyNoz
Offline
Colonel
Project Kfir!
Gender:
Posts: 1720
Tip
-Also, remember to compress the gauge file as .CAB or it wont load properly.
Project Kfir!&&
&&
My Gmax page
&&Aircraft modeler/Aircarft painter&&&&Aye the key!&&[GeneralEngineData]&&//0=Piston, 1=Jet, 2=None, 3=Helo-Turbine, 4=Rocket, 5=Turboprop
Back to top
IP Logged
Pages: 1
‹
Previous Topic
|
Next Topic
›
« Home
‹ Board
Top of this page
Forum Jump »
Home
» 10 most recent Posts
» 10 most recent Topics
Current Flight Simulator Series
- Flight Simulator X
- FS 2004 - A Century of Flight
- Adding Aircraft Traffic (AI) & Gates
- Flight School
- Flightgear
- MS Flight
Graphic Gallery
- Simviation Screenshots Showcase
- Screenshot Contest
- Edited Screenshots
- Photos & Cameras
- Payware Screenshot Showcase
- Studio V Screenshot Workshop
- Video
- The Cage
Design Forums
- Aircraft & 3D Design
- Scenery & Panel Design ««
- Aircraft Repainting
- Designer Feedback
General
- General Discussion
- Humour
- Music, Arts & Entertainment
- Sport
Computer Hardware & Software Forum
- Hardware
- Tweaking & Overclocking
- Computer Games & Software
- HomeBuild Cockpits
Addons Most Wanted
- Aircraft Wanted
- Other Add-ons Wanted
Real World
- Real Aviation
- Specific Aircraft Types
- Autos
- History
On-line Interactive Flying
- Virtual Airlines Events & Messages
- Multiplayer
Simviation Site
- Simviation News & Info
- Suggestions for these forums
- Site Questions & Feedback
- Site Problems & Broken Links
Combat Flight Simulators
- Combat Flight Simulator 3
- Combat Flight Simulator 2
- Combat Flight Simulator
- CFS Development
- IL-2 Sturmovik
Other Websites
- Your Site
- Other Sites
Payware
- Payware
Old Flight Simulator Series
- FS 2002
- FS 2000
- Flight Simulator 98
Simviation Forum
» Powered by
YaBB 2.5 AE
!
YaBB Forum Software
© 2000-2010. All Rights Reserved.