Package 

Class RadioButtonRefreshAction

  • 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!

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit refreshButtons(DataButtonGroup group) will get called every frame
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RadioButtonRefreshAction

        RadioButtonRefreshAction()