Add "toggle" action to settings that only have 2 states (such as "visibility") #3505
Replies: 3 comments
-
Music/Sound can have too! |
Beta Was this translation helpful? Give feedback.
-
Partially done, it's available for boolean variables. As this is a request and not an issue I convert it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
The "toggle boolean" method is nice and is easy to implement in the code but I would also plead for toggle actions that Tristan has suggested. Every toggle would save at least two events and conditions per use. In my opinion, the code can get unclear quickly with this since when the events are folded, all that is visible is the name of the boolean and unfolded events will take up much space whereas one toggle action would keep it cleaner. As far as I'm aware, adding toggles like that is not connected with a lot of performance impacting and possibly even less effort than making toggles manually and will reduce the amount of used scene variable as well. |
Beta Was this translation helpful? Give feedback.
-
Description
When users want to change the state of a setting that has two values, they must add extra events to detect if the state was toggled.
Solution suggested
Add an action to "toggle" the state for all settings that only have two states
Beta Was this translation helpful? Give feedback.
All reactions