Class SettingsTab

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

public class SettingsTab extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.badlogic.gdx.scenes.scene2d.Actor
    build(com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
    Builds and returns the UI for this tab.
    void
    Cleanup method to call when the settings tab is closed This ensures any active rebinding is cancelled
    void
    updateKeyBindButton(String actionName, int newKeyCode)
    Updates the display text of a key bind button after rebinding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface InventoryTabInterface
    • updateKeyBindButton

      public void updateKeyBindButton(String actionName, int newKeyCode)
      Updates the display text of a key bind button after rebinding
      Parameters:
      actionName - The action that was rebound
      newKeyCode - 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