UIOptions Class
Options window used in the main menu and ingame.
Inheritance: UIOptions » UIResizable » Window
Method Index
- addBevelPanel(x, y, w, h, colour, highlight_colour, shadow_colour, disabled_colour) (inherited from Window)
- addColourPanel(x, y, w, h, r, g, b) (inherited from Window)
- addKeyHandler(key, handler, ...) (inherited from Window)
- addPanel(sprite_index, x, y, w, h) (inherited from Window)
- addWindow(window) (inherited from Window)
- afterLoad(old, new) (inherited from UIResizable)
- beginDrag(x, y) (inherited from Window)
- beginResize(x, y, mode) (inherited from UIResizable)
- bringToTop() (inherited from Window)
- buttonAudioGlobal(checked)
- buttonBack()
- buttonBrowseForTHInstall()
- buttonCustomise()
- buttonFolder()
- buttonFullscreen(checked)
- checkForAvailableLanguages()
- close() (overrides Window:close)
- draw(canvas, x, y) (inherited from UIResizable)
- dropdownLanguage(activate)
- dropdownResolution(activate)
- getSavedWindowPositionName() (inherited from Window)
- getTooltipAt(x, y) (inherited from Window)
- getTooltipForElement(elem, x, y) (inherited from Window)
- getWindow(window_class) (inherited from Window)
- getWindows(window_class) (inherited from Window)
- hitTest(x, y) (inherited from UIResizable)
- hitTestCorners(x, y) (inherited from UIResizable)
- hitTestPanel(x, y, panel) (inherited from Window)
- makeButtonOnPanel(panel, x, y, w, h, sprite, on_click, on_click_self, on_rightclick) (inherited from Window)
- makeDynamicTooltip(callback, x, y, r, b, tooltip_x, tooltip_y) (inherited from Window)
- makeScrollbarOnPanel(panel, slider_colour, callback, min_value, max_value, page_size, value) (inherited from Window)
- makeTextboxOnPanel(panel, confirm_callback, abort_callback) (inherited from Window)
- makeTooltip(text, x, y, r, b, tooltip_x, tooltip_y) (inherited from Window)
- onChangeLanguage() (inherited from Window)
- onChangeResolution() (inherited from Window)
- onCursorWorldPositionChange(x, y) (inherited from Window)
- onMouseDown(button, x, y) (inherited from UIResizable)
- onMouseMove(x, y, dx, dy) (inherited from Window)
- onMouseUp(button, x, y) (inherited from Window)
- onTick() (inherited from Window)
- onWorldTick() (inherited from Window)
- removeAllPanels() (inherited from Window)
- removeWindow(window) (inherited from Window)
- selectLanguage(number)
- selectResolution(number)
- sendToBottom(window) (inherited from Window)
- sendToTop(window) (inherited from Window)
- setColour(colour) (inherited from UIResizable)
- setDefaultPosition(x, y) (inherited from Window)
- setPosition(x, y) (inherited from Window)
- setSize(width, height) (inherited from UIResizable)
- startButtonBlinking(button_index) (inherited from Window)
- stopButtonBlinking() (inherited from Window)
Member Index
- active_button (*)
- active_scrollbar (*)
- app
- available_languages
- available_resolutions
- background_panel (*)
- blink_counter (*)
- blinking_button (*)
- border_pos (*)
- border_sprites (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- closed (*)
- colour (*)
- default_button_sound
- draggable (*)
- dragging (*)
- esc_closes
- fullscreen_button
- fullscreen_panel
- height (*)
- key_handlers (*)
- language_button
- language_dropdown
- language_panel
- min_height (*)
- min_width (*)
- modal_class
- mode
- on_top
- panel_sprites (*)
- panels (*)
- parent (*)
- resizable
- resolution_button
- resolution_dropdown
- resolution_panel
- scrollbars (*)
- textboxes (*)
- tooltip_regions (*)
- ui
- visible (*)
- volume_button
- volume_panel
- width (*)
- windows (*)
- x (*)
- x_original (*)
- y (*)
- y_original (*)
function UIOptions:UIOptions(ui, mode)
Parameters:
Name | Type | Description |
---|---|---|
ui | ? | ? |
mode | ? | ? |
Declared on: line 60 of Lua/dialogs/resizables/options.lua.
function UIOptions:buttonAudioGlobal(checked)
Parameters:
Name | Type | Description |
---|---|---|
checked | ? | ? |
Declared on: line 247 of Lua/dialogs/resizables/options.lua.
function UIOptions:buttonBrowseForTHInstall()
Declared on: line 235 of Lua/dialogs/resizables/options.lua.
function UIOptions:buttonFullscreen(checked)
Parameters:
Name | Type | Description |
---|---|---|
checked | ? | ? |
Declared on: line 215 of Lua/dialogs/resizables/options.lua.
function UIOptions:checkForAvailableLanguages()
Declared on: line 147 of Lua/dialogs/resizables/options.lua.
function UIOptions:close()
Overrides: Window:close.
Declared on: line 265 of Lua/dialogs/resizables/options.lua.
function UIOptions:dropdownLanguage(activate)
Parameters:
Name | Type | Description |
---|---|---|
activate | ? | ? |
Declared on: line 161 of Lua/dialogs/resizables/options.lua.
function UIOptions:dropdownResolution(activate)
Parameters:
Name | Type | Description |
---|---|---|
activate | ? | ? |
Declared on: line 182 of Lua/dialogs/resizables/options.lua.
function UIOptions:selectLanguage(number)
Parameters:
Name | Type | Description |
---|---|---|
number | ? | ? |
Declared on: line 175 of Lua/dialogs/resizables/options.lua.
function UIOptions:selectResolution(number)
Parameters:
Name | Type | Description |
---|---|---|
number | ? | ? |
Declared on: line 196 of Lua/dialogs/resizables/options.lua.