-
- All Implemented Interfaces:
-
com.dp.advancedgunnerycontrol.combatgui.buttongroups.RefreshButtonsAction
public final class RadioButtonRefreshAction implements RefreshButtonsAction
pass this to GuiLayout.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 ButtonGroupAction) 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!
-
-
Constructor Summary
Constructors Constructor Description RadioButtonRefreshAction()
-
Method Summary
Modifier and Type Method Description UnitrefreshButtons(DataButtonGroup group)will get called every frame -
-
Method Detail
-
refreshButtons
Unit refreshButtons(DataButtonGroup group)
will get called every frame
- Parameters:
group- to perform actions on.
-
-
-
-