Package com.prineside.tdi2.ui.actors
Class ItemCell
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.scene2d.Group
com.prineside.tdi2.ui.actors.ItemCell
- All Implemented Interfaces:
Cullable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final floatstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidact(float delta) Updates the actor based on time.voidDraws the group and its children.intgetCount()getItem()booleanvoidmarkStarred(boolean enabled) voidreveal()voidsetColRow(int colIdx, int rowIdx) Заменяет форму фона для ровной таблицы.voidvoidsetCornerText(CharSequence text) voidsetCount(int count) voidsetCovered(boolean covered) voidsetIconAndCount(Actor icon, float iconScale, int count) voidvoidsetItemStack(ItemStack itemStack) voidsetNoRarityBackground(boolean noRarityBackground) voidsetNotificationBubbleEnabled(boolean enabled) voidsetSelected(boolean selected) voidshine(boolean withParticles, boolean withOpaqueOverlay) Вызывать после setColRow и setItemvoidshowRays(boolean visible) Methods inherited from class com.prineside.tdi2.scene2d.Group
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.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
-
WIDTH
public static final float WIDTH- See Also:
-
HEIGHT
public static final float HEIGHT- See Also:
-
COMPACT_SIZE_COEFF
public static final float COMPACT_SIZE_COEFF- See Also:
-
overlay
-
-
Constructor Details
-
ItemCell
public ItemCell()
-
-
Method Details
-
act
public void act(float delta) Description copied from class:ActorUpdates the actor based on time. Typically this is called each frame byStage.act(float).The default implementation calls
Action.act(float)on each action and removes actions that are complete. -
markStarred
public void markStarred(boolean enabled) -
draw
Description copied from class:GroupDraws the group and its children. The default implementation callsGroup.applyTransform(Batch, Matrix4)if needed, thenGroup.drawChildren(Batch, float), thenGroup.resetTransform(Batch)if needed. -
showRays
public void showRays(boolean visible) -
setCornerText
-
setNotificationBubbleEnabled
public void setNotificationBubbleEnabled(boolean enabled) -
setNoRarityBackground
public void setNoRarityBackground(boolean noRarityBackground) -
setCompact
public void setCompact() -
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean selected) -
setColRow
public void setColRow(int colIdx, int rowIdx) Заменяет форму фона для ровной таблицы. Индексы с 0 -
setCovered
public void setCovered(boolean covered) -
reveal
public void reveal() -
shine
public void shine(boolean withParticles, boolean withOpaqueOverlay) Вызывать после setColRow и setItem -
setIconAndCount
-
setItemStack
-
setItem
-
getItem
-
setCount
public void setCount(int count) -
getCount
public int getCount()
-