Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InventoryWindow

Index

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

  • change_character(key_name: string): void
  • check_expand(expand: boolean): void
  • close(callback?: (() => void), destroy?: boolean): void
  • grant_control(on_cancel: Function, on_select: Function): void
  • 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

  • kill_all_sprites(group: Group, destroy?: boolean): void
  • kill_item_at(line: number, col: number): void
  • make_item_grid(): void
  • next_col(): void
  • next_line(): void
  • open(char_key: string, item?: string, expand?: boolean, open_callback?: (() => void)): void
  • previous_col(): void
  • previous_line(): void
  • refresh(char_key: string, item?: string): void
  • set_cursor(line: number, col: number): void
  • set_sprites(): void
  • set_text(): void

Generated using TypeDoc