UICustomCampaign Class
Custom Campaign Window
Inheritance: UICustomCampaign » UIMenuList » UIResizable » Window
Method Index
- _createCampaignList()
- _readCampaignFile(folder, file)
- 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)
- buttonBack() (inherited from UIMenuList)
- buttonClicked(num) (overrides UIMenuList:buttonClicked)
- buttonStartCampaign()
- close() (inherited from UIMenuList)
- draw(canvas, x, y) (overrides UIResizable:draw)
- getRealXY() (inherited from Window)
- getSavedWindowPositionName() (inherited from UIMenuList)
- 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)
- 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)
- updateButtons() (inherited from UIMenuList)
- updateDescriptionOffset()
Member Index
- active_button (*)
- active_scrollbar (*)
- apply_ui_scale (*)
- background_panel (*)
- blink_counter (*)
- blinking_button (*)
- border_pos (*)
- border_sprites (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- campaigns
- chosen_item
- closed (*)
- col_bg
- colour (*)
- cursor_x (*)
- cursor_y (*)
- default_button_sound (*)
- description_offset
- details_scrollbar
- draggable (*)
- dragging (*)
- duplicates
- esc_closes (*)
- height (*)
- hotkeyboxes (*)
- item_buttons (*)
- item_panels (*)
- items
- key_handlers (*)
- label_font
- min_height (*)
- min_width (*)
- modal_class (*)
- mode (*)
- num_rows
- on_top (*)
- panel_sprites (*)
- panels (*)
- parent (*)
- paths_table
- resizable (*)
- scrollbar
- scrollbars (*)
- textboxes (*)
- tooltip_regions (*)
- ui (*)
- unique_names
- visible (*)
- width (*)
- windows (*)
- x
- x_original (*)
- y
- y_original (*)
function UICustomCampaign:UICustomCampaign(ui)
Parameters:
| Name | Type | Description |
|---|---|---|
| ui | ? | ? |
Declared on: line 35 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.
function UICustomCampaign:_createCampaignList()
Search the user and CorsixTH campaign folders and one-level deep subfolders for campaign files.
Declared on: line 98 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.
function UICustomCampaign:_readCampaignFile(folder, file)
Fetch uniquely named campaigns from given campaign file
Parameters:
| Name | Type | Description |
|---|---|---|
| folder | ? | ? |
| file | ? | ? |
Declared on: line 70 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.
function UICustomCampaign:buttonClicked(num)
Overrides the function in the UIMenuList, choosing what should happen when the player
clicks a choice in the list.
Parameters:
| Name | Type | Description |
|---|---|---|
| num | ? | ? |
Overrides: UIMenuList:buttonClicked.
Declared on: line 121 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.
function UICustomCampaign:buttonStartCampaign()
Declared on: line 135 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.
function UICustomCampaign:draw(canvas, x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
| canvas | ? | ? |
| x | ? | ? |
| y | ? | ? |
Overrides: UIResizable:draw.
Declared on: line 141 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.