ATP_JR

Clickspot for open/close door

Recommended Posts

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

Share this post


Link to post
Help AVSIM continue to serve you!
Please donate today!

Posted (edited)

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

Share this post


Link to post

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

_____
Josef

Share this post


Link to post

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.

Share this post


Link to post
Posted (edited)
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
  • Like 1

Share this post


Link to post

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

 

Share this post


Link to post
Posted (edited)

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
  • Like 1

Share this post


Link to post
Posted (edited)

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

Share this post


Link to post
Posted (edited)

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

Share this post


Link to post

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now