Class ObjectivesTab
java.lang.Object
com.csse3200.game.ui.inventoryscreen.ObjectivesTab
- All Implemented Interfaces:
InventoryTabInterface
Objectives tab UI.
Shows each collected objective as a full-width banner image stacked vertically.
No grid is used. Each objective instance occupies one row.
Layout (pixel-accurate on the background art):
Background: inventory-screen/objectives-selected.png
First banner top-left: (x=46, y=252)
Banner height: 74 px
Vertical gap: 12 px
Close hotspot: (971, 16, 39, 39) — same hit area as Inventory
Tab hotspots (invisible): Inventory and Upgrades are clickable, Settings untouched
Objective id mapping (OBJECTIVES bag -> PNG):
dash -> inventory-screen/objectives/dash.png
door -> inventory-screen/objectives/findDoor.png
glider -> inventory-screen/objectives/glider.png
jetpack -> inventory-screen/objectives/jetpack.png
keycard -> inventory-screen/objectives/keycard.png
tutorial -> inventory-screen/objectives/crouch.png
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObjectivesTab
-
-
Method Details
-
build
public com.badlogic.gdx.scenes.scene2d.Actor build(com.badlogic.gdx.scenes.scene2d.ui.Skin skin) Builds the objectives tab as a centered canvas using PixelPerfectPlacer.- Specified by:
buildin interfaceInventoryTabInterface- Parameters:
skin- scene2d skin (not used for visuals here, but required by the interface)- Returns:
- root actor to add to the stage
-
dispose
public void dispose()Dispose all textures owned by this tab
-