public class SpriteButton extends Sprite
| Constructor and Description |
|---|
SpriteButton(float x,
float y,
com.badlogic.gdx.graphics.Texture texture)
A sprite which can be clicked on.
|
act, draw, getPosition, getTexture, getX, getY, increaseX, increaseY, refreshBounds, setPosition, setTexture, setX, setYaddAction, addCaptureListener, addListener, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, fire, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getY, getZIndex, hasParent, hit, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toStringpublic SpriteButton(float x,
float y,
com.badlogic.gdx.graphics.Texture texture)
x - xPosition on screeny - yPosition on screentexture - Image texture to use