DarkConfigMenu

┗> Object > Class


The config menu, for changing in-game settings.


Constructor






Methods


DarkConfigMenu:addExitOptions()

Adds the default "return to title" and "back" buttons.



DarkConfigMenu:addOption(option: DarkConfigOption)

Adds an option to the menu.

Arguments:

option: DarkConfigOption

Returns:

option: DarkConfigOption


DarkConfigMenu:clearOptions()

Clears all options from the menu.





DarkConfigMenu:drawMainState()

Responsible for drawing the scroll bar in the main state.











DarkConfigMenu:insertOption(index: integer, option: DarkConfigOption)

Inserts an option into the menu at a specific index.

Arguments:

index: integer
option: DarkConfigOption

Returns:

option: DarkConfigOption




DarkConfigMenu:onKeyPressed(key: any)

Arguments:

key: any


DarkConfigMenu:onStateChanged(old: any, new: any)

Arguments:

old: any
new: any


DarkConfigMenu:registerDefaults()

Registers the default options.

If "forced fullscreen" is enabled (consoles, phones) then the fullscreen option is not present, and replaced with the border option.



DarkConfigMenu:removeOption(index: integer)

Removes an option from the menu.

Arguments:

index: integer

Returns:

option: DarkConfigOption


DarkConfigMenu:removeOptionByChild(child: DarkConfigOption)

Removes an option from the menu.

Arguments:

child: DarkConfigOption

Returns:

option: DarkConfigOption?


DarkConfigMenu:setState(state: any)

Arguments:

state: any






DarkConfigMenu:updateConfigOptions()

Updates the config options.






Undocumented









DarkConfigMenu.config_text: Text

The Text object, made for displaying formatted text.

If you're looking for text which writes itself out over time, see DialogueText.