Nirtec Studio Forum

General Category => Machines Simulator => Topic started by: nato76 on May 02, 2024, 04:57:14 PM

Title: MS4 Selector modification
Post by: nato76 on May 02, 2024, 04:57:14 PM
Hello friends!

Is it possible to create a version selector (buttons & switches tab) that will change position when you hold down the left mouse button and move the mouse left or right (just like real world)? ;)
Now the selector changes position sequentially after each left-click: pos 0 (click) pos 1 (click) pos 2 (click) pos 1 (click) pos 0 etc.
For this reason, a combination without position 0 is not possible, e.g: pos 0 - pos 1 - pos 2 - pos 1 - pos 2 etc.

Thank you :)

Regards.
Title: Re: MS4 Selector modification
Post by: EasyPLC_Master on May 02, 2024, 09:21:47 PM
Yes, of course, you can create your own push buttons or selectors,
See the UDC -> Buttons -> SelectorSwitch. You can change their behaviour or create your own one.
Using the script code you can actuate over the component when the mouse is over it.
Title: Re: MS4 Selector modification
Post by: nato76 on May 05, 2024, 01:27:17 PM
Hi,

Thank you for the information.
I was unable to modify the selector as you wrote. But I made a modification where pressing one button moves the selector up and pressing the other button moves the selector down. For my needs this is sufficient.
Thank you.
Regards :)