Class SettingsTab
java.lang.Object
com.csse3200.game.ui.inventoryscreen.SettingsTab
- All Implemented Interfaces:
InventoryTabInterface
Settings tab for the pause menu inventory screen.
Provides access to commonly adjusted game settings during gameplay.
Features included:
- Master Volume: Control overall game volume (0-100%)
- Music Volume: Control background music volume (0-100%)
- Key Bindings: Interactive display of all current keybinds with rebinding functionality
This is designed for quick in-game access to essential settings. For advanced display
settings (FPS, fullscreen, VSync, resolution), use the main settings menu instead.
The keybind section dynamically loads all from the Keymap,
including player controls and pause menu shortcuts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.scenes.scene2d.Actor
build
(com.badlogic.gdx.scenes.scene2d.ui.Skin skin) Builds and returns the UI for this tab.void
dispose()
Cleanup method to call when the settings tab is closed This ensures any active rebinding is cancelledvoid
updateKeyBindButton
(String actionName, int newKeyCode) Updates the display text of a key bind button after rebinding
-
Constructor Details
-
SettingsTab
public SettingsTab()
-
-
Method Details
-
build
public com.badlogic.gdx.scenes.scene2d.Actor build(com.badlogic.gdx.scenes.scene2d.ui.Skin skin) Description copied from interface:InventoryTabInterface
Builds and returns the UI for this tab.- Specified by:
build
in interfaceInventoryTabInterface
-
updateKeyBindButton
Updates the display text of a key bind button after rebinding- Parameters:
actionName
- The action that was reboundnewKeyCode
- The new key code
-
dispose
public void dispose()Cleanup method to call when the settings tab is closed This ensures any active rebinding is cancelled
-