On this page
britzl/gooey/gooey.gooey
Defold GUI system
- GitHub: britzl/gooey — pinned to
2fe3aed- Pick a release from britzl/gooey releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as gooey from "gooey.gooey"
- Pick a release from britzl/gooey releases and add its Source code (zip) URL (or a packaged
Functions
button(node_id: Hash | string, action_id: Hash, action: table, fn: (button: ButtonState) => void, refresh_fn?: (button: ButtonState) => void): ButtonStatecheckbox(node_id: Hash | string, action_id: Hash, action: table, fn: (checkbox: CheckboxState) => void, refresh_fn?: (checkbox: CheckboxState) => void): CheckboxStateradio(node_id: Hash | string, group: string, action_id: Hash, action: table, fn: (radio: RadioState) => void, refresh_fn?: (radio: RadioState) => void): RadioStatestatic_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): ListStatedynamic_list(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): ListStatehorizontal_dynamic_list(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): ListStatevertical_dynamic_list(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): ListStatehorizontal_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): ListStatevertical_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): ListStatevertical_scrollbar(handle_id: Hash | string, bounds_id: Hash | string, action_id: Hash, action: table, fn: (scrollbar: ScrollbarState) => void, refresh_fn?: (scrollbar: ScrollbarState) => void): ScrollbarStateinput(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): InputStategroup(group_id: string, fn: () => void): table
button(node_id: Hash | string, action_id: Hash, action: table, fn: (button: ButtonState) => void, refresh_fn?: (button: ButtonState) => void): ButtonState
Parameters
node_id:Hash | stringaction_id:Hashaction:tablefn:(button: ButtonState) => voidrefresh_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 | stringaction_id:Hashaction:tablefn:(checkbox: CheckboxState) => voidrefresh_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 | stringgroup:stringaction_id:Hashaction:tablefn:(radio: RadioState) => voidrefresh_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:stringstencil_id:Hash | stringitem_ids:(Hash | string)[]action_id:Hashaction:tableconfig:{ horizontal?: boolean; } | undefinedfn:(list: ListState) => voidrefresh_fn?:(list: ListState) => voidis_horizontal?:boolean
Returns
ListState
dynamic_list(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): ListState
Parameters
list_id:stringroot_id:stringstencil_id:Hash | stringitem_id:Hash | stringdata:tableaction_id:Hashaction:tableconfig:{ horizontal?: boolean; carousel?: boolean; } | undefinedfn:(list: ListState) => voidrefresh_fn?:(list: ListState) => voidis_horizontal?:boolean
Returns
ListState
horizontal_dynamic_list(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): ListState
Parameters
list_id:stringroot_id:stringstencil_id:Hash | stringitem_id:Hash | stringdata:tableaction_id:Hashaction:tableconfig:{ carousel?: boolean; } | undefinedfn:(list: ListState) => voidrefresh_fn?:(list: ListState) => void
Returns
ListState
vertical_dynamic_list(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): ListState
Parameters
list_id:stringroot_id:stringstencil_id:Hash | stringitem_id:Hash | stringdata:tableaction_id:Hashaction:tableconfig:{ carousel?: boolean; } | undefinedfn:(list: ListState) => voidrefresh_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:stringstencil_id:Hash | stringitem_ids:(Hash | string)[]action_id:Hashaction:tableconfig:undefinedfn:(list: ListState) => voidrefresh_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:stringstencil_id:Hash | stringitem_ids:(Hash | string)[]action_id:Hashaction:tableconfig:undefinedfn:(list: ListState) => voidrefresh_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 | stringbounds_id:Hash | stringaction_id:Hashaction:tablefn:(scrollbar: ScrollbarState) => voidrefresh_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 | stringkeyboard_type:numberaction_id:Hashaction:tableconfig?:{ max_length?: number; empty_text?: string; allowed_characters?: string; use_marked_text?: boolean; }max_length?:numberempty_text?:stringallowed_characters?:stringuse_marked_text?:boolean
refresh_fn?:(input: InputState) => void
Returns
InputState
group(group_id: string, fn: () => void): table
Parameters
group_id:stringfn:() => void
Returns
table