• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Question Toggle negative trigger?

bFlamingfire

New member
Joined
Mar 3, 2021
Messages
5
Reactions
18
This might be a stupid question. Where is the uncheck trigger of UIToggler defined? I cannot find anywhere in the UIToggler interface.
 
This might be a stupid question. Where is the uncheck trigger of UIToggler defined? I cannot find anywhere in the UIToggler interface.

Well there is no second "OnInactivation" trigger to specify, but it's usually opposite of what you have as "Toggle Action" (doesn't work on everything).
Think of it as UIButton with single "Button Action" but you actually trigger opposite "action/trigger" when off/unchecked.
example toggleOn with UIButton will toggle states, but on(true)/off(false) triggers won't work with UIButton.
With UIToggler for example you set "on" when checked and "off" will be when unchecked, or change values of something (first & second point value).

It's basically built in sort of "flip-flop" system.
Instead of having single input/action on UIButton press you have second one when toggled off.
You can still use 2 values on UIButton but it won't freeze/toggle in between values, that's where UIToggle comes in.
uitoggle1.jpg

uitoggle2.jpg

uitoggle3.jpg
 
Upvote 0
Back
Top Bottom