Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Clickspot for open/close door

Featured Replies

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

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 by Bert Pieke

Bert

  • Author

Many thanks, Bert. Have the SDK tab opened in my browser and will look into this ...

_____
Josef

  • 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.

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 (&gt;K:TOGGLE_AIRCRAFT_EXIT)
      </Click>
   </Mouse>
</Gauge>

Make sure you have a little black bmp called Blank.bmp in the folder.

 

 

Edited by Bert Pieke

Bert

  • 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 ...

 

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 (&gt;K:TOGGLE_AIRCRAFT_EXIT)

Edited by Bert Pieke

Bert

  • 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 by ATP_JR
added infos

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 by Bert Pieke

Bert

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.