• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

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