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 Flysimware answered

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.

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @Flysimware

Well done finding this. It was probably designed for this eventuality but no one used it internally so I was not aware of it. It seems to be only referenced in a particular behavior of the AS1000.

I'm glad you found a solution.
Anyway, we'll still expose a dedicated "INTERCEPT_INTERACTIONS" parameter to the ASOBO_GT_Material_Emissive_Code template with SU11.

Regards,
Sylvain

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.

FlyingRaccoon avatar image FlyingRaccoon ♦♦ commented ·
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 ♦♦ commented ·

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 ·
FlyingRaccoon avatar image FlyingRaccoon ♦♦ Flysimware commented ·
@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
bagolu avatar image
bagolu answered bagolu edited

It works in cockpit interaction "lock" mode but not in "legacy" mode.

I've tried with an ASOBO_GT_Switch_Code template for the mask object, same effect.

edit to be more precise: if you set a mask behind the html gauge and give it one of theses codes,
- in lock mode, it works as expected (no click on the controls behind the gauge+mask)
- in legacy mode, you can't click the gauge itself

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

@bagolu Any chance you can get on my Discord server or add me to Discord. My name on Discord is Momo#0007

I already use cockpit interaction and have added mask as I can't click the html as you stated for Legacy. So not sure how to set the in lock mode to test this. Hope we can chat soon.

10 |10000

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

bagolu avatar image
bagolu answered

I haven't found any working invite for your server. I added you @Flysimware (bagolu#3061)

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 Flysimware edited

I sent you a friend request on Discord because your friend request did not work.

Also here the our server. https://discord.gg/H5D5aSfy

10 |10000

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

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.