Class ObjectivesTab

java.lang.Object
com.csse3200.game.ui.inventoryscreen.ObjectivesTab
All Implemented Interfaces:
InventoryTabInterface

public class ObjectivesTab extends Object implements InventoryTabInterface
Objectives tab shown inside the pause menu
  • Constructor Details

    • ObjectivesTab

      public ObjectivesTab(MainGameScreen gameScreen)
      Creates an Objectives tab bound to the given main game screen.
      Parameters:
      gameScreen - main game screen used to unpause and hide the pause menu
  • Method Details

    • build

      public com.badlogic.gdx.scenes.scene2d.Actor build(com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
      Builds the UI actor tree for the objectives tab. The background is placed using a pixel-perfect placer and scaled to two thirds of the current screen height while preserving aspect ratio. An invisible button is overlaid at a fixed pixel rectangle to act as the close hotspot
      Specified by:
      build in interface InventoryTabInterface
      Parameters:
      skin - UI skin used for widget construction
      Returns:
      a root table containing the objectives content