Hi there,
i'm currently working on a DC-8 Panel and I just started Gaugedesign and so i don't have much experience in the coding department.I used some XML tutorials and looked at other XML gauges to get the basics... Now i wanted to make a firebell-testswitch which turns on a light when you push it down and plays the sound of a bell...
this is the code:
Now it works that the switch actiavtes the "FIRE" Light on the Flight Engineer panel, which is simply a bitmap-gauge which is only visible when L:FIRE_BELL is satisfied. But the switch is a problem cause i can hold it down but after around 3 seconds it starts to go up and down constantly (or is stuck in one position).... also how can i make this gauge play a soundfile called "bell.wav" in my FS9/Sound/DC-8Project/ Folder...
I have a second problem now. I designed my first real gauge now, a Volt/Amp-Meter for the Generator 1 of the DC-8
The gauge shows up in FS Panelstudio but not in the Flightsimulator...what am i doing wrong?
Here is the Code:
Would be really nice if somebody could help a beginner...
if you want some previews of the panel, here you go:
http://tonymadgehjg.proboards98.com/index.cgi?board=screenshots&action=display&thread=1307
video:
http://www.youtube.com/watch?v=MObru4U_i3M
http://www.youtube.com/watch?v=VklQOs7a41U
Regards
Johann
i'm currently working on a DC-8 Panel and I just started Gaugedesign and so i don't have much experience in the coding department.I used some XML tutorials and looked at other XML gauges to get the basics... Now i wanted to make a firebell-testswitch which turns on a light when you push it down and plays the sound of a bell...
this is the code:
<Gauge Name="FIRE_BELL" Version="1.0">
<Element>
<Select>
<Value> L:FIRE_BELL,bool)</Value>
<Case Value="0">
<Image Name="ON.bmp" ImageSizes="72,71"/>
</Case>
<Case Value="1">
<Image Name="OFF.bmp" ImageSizes="72,71"/>
</Case>
</Select>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click Kind="LeftSingle+Leave"> L:FIRE_BELL,bool) ! (>L:FIRE_BELL,bool)</Click>
</Mouse>
</Gauge>
Now it works that the switch actiavtes the "FIRE" Light on the Flight Engineer panel, which is simply a bitmap-gauge which is only visible when L:FIRE_BELL is satisfied. But the switch is a problem cause i can hold it down but after around 3 seconds it starts to go up and down constantly (or is stuck in one position).... also how can i make this gauge play a soundfile called "bell.wav" in my FS9/Sound/DC-8Project/ Folder...
I have a second problem now. I designed my first real gauge now, a Volt/Amp-Meter for the Generator 1 of the DC-8
The gauge shows up in FS Panelstudio but not in the Flightsimulator...what am i doing wrong?
Here is the Code:
<Gauge Name="DC8 AC AmpVolts1" Version="1.0">
<Element>
<Visible>(L:LT_ENG,bool) !</Visible>
<Image Name="AC1.bmp" ImageSizes="200,200"/>
<Element>
<Position X="99" Y="143"/>
<Image Name="ACNeedle.bmp">
<Axis X="7" Y="90"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="150">(A:ELECTRICAL GENALT1 BUS VOLTAGE,volts)</Value>
<Nonlinearity>
<Item Value="0" Degrees="-45"/>
<Item Value="50" Degrees="-25"/>
<Item Value="85" Degrees="0"/>
<Item Value="100" Degrees="10"/>
<Item Value="125" Degrees="25"/>
<Item Value="150" Degrees="45"/>
</Nonlineartiy>
<Delay DegreesPerSecond="20"/>
</Rotate>
</Element>
</Element>
</Gauge>
Would be really nice if somebody could help a beginner...
if you want some previews of the panel, here you go:
http://tonymadgehjg.proboards98.com/index.cgi?board=screenshots&action=display&thread=1307
video:
http://www.youtube.com/watch?v=MObru4U_i3M
http://www.youtube.com/watch?v=VklQOs7a41U
Regards
Johann
