CorsixTH Lua Documentation

UIOptions Class

Options window used in the main menu and ingame.

Declared on: line 21 of Lua/dialogs/resizables/options.lua.
Inheritance: UIOptions » UIResizable » Window

Method Index

Member Index

(*) only used in superclass methods
function UIOptions:UIOptions(ui, mode)

Parameters:

NameTypeDescription
ui ? ?
mode ? ?

Declared on: line 168 of Lua/dialogs/resizables/options.lua.

function UIOptions:_getOptionYPos()

Private functions - Calculates the Y position for the dialog box in the option menu and increments along the current position for the next element @return The Y position to place the element at

Declared on: line 44 of Lua/dialogs/resizables/options.lua.

function UIOptions:_processWindowResizeEvent()

Handle required button changes from a window resize event from the user (via UI or adjusting window boundaries)

Declared on: line 652 of Lua/dialogs/resizables/options.lua.

function UIOptions:_startNewColumn()

Resets the index to start at the top of a new column, below the title, for the Y position calculation.

Declared on: line 61 of Lua/dialogs/resizables/options.lua.

function UIOptions:buttonUpdates()

Function handles button toggle of checking for updates

Declared on: line 557 of Lua/dialogs/resizables/options.lua.

function UIOptions:dropdownLanguage(activate)

Parameters:

NameTypeDescription
activate ? ?

Declared on: line 404 of Lua/dialogs/resizables/options.lua.

function UIOptions:dropdownUIScale(activate)

Parameters:

NameTypeDescription
activate ? ?

Declared on: line 466 of Lua/dialogs/resizables/options.lua.

function UIOptions:dropdownWindowSize(activate)

Parameters:

NameTypeDescription
activate ? ?

Declared on: line 429 of Lua/dialogs/resizables/options.lua.

function UIOptions:selectCursorScale(number)

Parameters:

NameTypeDescription
number ? ?

Declared on: line 520 of Lua/dialogs/resizables/options.lua.

function UIOptions:selectLanguage(number)

Parameters:

NameTypeDescription
number ? ?

Declared on: line 421 of Lua/dialogs/resizables/options.lua.

function UIOptions:selectUIScale(number)

Parameters:

NameTypeDescription
number ? ?

Declared on: line 511 of Lua/dialogs/resizables/options.lua.

function UIOptions:selectWindowSize(number)

Parameters:

NameTypeDescription
number ? ?

Declared on: line 447 of Lua/dialogs/resizables/options.lua.

function UIOptions:toggleUpdateCheck()

Changes check for update setting to on/of

Declared on: line 551 of Lua/dialogs/resizables/options.lua.

function UIOptions:updateUIScaleAvailabilityState()

Check if UI scale scale button should be enabled, and update the tooltip.

Declared on: line 502 of Lua/dialogs/resizables/options.lua.