How do you create gauges?

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

How do you create gauges?

Postby Jakemaster » Tue Jan 03, 2006 7:05 pm

I was wondering how you make gauges.  The reason why is I have an Idea for a gauge that I want to make.

Its a Cold Start gauge.  It would be a little button, that when you press it it does the following:
   -All Magnetos off
   -Ignition switches off
   -Generator switches off
   -Battery switch off
   -Avionics off
And, for safety reasons, have it only work with parking break on.

So, what program do you use to make gauges?
Jakemaster
 

Re: How do you create gauges?

Postby AuMaV » Tue Jan 03, 2006 7:26 pm

Hi
Basically grab the panels sdk from m$oft
You can build gauges by xml code or C+ code (.gau)
Xml is easier in that you really only need notepad and you can use the default xml gauges as a guide
Im pretty sure there is a cold and dark gauge already avalable.Have a look at the design and or panel forums on avsim and flightsim.com there are tuts for basic setup,code snipets to help you get started
Wozza
   
User avatar
AuMaV
2nd Lieutenant
2nd Lieutenant
 
Posts: 293
Joined: Mon Jul 07, 2003 7:44 am
Location: The Great Southern Land

Re: How do you create gauges?

Postby Jakemaster » Tue Jan 03, 2006 8:06 pm

Thanks.  I will look into it.

I kinda want to make it myself so that I can learn how the gauge coding works.  I dont know why, just cause.
Jakemaster
 

Re: How do you create gauges?

Postby Gypsy_Baron » Tue Jan 03, 2006 9:37 pm

Thanks.  I will look into it.

I kinda want to make it myself so that I can learn how the gauge coding works.  I dont know why, just cause.



"You'll shoot your eye out!"...:)

Once you start making you own gauges or modifying others,
your flying time is going to decrease as your tweaking time
increases dramatically. But it is rewarding to finally get things
"just right" and see your creations at work in the sim :)

XML is the easiest way to go. As the previous poster pointed
out, all you need is Notepad and the MS XML dll stuff. That
and alot of curiosity and patience.

Start by "de-cabing" some of the standard .cab files and look
at the structure of xml gauges. Also you'll want to have read
through the panel SDK and get familiar with the variables and
KEY events that you can use to your own ends.

Then just start cutting and pasting or writing from scratch.
Before you load up FS9 to test a gauge, double-click on the
xml file and make sure there are no obvious syntax errors.
A window will open and if your code is syntactically correct
you will see a multi-colored listing of the file. Otherwise you'll
get a short error message that will point you to the first error
found.

So, just do some reading and then jump on in...oh, you'll want
a program that allows you to create/edit BMP files as well.

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


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 180 guests