Package com.prineside.tdi2.ui.actors
Class ComplexButton
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.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) Любой цвет может быть nullvoidsetClickHandler(Runnable runnable) setEnabled(boolean enabled) voidsetHoldHintIconBright(boolean isBright) setIconColors(Color normal, Color hover, Color active, Color disabled) setIconLabelColors(Color normal, Color hover, Color active, Color disabled) Любой цвет может быть nullvoidsetIconLabelShadowEnabled(boolean enabled) setLabel(float x, float y, float width, float height, int align) setLabelColors(Color normal, Color hover, Color active, Color disabled) voidsetMuted(boolean muted) setText(int text) setText(CharSequence text) Methods inherited from class com.badlogic.gdx.scenes.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, 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
- 
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
 - 
setIcon
 - 
setIcon
 - 
setText
 - 
setText
 - 
setLabel
 - 
setBackgroundColors
Любой цвет может быть null - 
setIconLabelColors
Любой цвет может быть null - 
setIconColors
 - 
setIconLabelShadowEnabled
public void setIconLabelShadowEnabled(boolean enabled)  - 
setLabelColors
 - 
setEnabled
 
 -