Class ItemCell

All Implemented Interfaces:
Cullable

public class ItemCell extends Group
  • Field Details

  • Constructor Details

    • ItemCell

      public ItemCell()
  • Method Details

    • act

      public void act(float delta)
      Description copied from class: com.badlogic.gdx.scenes.scene2d.Actor
      Updates the actor based on time. Typically this is called each frame by Stage.act(float).

      The default implementation calls Action.act(float) on each action and removes actions that are complete.

      Overrides:
      act in class Group
      Parameters:
      delta - Time in seconds since the last frame.
    • markStarred

      public void markStarred(boolean enabled)
    • draw

      public void draw(Batch batch, float parentAlpha)
      Description copied from class: com.badlogic.gdx.scenes.scene2d.Group
      Draws the group and its children. The default implementation calls Group.applyTransform(Batch, Matrix4) if needed, then Group.drawChildren(Batch, float), then Group.resetTransform(Batch) if needed.
      Overrides:
      draw in class Group
      parentAlpha - The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
    • showRays

      public void showRays(boolean visible)
    • setCornerText

      public void setCornerText(CharSequence text)
    • 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

      public void setIconAndCount(Actor icon, float iconScale, int count)
    • setItem

      public void setItem(ItemStack itemStack)
    • setItem

      public void setItem(Item item, int count)
    • getItem

      public Item getItem()
    • setCount

      public void setCount(int count)
    • getCount

      public int getCount()