Class QuestPopup

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

public class QuestPopup extends UIComponent
A popup UI that displays a popup message when a quest is completed.
  • Constructor Details

    • QuestPopup

      public QuestPopup()
  • Method Details

    • create

      public void create()
      Initializes the component.
      Overrides:
      create in class UIComponent
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draws the popup message and creates label.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - The SpriteBatch used for drawing.
    • dispose

      public void dispose()
      Disposes of popup message.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent