UINewGame Class
Class for the difficulty choice window.
Declared on: line 21 of Lua/dialogs/resizables/new_game.lua.
Inheritance: UINewGame » UIResizable » Window
Inheritance: UINewGame » UIResizable » Window
Method Index
- addBevelPanel(x, y, w, h, colour, highlight_colour, shadow_colour, disabled_colour, lowered_colour, apply_ui_scale) (inherited from Window)
- addColourPanel(x, y, w, h, r, g, b, apply_ui_scale) (inherited from Window)
- addKeyHandler(key, handler, ...) (inherited from Window)
- addPanel(sprite_index, x, y, w, h, apply_ui_scale, draw_flags) (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)
- buttonCancel()
- buttonStart()
- buttonTutorial(checked, button)
- close() (overrides Window:close)
- draw(canvas, x, y) (inherited from UIResizable)
- dropdownDifficulty(activate, button)
- getRealXY() (inherited from Window)
- 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)
- hoverTest(active_hover, mouse_x, mouse_y, min_x, max_x, min_y, max_y) (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)
- makeHotkeyBoxOnPanel(panel, confirm_callback, abort_callback) (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, apply_ui_scale) (inherited from Window)
- mustPause() (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)
- onMouseWheel(x, y) (inherited from Window)
- onTick() (inherited from Window)
- onWorldTick() (inherited from Window)
- overrideMinSize(min_width, min_height) (inherited from UIResizable)
- removeAllPanels() (inherited from Window)
- removeKeyHandler(keys) (inherited from Window)
- removeWindow(window) (inherited from Window)
- saveToConfig()
- selectDifficulty(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)
- startGame(difficulty)
- stopButtonBlinking() (inherited from Window)
Member Index
- active_button (*)
- active_scrollbar (*)
- apply_ui_scale (*)
- available_difficulties
- background_panel (*)
- blink_counter (*)
- blinking_button (*)
- border_pos (*)
- border_sprites
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- closed (*)
- colour (*)
- cursor_x (*)
- cursor_y (*)
- default_button_sound
- difficulty
- difficulty_dropdown
- draggable (*)
- dragging (*)
- esc_closes
- height (*)
- hotkeyboxes (*)
- key_handlers (*)
- min_height (*)
- min_width (*)
- modal_class
- name_textbox
- on_top
- panel_sprites (*)
- panels (*)
- parent (*)
- player_name
- resizable
- scrollbars (*)
- start_tutorial
- textboxes (*)
- tooltip_regions (*)
- ui
- visible (*)
- width (*)
- windows (*)
- x (*)
- x_original (*)
- y (*)
- y_original (*)
function UINewGame:UINewGame(ui)
Parameters:
| Name | Type | Description |
|---|---|---|
| ui | ? | ? |
Declared on: line 39 of Lua/dialogs/resizables/new_game.lua.
function UINewGame:buttonTutorial(checked, button)
Parameters:
| Name | Type | Description |
|---|---|---|
| checked | ? | ? |
| button | ? | ? |
Declared on: line 124 of Lua/dialogs/resizables/new_game.lua.
function UINewGame:close()
Overrides: Window:close.
Declared on: line 174 of Lua/dialogs/resizables/new_game.lua.
function UINewGame:dropdownDifficulty(activate, button)
Parameters:
| Name | Type | Description |
|---|---|---|
| activate | ? | ? |
| button | ? | ? |
Declared on: line 129 of Lua/dialogs/resizables/new_game.lua.
function UINewGame:selectDifficulty(number)
Parameters:
| Name | Type | Description |
|---|---|---|
| number | ? | ? |
Declared on: line 143 of Lua/dialogs/resizables/new_game.lua.
function UINewGame:startGame(difficulty)
Parameters:
| Name | Type | Description |
|---|---|---|
| difficulty | ? | ? |
Declared on: line 153 of Lua/dialogs/resizables/new_game.lua.