Page 1 of 1

Panel Gauge

PostPosted: Mon Dec 20, 2004 10:19 pm
by DoyleChris
I have a xml gauge that can open the number 1 exit this is the code.

Code: Select all
<Gauge Name="Exits" Version="1.0">
   <Element>
      <Select>
         <Value>(G:Var1,bool)</Value>
         <Case Value="0">
            <Image Name="Exits_off.bmp" ImageSizes="54,28,54,29"/>
         </Case>
         <Case Value="1">
            <Image Name="Exits_on.bmp" ImageSizes="54,28,54,28"/>
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Help ID="HELPID_CONCORDE_ENGINE_MANAGE_GO"/>
      <Cursor Type="Hand"/>
      <Click>(G:Var1) ! (>G:Var1) 0 (>K:TOGGLE_AIRCRAFT_EXIT)</Click>
   </Mouse>
</Gauge>


Im trying to make one for the next exits 2,3,4,5 for a my planes.

Re: Panel Gauge

PostPosted: Tue Dec 21, 2004 9:51 am
by garymbuska
XML gauges are tricky but can be done.
I use a payware program called FS Panel Studio. This program is a upscale version of cfgedit. The biggest differance between the two is FS Panel Studio will allow you to both edit and make XML gauges where cfgedit will not. I use this program whenever I find the need to edit XML gauges. FS Panel Studio can be found at
http://www.fspanelstudio.com/
It is not that expensive and for me well worth it. 8)

Re: Panel Gauge

PostPosted: Tue Dec 21, 2004 3:15 pm
by Hagar
XML gauges are tricky but can be done.
I use a payware program called FS Panel Studio. This program is a upscale version of cfgedit. The biggest differance between the two is FS Panel Studio will allow you to both edit and make XML gauges where cfgedit will not. I use this program whenever I find the need to edit XML gauges. FS Panel Studio can be found at
http://www.fspanelstudio.com/
It is not that expensive and for me well worth it. 8)

I've never tried it myself but as it's possible to open & read XML gauge files in Notepad I always assumed you could edit them in the same way as a CFG file. I don't see why you would need a utility to do it.

I don't know the answer to your question Chris. The first place I would look is the FS9 Panels & Gauges SDK but I suppose you've already done that.

Re: Panel Gauge

PostPosted: Tue Dec 21, 2004 3:39 pm
by andyjohnston.net
Yes, you can open them in Notepad.  Right click on an XML file, and edit will be second on the menu (at least in Win XP Pro.)

First, you have to remember that there are only two doors in Flight Simulator.  You can't assign more than that.

Next, like H said, read the sdk:

KEY_TOGGLE_AIRCRAFT_EXIT       - TOGGLE_AIRCRAFT_EXIT - Toggles primary door open/close.  Follow by  KEY_SELECT_2, etc for subsequent doors.

Re: Panel Gauge

PostPosted: Wed Dec 22, 2004 7:37 pm
by garymbuska
Hagar
As always you are correct you can use notepad or any other same type of program to edit XML files. The reason I use the FS Panel Studio program is to allow me to make the actual gauge it self . It allows you to check out your gauges to make sure they work correctly and shows you what they look like with out opening FS9.
The problem I have using note pad is not knowing what the finshed gauge will look like and if there are any coding errors in it .
It can be easy to get lost in all of the loops some xml gauges use unless you are experienced at this language.
It is easy to for get  a step and then when you go to run fs9 you get a nasty message or it might even crash.
This way I dont make a mistake as easy but even this way is not fool proof. you can for get to assighn a value or assign a wrong value and it will not catch that. 8)

Re: Panel Gauge

PostPosted: Wed Dec 22, 2004 7:45 pm
by Hagar
Hi Gary. I appreciate what you're saying & this is fine if you're designing a new gauge. It seemed to me that a simple edit is what Chris wanted to do. He already has the gauge & I assume he already knows how to open XML files as he posted it in text format in his original question.

Re: Panel Gauge

PostPosted: Tue Dec 28, 2004 11:29 am
by DoyleChris
I have looked at the fS9 panel sdks and noticed the key select 2 but how do i enter it into the code that i entered origanialy, also im guessing you can assign up to ten exits for a aircraft if it has them, since there are keys from 0-9. also with the payware stuff if you can tell me or sho me that the program can do it then ill get it but on 2 different time i have went and bought a program and it didnt do hat i wanted it to do. thanks for the replys guys.