• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Capped switch function help please

Messages
142
Country
ca-ontario
Hey guys, I have two switches in my model. A starter, and a coil boost. They are of the capped push-button type. I would like to have the cap closed as static image, then when you roll the mouse over it, the image changes to the cap lifted and the button exposed and then, you can push the button, and when you remove the mouse hand, the cap closes.
Being very green with XML, could someone help me with the code? I think I understand the button pressing part, it's the cap lift and static part I'm not sure how to write those events.

Thank you.

Doug

This is what I have, will that work?
 

Attachments

  • cap switches.jpg
    cap switches.jpg
    13.5 KB · Views: 429
  • STARTER_static.jpg
    STARTER_static.jpg
    6 KB · Views: 477
  • STARTER_OFF.jpg
    STARTER_OFF.jpg
    6.8 KB · Views: 411
  • STARTER_ON.jpg
    STARTER_ON.jpg
    6.7 KB · Views: 521
Last edited:
Oy vey! I don't believe there is a way to detect whether the mouse is hovering over an defined area and triggering any action...

You will probably need to define a click area to "open" the cap, then another click area to control the button. You can use <Visibility> script to disable the button area unless the cap is open first.

The only mouse events possible require one or more of the following:

LeftAll
RightAll
MiddleAll
RightSingle
MiddleSingle
LeftSingle
RightDouble
MiddleDouble
LeftDouble
RightDrag
MiddleDrag
LeftDrag
Move
RightRelease
MiddleRelease
LeftRelease
WheelUp
WheelDown
Leave
 
I use a two step process:

1. Lid closed - click and the lid opens.
2. Lid open - click and the button pushes.

Same click area, what happens depends on the state of the lid variable.

Hope this helps,
 
Back
Top