Switch Setinteractive

Discuss PC Developer and Web Developer projects and features here.
Post Reply
wayne_millard
Posts: 94
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Switch Setinteractive

Post 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

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: Switch Setinteractive

Post 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?

wayne_millard
Posts: 94
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Switch Setinteractive

Post 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 111 times

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: Switch Setinteractive

Post 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.
Attachments
switch test - Copy.fcsx
(13.33 KiB) Downloaded 92 times

Post Reply