Class ProgressBar

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

public class ProgressBar extends UIComponent
  • Constructor Details

    • ProgressBar

      public ProgressBar()
  • Method Details

    • create

      public void create()
      Creates reusable ui styles and adds actors to the stage.
      Overrides:
      create in class UIComponent
    • createTexture

      public void createTexture()
      Creates each image as an image object then adds to an array of images for later use
    • updateProgressBar

      public void updateProgressBar(String questName)
      Updates which array the images are pulled from based on the progress of the quests
    • updateDisplay

      public void updateDisplay()
      Updates the display dependent on what day it is. Will also call createTexture(), if the array is empty.
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draws the actors to the game.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.
    • dispose

      public void dispose()
      Destroys the UI objects
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent