Hallo Zusammen!
Ich bastle seit Stunden an einem Switch und bringe das Ding einfach nicht zum laufen!
Die Idee wäre mit einem Drehschalter verschiedene Variablen an und gleichzeitig auszuschalten in Form von 3 Positionen.
Also wenn 1 aktiv ist muss 2+3 inaktiv sein, wenn 2 an, 1+3 aus, wenn 3 an ist 1+2 aus.
Hier mal was ich bis anhin habe:
PHP-Code:
<Element>
<Visible>(L:SimDarAPT, bool) 1 == </Visible>
<Position X="59" Y="18"/>
<Image Name="A.bmp" Bright="No"/>
</Element>
<Element>
<Visible>(L:SimDarVOR, bool) 1 == </Visible>
<Position X="59" Y="18"/>
<Image Name="V.bmp" Bright="No"/>
</Element>
<Element>
<Visible>(L:SimDarNDB, bool) 1 == </Visible>
<Position X="59" Y="18"/>
<Image Name="N.bmp" Bright="No"/>
</Element>
Und die Mouse Sektion wo irgendas nicht stimmt:
PHP-Code:
//---------------------------------- Airports --------------------------------------
<Area Left="25" Top="13" Right="50" Bottom="58">
<Tooltip>Heading Hold</Tooltip>
<Cursor Type="Hand"/>
<Click> (L:SimDarAPT, bool) 1 (>L:SimDarVOR, bool) 0 (>L:SimDarNDB, bool) 0 </Click>
</Area>
//---------------------------------- Vor ------------------------------------------
<Area Left="60" Top="13" Right="90" Bottom="58">
<Tooltip>Manual</Tooltip>
<Cursor Type="Hand"/>
<Click> (L:SimDarVOR, bool) 1 (>L:SimDarAPT, bool) 0 (>L:SimDarNDB, bool) 0 </Click>
</Area>
//---------------------------------- NDB AUTO --------------------------------------
<Area Left="100" Top="13" Right="130" Bottom="58">
<Tooltip>GS Auto</Tooltip>
<Cursor Type="Hand"/>
<Click> (L:SimDarNDB, bool) 1 (>L:SimDarVOR, bool) 0 (>L:SimDarAPT, bool) 0 </Click>
</Area>
Ich hoffe dass mir dabei jemand von Euch weiterhelfen kann!
Vielen Dank

(ehrlich gesagt waren Schalter noch nie meine Stärke

)