UIWatch Class
Timer / clock / watch / countdown dialog for emergencies / level start
Declared on: line 21 of Lua/dialogs/watch.lua.
Inheritance: UIWatch ยป Window
Full description:
The timer lasts approximately 100 days, split into 13 segments
Inheritance: UIWatch ยป Window
Full description:
The timer lasts approximately 100 days, split into 13 segments
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 Window)
- beginDrag(x, y) (inherited from Window)
- bringToTop() (inherited from Window)
- close() (inherited from Window)
- draw(canvas, x, y) (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 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)
- onCountdownEnd()
- 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() (inherited from Window)
- onWorldTick() (overrides Window:onWorldTick)
- removeAllPanels() (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)
- startButtonBlinking(button_index) (inherited from Window)
- stopButtonBlinking() (inherited from Window)
Member Index
- active_button (*)
- active_scrollbar (*)
- blink_counter (*)
- blinking_button (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- closed (*)
- count_type
- default_button_sound (*)
- draggable (*)
- dragging (*)
- end_button
- epidemic
- esc_closes
- height
- hospital
- key_handlers (*)
- modal_class
- open_timer
- panel_sprites
- panels
- parent (*)
- scrollbars (*)
- textboxes (*)
- tick_rate
- tick_timer
- tooltip_regions (*)
- ui
- visible (*)
- width
- windows (*)
- x (*)
- x_original (*)
- y (*)
- y_original (*)
function UIWatch:UIWatch(ui, count_type)
Parameters:
Name | Type | Description |
---|---|---|
ui | ? | ? |
count_type | string | One of: "open_countdown" or "emergency" or "epidemic" |
Declared on: line 25 of Lua/dialogs/watch.lua.
function UIWatch:onWorldTick()
Overrides: Window:onWorldTick.
Declared on: line 73 of Lua/dialogs/watch.lua.