Page 1 of 1

Switch Setinteractive

Posted: Wed May 18, 2022 1:23 pm
by wayne_millard
Hi all,

Have problem with switch interactive does not seem to work now.
In the past the switch would be grayed out and would not interact with the mouse.
But now it does not work.

Wayne M

Re: Switch Setinteractive

Posted: Wed May 18, 2022 2:44 pm
by Steve-Matrix
Can you please post a simple project showing the issue.

And just to confirm, when you say the 'interactive' property does not work, are you saying when you set it to "no" then the switch continues to work ok and is also not greyed out?

Re: Switch Setinteractive

Posted: Wed May 18, 2022 3:26 pm
by wayne_millard
Hi Steve,

I Have attached a small test programe to show problem.
The first icon will disable the swithch but switch still interacts ( switches on ).
I have used in the past a switch gets grayed out and is locked from interaction.

Thanks for all the help steve.

Wayne M
Switch Test.fcsx
(10.02 KiB) Downloaded 115 times

Re: Switch Setinteractive

Posted: Thu May 19, 2022 9:14 am
by Steve-Matrix
I've looked into this and it seems that switch component has never worked with the <Interactive> property.

As a workaround, I have attached a program that solves it by adding a semi-transparent 'cover' over the switch which prevents mouse clicks and makes the switch look greyed-out.

An alternative is to use the <basic_sim_slider> component. This works with <Interactive>, but does not grey out.