Nocturna
    Preparing search index...

    Class KeybindsManager

    KeybindsManager manages the user interface for editing and displaying key bindings in the game.

    Responsibilities:

    • Opens and closes the keybinds modal dialog.
    • Dynamically renders the list of key bindings and their current keys.
    • Allows the user to change key bindings by listening for key presses.
    • Integrates with the InputHandler to update and persist key bindings.
    • Supports translation of action names for localization.

    Usage:

    • Instantiate with an InputHandler instance.
    • The settings button (with id "settings-button") opens the keybinds modal.
    • The modal (with id "keybinds-modal") displays all key bindings and allows editing.
    Index

    Constructors

    Methods

    • Returns true if the user is currently editing key bindings.

      Returns boolean

    • Renders the list of key bindings in the modal.

      Parameters

      • modal: HTMLElement

        The modal HTMLElement where key bindings are displayed.

      Returns void