#✅ | toggle menu elements?

1 messages · Page 1 of 1 (latest)

lusty tapir
#

Can i make a button that after i click it it toggles a elements visible and any other elements invisible?

glad moatBOT
# lusty tapir Can i make a button that after i click it it toggles a elements visible and any ...

Yes 🙂 You can do that with a FancyMenu variable.

Simple setup

  1. Create a variable, for example my_toggle, and set it to true.
  2. On the elements you want to show, add a Loading Requirement:
    • Is Variable Value
    • my_toggle:true
  3. On the button, add an Action Script that flips the variable:
    • If my_toggle is true → set it to false
    • Else → set it to true

That way, clicking the button will show one set of elements and hide the other.

If you want multiple elements to toggle together

Use the same variable on all of them, and give the other group the opposite requirement.

More info:

If you want, I can also write the exact action script structure for a 2-state toggle.

glad moatBOT
#
Thread Marked as Solved

This support thread has been automatically marked as solved because there were no new messages for at least 24 hours.

If you still need help, feel free to continue the conversation or create a new support thread.