March 3, 20197 yr When an aircraft has no clickspot to open the door someone has to use the shortcuts instead. Is there a way to define a clickspot in the VC for that in the aircraft.cfg? E.g. a clickspot for the second door to open/close instead the shortcut [SHIFT]+[E]+[2] ? Thanks for your answers in advance. _____ Josef
March 3, 20197 yr If you can create a clickspot with an XML gauge to match, you could trigger a command.. From the SDK: TOGGLE_AIRCRAFT_EXIT Try 2 (>K:TOGGLE_AIRCRAFT_EXIT) Toggles primary door open/close. Follow by KEY_SELECT_2, etc for subsequent doors. Edited March 3, 20197 yr by Bert Pieke Bert
March 3, 20197 yr Author Many thanks, Bert. Have the SDK tab opened in my browser and will look into this ... _____ Josef
March 3, 20197 yr Author Will try this out, but before I have to find out how to create a matching XML-gauge, hope I'll find something about in the SDK.
March 3, 20197 yr 1 hour ago, ATP_JR said: Will try this out, but before I have to find out how to create a matching XML-gauge, hope I'll find something about in the SDK. Try: <Gauge Name="Open Door2" Version="1.0"> <Image Name="blank.bmp" /> <Mouse> <Tooltip ID="">Door2</Tooltip> <Help ID=""/> <Cursor Type="Hand"/> <Click> 2 (>K:TOGGLE_AIRCRAFT_EXIT) </Click> </Mouse> </Gauge> Make sure you have a little black bmp called Blank.bmp in the folder. Edited March 3, 20197 yr by Bert Pieke Bert
March 3, 20197 yr Author Many thanks again, Bert! I hope I understood all correct. I created a BMP file - consisting of 5 x 5 pixels and black colour - and named it blank.bmp. I also created an XML file called OpenDoor2.xml including your text paragraphs and put it together with the blank.bmp file into the panel folder of the wanted aircraft. Is this all accomplished correctly? And finally I'll have to edit the panel.cfg ...
March 3, 20197 yr You are on the right track.. Best is to add a subfolder to your panel folder and give it a name, say CustomToggle Put the xml file and bmp file in this folder In the panel.cfg file, call this gauge this way: gaugeXX=CustomToggle!OpenDoor2, X,Y,H,W I changed a line in the xml file above, after testing it.. make sure you use the later version 2 (>K:TOGGLE_AIRCRAFT_EXIT) Edited March 3, 20197 yr by Bert Pieke Bert
March 3, 20197 yr Author OK all this works! 🙂 Now I have a black clickspot in the VC, size 50 x 50 for the moment. I have inserted the line gauge09=CustomToggle!OpenDoor2, 500,0,050,050 in the section [Vcockpit01]. Two things still remain: 1. How can I make the black clickspot invisible in the final version? 2. How can I put the (still) black square in the vicinity of the right door handle inside the VC or can I only put the clickspot in the forward/straight ahead view? Edited March 4, 20197 yr by ATP_JR added infos
March 4, 20197 yr Make sure the color in the bmp file is (0,0,0) Black, then it will be shown as invisible. If you search for Iconpanel_background in your Airplanes folder, you will likely find a copy.. You can only put the clickspot in places where the panel author allows a mouse click... this will depend on the airplane.. Which airplane are you doing this for? Edited March 4, 20197 yr by Bert Pieke Bert
March 4, 20197 yr Author Thanks for your excellent expert-hints !!! Very appreciated! 🙂 🙂 I rechecked the 24bit saved bmp file and noticed one single pixel was not 0,0,0. I just corrected that, will see later. The airplane I want to apply the clickspot to is Carenado's C172II N Floatplane. It has no clickspot on the right door, only on the left door. I'm using ChasePlane and need the keys 0 to 9 for my views. So I get into a conflict when using [SHIFT]+[E]+2. So I can try to place the clickspot as narrow as possible... [Vcockpit01] Background_color=0,0,0 size_mm=512,512 visible=0 pixel_size=1024,1024 texture=$Panel_172_1 .... gauge09=CustomToggle!OpenDoor2, 400,0,050,050
Archived
This topic is now archived and is closed to further replies.