Kerby64
    Preparing search index...

    Class WorldGui

    The WorldGui class manages the user interface for the game world.
    It includes functionality for displaying stats, a pause menu, and toggling UI visibility.

    Implement stats and main UI functionality.

    Index

    Constructors

    Properties

    isPaused: boolean = false
    scene: LevelScene

    Accessors

    • set PauseMenuVisibility(isVisible: boolean): void

      Toggles the visibility of the pause grid.

      Parameters

      • isVisible: boolean

      Returns void

    Methods

    • Parameters

      • resumeCallback: () => void

      Returns void

    • Toggles the visibility of the UI and updates the stat grid visibility accordingly. Usually called when the player presses the toggle UI button.

      Returns void