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
Modifier and TypeFieldDescriptionstatic final float
static final float
static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
act
(float delta) Updates the actor based on time.void
Draws the group and its children.int
getCount()
getItem()
boolean
void
markStarred
(boolean enabled) void
reveal()
void
setColRow
(int colIdx, int rowIdx) Заменяет форму фона для ровной таблицы.void
void
setCornerText
(CharSequence text) void
setCount
(int count) void
setCovered
(boolean covered) void
setIconAndCount
(Actor icon, float iconScale, int count) void
void
setItemStack
(ItemStack itemStack) void
setNoRarityBackground
(boolean noRarityBackground) void
setNotificationBubbleEnabled
(boolean enabled) void
setSelected
(boolean selected) void
shine
(boolean withParticles, boolean withOpaqueOverlay) Вызывать после setColRow и setItemvoid
showRays
(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, 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
-
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:Actor
Updates 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:Group
Draws 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()
-