I have a toogle TextureButton. It turns on an ability IF the player is level 19 or higher. The problem is, if the player is too low of level, I want to manually turn off the button. I have to use
AbilityButton.pressed = false which then calls the toggled function again. Is there a way to catch the button toggled before it actually draws the PRESSED state, then manually turn the state to NORMAL, and cancel the event so it doesn't call the toggled function at all?