Package com.prineside.tdi2.ui.actors
Class ComplexButton
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.scene2d.Group
com.prineside.tdi2.ui.actors.ComplexButton
- All Implemented Interfaces:
Cullable
- Direct Known Subclasses:
RectButton
Кнопка, содержащая
- Изображение фона
- Значок
- Надпись
Можно изменять цвет фона / значка с надписью
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComplexButton
(CharSequence text, Label.LabelStyle labelStyle, Runnable clickHandler) ComplexButton
(CharSequence text, Label.LabelStyle labelStyle, Runnable clickHandler, Runnable holdHandler) -
Method Summary
Modifier and TypeMethodDescriptionsetBackground
(Drawable drawable, float x, float y, float width, float height) setBackgroundColors
(Color normal, Color active, Color hover, Color disabled) Любой цвет может быть nullvoid
setClickHandler
(Runnable runnable) setEnabled
(boolean enabled) void
setHoldHintIconBright
(boolean isBright) setIconColors
(Color normal, Color hover, Color active, Color disabled) setIconLabelColors
(Color normal, Color hover, Color active, Color disabled) Любой цвет может быть nullvoid
setIconLabelShadowEnabled
(boolean enabled) setIconPositioned
(Drawable drawable, float x, float y, float width, float height) setLabel
(float x, float y, float width, float height, int align) setLabelColors
(Color normal, Color hover, Color active, Color disabled) void
setMuted
(boolean muted) setText
(CharSequence text) setTextFromInt
(int text) Methods inherited from class com.prineside.tdi2.scene2d.Group
act, addActor, addActorAfter, addActorAt, addActorBefore, clear, clear, clearChildren, clearChildren, debugAll, draw, drawDebug, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, setCullingArea, setDebug, setTransform, swapActor, swapActor, toString
Methods inherited from class com.prineside.tdi2.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
-
background
-
backgroundShadow
-
iconShadow
-
icon
-
label
-
labelShadow
-
holdHintIcon
-
-
Constructor Details
-
ComplexButton
public ComplexButton(CharSequence text, Label.LabelStyle labelStyle, Runnable clickHandler, Runnable holdHandler) -
ComplexButton
-
-
Method Details
-
setHoldHintIconBright
public void setHoldHintIconBright(boolean isBright) -
setMuted
public void setMuted(boolean muted) -
setClickHandler
-
setBackground
-
setIconPositioned
public ComplexButton setIconPositioned(Drawable drawable, float x, float y, float width, float height) -
setIcon
-
setText
-
setTextFromInt
-
setLabel
-
setBackgroundColors
Любой цвет может быть null -
setIconLabelColors
Любой цвет может быть null -
setIconColors
-
setIconLabelShadowEnabled
public void setIconLabelShadowEnabled(boolean enabled) -
setLabelColors
-
setEnabled
-