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.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

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


question

Flysimware avatar image
Flysimware asked DA40CGDFQ commented

HTML Gauge can click through gauge issue

How can we prevent clicking through the HTML Gauge/LCD screen to prevent clicking other switches that may be located behind the gauge. This is pretty important and i see no answer for this anywhere.

gaugeshtml
10 |10000

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

MartynJF avatar image
MartynJF answered

One workaround that we've had to use is to put a simple poly behind the gauge/screen with an 'empty' clickspot, i.e. one that shows the normal cursor and has no logic. Unfortunately that doesn't work well though if your gauge/screen needs its own clickspot (a touchscreen).

e.g.

<Component ID="AFT_blanking" Node="Aft_blanking_polygon">

<UseTemplate Name="ASOBO_GT_MouseRect">

<Cursor>None</Cursor>

<MOUSEFLAGS_DEFAULT_IM>LeftSingle</MOUSEFLAGS_DEFAULT_IM>

<CALLBACKCODE_DEFAULT_IM>

</CALLBACKCODE_DEFAULT_IM>

</UseTemplate>

</Component>

10 |10000

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

Flysimware avatar image
Flysimware answered

We already tried to use a hidden click mesh behind the screen and it will prefer to click the no click mesh and not the HTML hot spots so you end up clicking nothing at all. This only works for traditional clickable switches and levers not a touchscreen.

10 |10000

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

Simbol avatar image
Simbol answered

This issue is pretty annoying and it limits the capabilities of what we can do in the sim with our own implementations of EFB and other bits, any way we could get @Asobo to improve this in the future?

S.

10 |10000

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

MartynJF avatar image
MartynJF answered

Has anyone found a solution or workaround for this?

10 |10000

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

Flysimware avatar image
Flysimware answered DA40CGDFQ commented

@FlyingRaccoon / Asobo any updates on this? I found recently a member on the think tank that uses Blender does not have the issue clicking through a touchscreen. So that is a clue on how to fix this issue.

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

Hello


This issue is still open on our side and I fail to see how the Blender exporter would change anything to this.

Regards,
Sylvain

0 Likes 0 ·
Flysimware avatar image Flysimware FlyingRaccoon ♦♦ ·

Hi @FlyingRaccoon DA40CGDFQ#8452 from the think tank has proven that this does work as he gave me and Raul a copy of his project and sure enough i could not click through the screen. So not 100% sure but it seems after looking at the gltf blender does not use the sdk for 3ds max and so the settings are different and may be why it worked. So figure you could contact him and get a copy or talk with him. Or test with Blender. Either way looking forward to a fix.

0 Likes 0 ·
@DA40CGDFQ Which blender exporter are you using? If you gave a blend file where you have set up your model in such a way that this no longer occurs, we are interested to see it. Maybe you know a workaround we're not aware of?

Thank you :)

1 Like 1 ·
Show more comments

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.