Package com.prineside.tdi2.ui.actors
Class PaddedImageButton
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.prineside.tdi2.ui.actors.PaddedImageButton
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable
public class PaddedImageButton
extends com.badlogic.gdx.scenes.scene2d.Group
Прозрачная кнопка с изображением.
Меняется цвет изображения (значка)
-
Constructor Summary
ConstructorsConstructorDescriptionPaddedImageButton(com.badlogic.gdx.scenes.scene2d.utils.Drawable drawable, Runnable clickHandler, com.badlogic.gdx.graphics.Color normalIconColor, com.badlogic.gdx.graphics.Color hoverIconColor, com.badlogic.gdx.graphics.Color activeIconColor) -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.Colorcom.badlogic.gdx.scenes.scene2d.ui.ImagegetIcon()voidvoidsetColors(com.badlogic.gdx.graphics.Color normalColor, com.badlogic.gdx.graphics.Color hoverColor, com.badlogic.gdx.graphics.Color activeColor) voidsetDisabledColor(com.badlogic.gdx.graphics.Color color) voidsetEnabled(boolean enabled) setIcon(com.badlogic.gdx.scenes.scene2d.utils.Drawable iconDrawable) setIconPosition(float x, float y) setIconSize(float width, float height) voidsetShadow(com.badlogic.gdx.scenes.scene2d.utils.Drawable drawable, float x, float y, float width, float height, com.badlogic.gdx.graphics.Color color) voidMethods 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
-
Constructor Details
-
PaddedImageButton
public PaddedImageButton(com.badlogic.gdx.scenes.scene2d.utils.Drawable drawable, Runnable clickHandler, com.badlogic.gdx.graphics.Color normalIconColor, com.badlogic.gdx.graphics.Color hoverIconColor, com.badlogic.gdx.graphics.Color activeIconColor)
-
-
Method Details
-
setShadow
public void setShadow(com.badlogic.gdx.scenes.scene2d.utils.Drawable drawable, float x, float y, float width, float height, com.badlogic.gdx.graphics.Color color) -
hideShadow
public void hideShadow() -
getDisabledColor
public com.badlogic.gdx.graphics.Color getDisabledColor() -
setColors
public void setColors(com.badlogic.gdx.graphics.Color normalColor, com.badlogic.gdx.graphics.Color hoverColor, com.badlogic.gdx.graphics.Color activeColor) -
setDisabledColor
public void setDisabledColor(com.badlogic.gdx.graphics.Color color) -
setEnabled
public void setEnabled(boolean enabled) -
setIconSize
-
setIcon
-
setIconPosition
-
getIcon
public com.badlogic.gdx.scenes.scene2d.ui.Image getIcon() -
updateColors
public void updateColors()
-