Class ToolbarDisplay

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.badlogic.gdx.utils.Json.Serializable, Renderable, Comparable<Renderable>

public class ToolbarDisplay extends UIComponent
Display the UI for the toolbar
  • Constructor Details

    • ToolbarDisplay

      public ToolbarDisplay()
  • Method Details

    • create

      public void create()
      Creates the event listeners, ui, and gets the UI.
      Overrides:
      create in class UIComponent
    • setPause

      public void setPause()
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draw stage for render
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.
    • toggleOpen

      public void toggleOpen()
      Toggle Toolbar to open state
    • hide

      public void hide()
      Hide the toolbar. But why would you ever want to do that?
    • updateInventory

      public void updateInventory()
      Updates the player's inventory toolbar on the ui.
    • addTooltips

      public void addTooltips()