Has somebody figured how to disable events upon toggling an option in the option menu? #4222
-
If I have an event that is too flashy and need to have an option to disable it in the options menu, how would I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
AbnormalPoof
Feb 25, 2025
Replies: 2 comments 8 replies
-
I will guess the only way is making a Option and if true it activates the event class/logic? |
Beta Was this translation helpful? Give feedback.
5 replies
-
You can move the event logic to a separate module instead of putting it in |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
AbnormalPoof
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can move the event logic to a separate module instead of putting it in
handleEvent
, then simply disable that module when enabling an option.