Constructors

Properties

char: MainChar
cursor_pos: {
    col: number;
    line: number;
}

Type declaration

  • col: number
  • line: number
data: GoldenSun
expanded: boolean
game: Game
icon_group: Group
is_open: boolean
item_grid: ItemSlot[][]
on_change: Function
selected_item: string
sprite_group: Group
text: TextObj
window: Window

Methods

  • Grants user control on the current window.

    Parameters

    • on_cancel: Function

      Called when B is pressed

    • on_select: Function

      Called when A is pressed

    Returns void

  • Parameters

    • char_key: string
    • Optional item: string
    • expand: boolean = false
    • Optional open_callback: (() => void)
        • (): void
        • Returns void

    Returns void