UIInformation Class
Dialog that informs the player of for example what the goals for the level are.
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) (overrides Window:afterLoad)
- beginDrag(x, y) (inherited from Window)
- bringToTop() (inherited from Window)
- close() (overrides Window:close)
- draw(canvas, x, y) (overrides Window:draw)
- 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) (overrides Window:hitTest)
- 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() (overrides Window:onChangeLanguage)
- onChangeResolution() (inherited from Window)
- onCursorWorldPositionChange(x, y) (inherited from Window)
- onMouseDown(button, x, y) (inherited from Window)
- onMouseMove(x, y, dx, dy) (overrides Window:onMouseMove)
- onMouseUp(button, x, y) (inherited from Window)
- onMouseWheel(x, y) (inherited from Window)
- onTick() (inherited from Window)
- onWorldTick() (inherited from Window)
- registerKeyHandlers()
- removeAllPanels() (inherited from Window)
- removeKeyHandler(keys) (inherited from Window)
- removeWindow(window) (inherited from Window)
- sendToBottom(window) (inherited from Window)
- sendToTop(window) (inherited from Window)
- setDefaultPosition(x, y) (inherited from Window)
- setPosition(x, y) (inherited from Window)
- setSize(width, height, apply_ui_scale) (inherited from Window)
- startButtonBlinking(button_index) (inherited from Window)
- stopButtonBlinking() (inherited from Window)
Member Index
- active_button (*)
- active_hover
- active_scrollbar (*)
- additional_text
- apply_ui_scale (*)
- black_background
- black_font
- blink_counter (*)
- blinking_button (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- closed (*)
- cursor_x (*)
- cursor_y (*)
- default_button_sound (*)
- draggable (*)
- dragging (*)
- esc_closes
- height
- hotkeyboxes (*)
- key_handlers (*)
- modal_class
- on_top
- panel_sprites
- panels (*)
- parent (*)
- scrollbars (*)
- spacing
- text
- text_width
- textboxes (*)
- tooltip_regions (*)
- ui
- visible (*)
- width
- windows (*)
- x
- x_original (*)
- y
- y_original (*)
function UIInformation:UIInformation(ui, text, use_built_in_font)
Constructor for the Information Dialog.
Parameters:
| Name | Type | Description |
|---|---|---|
| ui | ? | ? |
| text | ? | The text to show, held in a table. All elements of the table will be written beneath each other. If instead a table within the table is supplied the texts will be shown in consecutive dialogs. |
| use_built_in_font | ? | Whether the built-in font should be used to make sure that the given message can be read without distortions. |
Declared on: line 27 of Lua/dialogs/information.lua.
function UIInformation:afterLoad(old, new)
Parameters:
| Name | Type | Description |
|---|---|---|
| old | ? | ? |
| new | ? | ? |
Overrides: Window:afterLoad.
Declared on: line 158 of Lua/dialogs/information.lua.
function UIInformation:close()
Overrides: Window:close.
Declared on: line 150 of Lua/dialogs/information.lua.
function UIInformation:draw(canvas, x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
| canvas | ? | ? |
| x | ? | ? |
| y | ? | ? |
Overrides: Window:draw.
Declared on: line 118 of Lua/dialogs/information.lua.
function UIInformation:hitTest(x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
| x | ? | ? |
| y | ? | ? |
Overrides: Window:hitTest.
Declared on: line 141 of Lua/dialogs/information.lua.
function UIInformation:onChangeLanguage()
Overrides: Window:onChangeLanguage.
Declared on: line 78 of Lua/dialogs/information.lua.
function UIInformation:onMouseMove(x, y, dx, dy)
Parameters:
| Name | Type | Description |
|---|---|---|
| x | ? | ? |
| y | ? | ? |
| dx | ? | ? |
| dy | ? | ? |
Overrides: Window:onMouseMove.
Declared on: line 131 of Lua/dialogs/information.lua.