Package com.prineside.tdi2.ui.actors
Class HotKeyHintLabel
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.prineside.tdi2.ui.actors.HotKeyHintLabel
- All Implemented Interfaces:
Cullable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHotKeyHintLabel(int[] keys, float x, float y) HotKeyHintLabel(int[] keys, float x, float y, int align) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVariant(int[] keys) Альтернативная подсказка Если кнопка одна, будет показана через / всегда после обычного хоткея Если комбинация клавиш, будет показана вместо стандартной, если хотя бы одна клавиша зажатаvoidDraws the group and its children.static CharSequencegenerateHotKeysLabelText(int[] keys) Also escapes [ to [[static booleanstatic booleanMethods inherited from class com.badlogic.gdx.scenes.scene2d.Group
act, addActor, addActorAfter, addActorAt, addActorBefore, clear, clear, clearChildren, clearChildren, debugAll, drawDebug, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, setCullingArea, setDebug, setTransform, swapActor, swapActor, toStringMethods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
-
Field Details
-
debug
public boolean debug
-
-
Constructor Details
-
HotKeyHintLabel
public HotKeyHintLabel(int[] keys, float x, float y) -
HotKeyHintLabel
public HotKeyHintLabel(int[] keys, float x, float y, int align)
-
-
Method Details
-
draw
Description copied from class:com.badlogic.gdx.scenes.scene2d.GroupDraws the group and its children. The default implementation callsGroup.applyTransform(Batch, Matrix4)if needed, thenGroup.drawChildren(Batch, float), thenGroup.resetTransform(Batch)if needed. -
addVariant
public void addVariant(int[] keys) Альтернативная подсказка Если кнопка одна, будет показана через / всегда после обычного хоткея Если комбинация клавиш, будет показана вместо стандартной, если хотя бы одна клавиша зажата -
isAvailable
public static boolean isAvailable() -
isEnabled
public static boolean isEnabled() -
generateHotKeysLabelText
Also escapes [ to [[
-