setButtonMappings

Sets the button mappings for the DynamicGUI. Each state is associated with a list of buttons that define the appearance and functionality of the GUI in that state.

Return

The current instance of DynamicGUI for method chaining.

Parameters

mappings

A map associating each state of type S with a list of Buttons. The keys represent the possible states of the GUI, and the values are the corresponding lists of buttons to display for each state.