When regular Interactive is too little, but SimpleButton is too inflexible. Write your own state view!
Class handles keeping track of current button state as well as lets you simulate the state.
More specific behavior can be achieved by using flags.
All View have to do is implement setState(state, flags)
method and handle viewing specific state.
Constructor
Variables
read onlysimState:ButtonState = 0xff
Current simulated state. Disabled if set to 0xff. While simulated state is active, CustomButton keeps track of real button state, but does not invalidate the view.
read onlystate:ButtonState
Flag list the button currently contains. Does not affect state invalidation and used solely for views to utilize.
Most simple use-case is disabling the button.