plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

bouveng avatar image
bouveng asked StevenPearce commented

conditional isInteractive() logic

Hi developer support! =)

I have a VCockpit / htmlgauge that is isInteractive() and that I show and hide using ASOBO_GT_Visibility_Code, but when the gauge is invisible, it is still interactive!

I have tried to update the return of the isInteractive() dynamically, but this does not seem to be read / evaluated more than once when the gauge is loaded initially and rebooting the gauge does not work either.

So, what is the best way to toggle a gauges interactivity, so I can hide it without still being clickable?

Perhaps animate its position or size to something out of reach?

(in this case it is not an instrument as such, but a piece of virtual paper you can write on)

Thanks in advance!

Br

/bouveng@fbw


marketing-post-it.png


aircraftmodeling
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

1 Answer

·
StevenPearce avatar image
StevenPearce answered StevenPearce commented

I'm working on an aircraft with a hand start prop, it would always show up the tooltip flickering as the prop spins as it's in the center of view. I solved by moving the guage 100 meters below the aircraft when the engine is running. It feels a bit hacky but gives the right functionality.

2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

B21 avatar image B21 commented ·
@StevenPearce can you clarify how you 'moved the gauge'? Was it an additional animation baked into the model that moved the surface with the $texture or some other clever method?
0 Likes 0 ·
StevenPearce avatar image StevenPearce B21 commented ·
Yea, just physically moved it out of the viewport with an animation on the model.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.