Constructor


Choicebox(x: any, y: any, width: any, height: any, battle_box: any, options: any)

Arguments:

x: any
y: any
width: any
height: any
battle_box: any
options: any




Methods


Choicebox:addChoice(name: string)

Adds a new choice to the choicebox.

@param name — The name of the new choice that will be shown for the selection.

Arguments:

name: string

The name of the new choice that will be shown for the selection.









Choicebox:setColors(main: table?, hover: table?)

Sets the main and hover colors for every choice in the choicebox.

@param main — The main color to set for all choices, or a table of main colors for each individual choice. (Defaults to COLORS.white)

@param hover — The hover color to set for all choices, or a table of hover colors for each individual choice. (Defaults to COLORS.yellow)

Arguments:

main: table?

The main color to set for all choices, or a table of main colors for each individual choice. (Defaults to COLORS.white)

hover: table?

The hover color to set for all choices, or a table of hover colors for each individual choice. (Defaults to COLORS.yellow)



Choicebox:setSize(w: any, h: any)

Arguments:

w: any
h: any





Fields



Undocumented