UIMessage Class
Small fax notification window which sits on the bottom bar.
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)
 - adjustToggle()
 - afterLoad(old, new) (overrides Window:afterLoad)
 - beginDrag(x, y) (inherited from Window)
 - bringToTop() (inherited from Window)
 - close(...) (overrides Window:close)
 - dismissMessage()
 - draw(canvas, x, y) (overrides Window:draw)
 - 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 Window)
 - 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 Window)
 - onMouseMove(x, y, dx, dy) (inherited from Window)
 - onMouseUp(button, x, y) (inherited from Window)
 - onTick() (overrides Window:onTick)
 - onWorldTick() (overrides Window:onWorldTick)
 - openMessage()
 - removeAllPanels() (inherited from Window)
 - removeMessage(choice_number)
 - 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)
 - setXLimit(stop_x)
 - startButtonBlinking(button_index) (inherited from Window)
 - stopButtonBlinking() (inherited from Window)
 
Member Index
- active
 - active_button (*)
 - active_scrollbar (*)
 - blink_counter (*)
 - blinking_button (*)
 - btn_repeat_delay (*)
 - button
 - buttons
 - buttons_down (*)
 - callback
 - can_dismiss
 - closed (*)
 - default_button_sound (*)
 - default_choice
 - draggable (*)
 - dragging (*)
 - esc_closes
 - fax
 - height
 - key_handlers (*)
 - message
 - onClose
 - on_top
 - owner
 - panel_sprites
 - panels (*)
 - parent (*)
 - rotator
 - scrollbars (*)
 - stop_x
 - stop_y
 - textboxes (*)
 - timer
 - tooltip_regions (*)
 - type
 - ui
 - visible (*)
 - width
 - windows (*)
 - x
 - x_original (*)
 - y
 - y_original (*)
 
function UIMessage:UIMessage(ui, x, stop_x, onClose, type, message, owner, timeout, default_choice, callback)
Parameters:
| Name | Type | Description | 
|---|---|---|
| ui | ? | ? | 
| x | ? | ? | 
| stop_x | ? | ? | 
| onClose | ? | ? | 
| type | ? | ? | 
| message | ? | ? | 
| owner | ? | ? | 
| timeout | ? | ? | 
| default_choice | ? | ? | 
| callback | ? | ? | 
Declared on: line 24 of Lua/dialogs/message.lua.
function UIMessage:adjustToggle()
 Adjust the toggle state to match if the message is open or not
 Declared on: line 96 of Lua/dialogs/message.lua.
 
function UIMessage:afterLoad(old, new)
Parameters:
| Name | Type | Description | 
|---|---|---|
| old | ? | ? | 
| new | ? | ? | 
 Overrides: Window:afterLoad.
 Declared on: line 205 of Lua/dialogs/message.lua.
 
function UIMessage:close(...)
Parameters:
| Name | Type | Description | 
|---|---|---|
| ... | ? | ? | 
 Overrides: Window:close.
 Declared on: line 91 of Lua/dialogs/message.lua.
 
function UIMessage:dismissMessage()
 Tries to dismiss the message. This is only possible if there is only one choice.
 Declared on: line 150 of Lua/dialogs/message.lua.
 
function UIMessage:draw(canvas, x, y)
Parameters:
| Name | Type | Description | 
|---|---|---|
| canvas | ? | ? | 
| x | ? | ? | 
| y | ? | ? | 
 Overrides: Window:draw.
 Declared on: line 80 of Lua/dialogs/message.lua.
 
function UIMessage:onTick()
 Overrides: Window:onTick.
 Declared on: line 165 of Lua/dialogs/message.lua.
 
function UIMessage:onWorldTick()
 Overrides: Window:onWorldTick.
 Declared on: line 186 of Lua/dialogs/message.lua.
 
function UIMessage:removeMessage(choice_number)
 Removes the Message, executing a choice if given, else just deletes it
 Parameters:
 
| Name | Type | Description | 
|---|---|---|
| choice_number | number | if given, removes the message by executing this choice. | 
Declared on: line 128 of Lua/dialogs/message.lua.
function UIMessage:setXLimit(stop_x)
Parameters:
| Name | Type | Description | 
|---|---|---|
| stop_x | ? | ? | 
Declared on: line 160 of Lua/dialogs/message.lua.