On this page

britzl/gooey/gooey.gooey

Defold GUI system

  • GitHub: britzl/gooey — pinned to 2fe3aed
    1. Pick a release from britzl/gooey releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as gooey from "gooey.gooey"

Functions

button(node_id: Hash | string, action_id: Hash, action: table, fn: (button: ButtonState) => void, refresh_fn?: (button: ButtonState) => void): ButtonState

Parameters

  • node_id: Hash | string
  • action_id: Hash
  • action: table
  • fn: (button: ButtonState) => void
  • refresh_fn?: (button: ButtonState) => void

Returns

  • ButtonState

checkbox(node_id: Hash | string, action_id: Hash, action: table, fn: (checkbox: CheckboxState) => void, refresh_fn?: (checkbox: CheckboxState) => void): CheckboxState

Parameters

  • node_id: Hash | string
  • action_id: Hash
  • action: table
  • fn: (checkbox: CheckboxState) => void
  • refresh_fn?: (checkbox: CheckboxState) => void

Returns

  • CheckboxState

radio(node_id: Hash | string, group: string, action_id: Hash, action: table, fn: (radio: RadioState) => void, refresh_fn?: (radio: RadioState) => void): RadioState

Parameters

  • node_id: Hash | string
  • group: string
  • action_id: Hash
  • action: table
  • fn: (radio: RadioState) => void
  • refresh_fn?: (radio: RadioState) => void

Returns

  • RadioState

static_list(list_id: string, stencil_id: Hash | string, item_ids: (Hash | string)[], action_id: Hash, action: table, config: { horizontal?: boolean; } | undefined, fn: (list: ListState) => void, refresh_fn?: (list: ListState) => void, is_horizontal?: boolean): ListState

Parameters

  • list_id: string
  • stencil_id: Hash | string
  • item_ids: (Hash | string)[]
  • action_id: Hash
  • action: table
  • config: { horizontal?: boolean; } | undefined
  • fn: (list: ListState) => void
  • refresh_fn?: (list: ListState) => void
  • is_horizontal?: boolean

Returns

  • ListState

Parameters

  • list_id: string
  • root_id: string
  • stencil_id: Hash | string
  • item_id: Hash | string
  • data: table
  • action_id: Hash
  • action: table
  • config: { horizontal?: boolean; carousel?: boolean; } | undefined
  • fn: (list: ListState) => void
  • refresh_fn?: (list: ListState) => void
  • is_horizontal?: boolean

Returns

  • ListState

Parameters

  • list_id: string
  • root_id: string
  • stencil_id: Hash | string
  • item_id: Hash | string
  • data: table
  • action_id: Hash
  • action: table
  • config: { carousel?: boolean; } | undefined
  • fn: (list: ListState) => void
  • refresh_fn?: (list: ListState) => void

Returns

  • ListState

Parameters

  • list_id: string
  • root_id: string
  • stencil_id: Hash | string
  • item_id: Hash | string
  • data: table
  • action_id: Hash
  • action: table
  • config: { carousel?: boolean; } | undefined
  • fn: (list: ListState) => void
  • refresh_fn?: (list: ListState) => void

Returns

  • ListState

horizontal_static_list(list_id: string, stencil_id: Hash | string, item_ids: (Hash | string)[], action_id: Hash, action: table, config: undefined, fn: (list: ListState) => void, refresh_fn?: (list: ListState) => void): ListState

Parameters

  • list_id: string
  • stencil_id: Hash | string
  • item_ids: (Hash | string)[]
  • action_id: Hash
  • action: table
  • config: undefined
  • fn: (list: ListState) => void
  • refresh_fn?: (list: ListState) => void

Returns

  • ListState

vertical_static_list(list_id: string, stencil_id: Hash | string, item_ids: (Hash | string)[], action_id: Hash, action: table, config: undefined, fn: (list: ListState) => void, refresh_fn?: (list: ListState) => void): ListState

Parameters

  • list_id: string
  • stencil_id: Hash | string
  • item_ids: (Hash | string)[]
  • action_id: Hash
  • action: table
  • config: undefined
  • fn: (list: ListState) => void
  • refresh_fn?: (list: ListState) => void

Returns

  • ListState

vertical_scrollbar(handle_id: Hash | string, bounds_id: Hash | string, action_id: Hash, action: table, fn: (scrollbar: ScrollbarState) => void, refresh_fn?: (scrollbar: ScrollbarState) => void): ScrollbarState

Parameters

  • handle_id: Hash | string
  • bounds_id: Hash | string
  • action_id: Hash
  • action: table
  • fn: (scrollbar: ScrollbarState) => void
  • refresh_fn?: (scrollbar: ScrollbarState) => void

Returns

  • ScrollbarState

input(node_id: Hash | string, keyboard_type: number, action_id: Hash, action: table, config?: { max_length?: number; empty_text?: string; allowed_characters?: string; use_marked_text?: boolean; }, refresh_fn?: (input: InputState) => void): InputState

Parameters

  • node_id: Hash | string
  • keyboard_type: number
  • action_id: Hash
  • action: table
  • config?: { max_length?: number; empty_text?: string; allowed_characters?: string; use_marked_text?: boolean; }
    • max_length?: number
    • empty_text?: string
    • allowed_characters?: string
    • use_marked_text?: boolean
  • refresh_fn?: (input: InputState) => void

Returns

  • InputState

group(group_id: string, fn: () => void): table

Parameters

  • group_id: string
  • fn: () => void

Returns

  • table