Constructors

  • Parameters

    • game: Game
    • data: GoldenSun
    • buttons: string[]
    • titles: string[]
    • callbacks: {
          on_cancel?: Function;
          on_press: Function;
      }
      • Optional on_cancel?: Function
      • on_press: Function
    • Optional title_window_width: number
    • dock_right: boolean = false

    Returns HorizontalMenu

Properties

buttons: {
    sprite: Sprite;
    title: string;
}[]

Type declaration

  • sprite: Sprite
  • title: string
buttons_keys: string[]
buttons_number: number
custom_scale: {
    active_default: number;
    max_scale: number;
}

Type declaration

  • active_default: number
  • max_scale: number
data: GoldenSun
dock_right: boolean
game: Game
group: Group
menu_active: boolean
menu_open: boolean
on_cancel: Function
on_press: Function
selected_button_index: number
selected_button_tween: Tween
title_text_obj: TextObj
title_window: Window
title_window_width: number
titles: string[]
x: number
y: number

Methods

  • Parameters

    • Optional callback: Function
    • select_index: number = 0
    • start_active: boolean = true
    • Optional custom_scale: {
          active_default: number;
          max_scale: number;
      }
      • active_default: number
      • max_scale: number
    • Optional confirm_sfx: string | (() => string)

    Returns void