Magic Combat Radio Button Refresh Action
pass this to org.magiclib.combatgui.MagicCombatGuiBase.addButtonGroup as refresh to enable radio-button behavior
!Use triggeringButtonData in your action, data might contain multiple entries!
Since the refresh action is performed after the action, this is unavoidable. If e.g. one button is active and the user clicks on a second button, the executeAction (AKA MagicCombatButtonGroupAction) will get called with the data of both buttons as data and the clicked button as triggeringButtonData. Then, this refresh action will get triggered and un-click the first button.
Attention: only works if all buttons have unique non-null data!
Author
Jannes
Since
1.3.0