Class KeyBindingsOverlay
java.lang.Object
megamek.client.ui.clientGUI.boardview.overlay.AbstractBoardViewOverlay
megamek.client.ui.clientGUI.boardview.overlay.KeyBindingsOverlay
- All Implemented Interfaces:
IDisplayable,IPreferenceChangeListener
An overlay for the BoardView that displays a selection of keybinds for the current game situation
-
Field Summary
Fields inherited from class megamek.client.ui.clientGUI.boardview.overlay.AbstractBoardViewOverlay
boardView, clientGui, currentGame, currentPhase, font, GUIP -
Constructor Summary
ConstructorsConstructorDescriptionKeyBindingsOverlay(BoardView boardView) An overlay for the BoardView that displays a selection of keybinds for the current game situation. -
Method Summary
Modifier and TypeMethodDescriptionOverride to return a List of all text lines to be shown.protected intgetDistSide(Rectangle clipBounds, int overlayWidth) protected intgetDistTop(Rectangle clipBounds, int overlayHeight) protected StringOverride to return the localized header text, possibly including the current keyboard shortcut to toggle it.protected booleanvoidMethods inherited from class megamek.client.ui.clientGUI.boardview.overlay.AbstractBoardViewOverlay
addHeader, colorToHex, colorToHex, draw, gameTurnOrPhaseChange, getTextColor, isSliding, isVisible, scheduleBoardViewRepaint, setDirty, setVisible, slideMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.client.ui.IDisplayable
isBeingDragged, isDragged, isHit, isMouseOver, isReleased, setIdleTime
-
Constructor Details
-
KeyBindingsOverlay
An overlay for the BoardView that displays a selection of keybinds for the current game situation.
-
-
Method Details
-
getHeaderText
Description copied from class:AbstractBoardViewOverlayOverride to return the localized header text, possibly including the current keyboard shortcut to toggle it.- Specified by:
getHeaderTextin classAbstractBoardViewOverlay
-
assembleTextLines
Description copied from class:AbstractBoardViewOverlayOverride to return a List of all text lines to be shown. UseAbstractBoardViewOverlay.addHeader(List).- Specified by:
assembleTextLinesin classAbstractBoardViewOverlay- Returns:
- an ArrayList of all text lines to be shown.
-
getVisibilityGUIPreference
protected boolean getVisibilityGUIPreference()- Specified by:
getVisibilityGUIPreferencein classAbstractBoardViewOverlay
-
getDistTop
- Specified by:
getDistTopin classAbstractBoardViewOverlay
-
getDistSide
- Specified by:
getDistSidein classAbstractBoardViewOverlay
-
preferenceChange
- Specified by:
preferenceChangein interfaceIPreferenceChangeListener- Overrides:
preferenceChangein classAbstractBoardViewOverlay
-