UITownMap Class
Town map fullscreen window (purchase land, set radiator levels, map overview).
Declared on: line 23 of Lua/dialogs/fullscreen/town_map.lua.
Inheritance: UITownMap » UIFullscreen » Window
Inheritance: UITownMap » UIFullscreen » Window
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 UIFullscreen)
- bankManager()
- bankStats()
- beginDrag(x, y) (inherited from Window)
- bringToTop() (inherited from Window)
- close() (overrides Window:close)
- decreaseHeat()
- draw(canvas, x, y) (overrides UIFullscreen:draw)
- getSavedWindowPositionName() (inherited from UIFullscreen)
- getStaffPosition(dx, dy) (inherited from UIFullscreen)
- 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 UIFullscreen)
- hitTestPanel(x, y, panel) (inherited from Window)
- increaseHeat()
- initRuntimeConfig()
- 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 UIFullscreen)
- onCursorWorldPositionChange(x, y) (inherited from Window)
- onMouseDown(button, x, y) (inherited from UIFullscreen)
- onMouseMove(x, y) (overrides Window:onMouseMove)
- onMouseUp(button, x, y) (overrides Window:onMouseUp)
- onTick() (inherited from Window)
- onWorldTick() (inherited from Window)
- 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 (*)
- app
- background
- blink_counter (*)
- blinking_button (*)
- border_sprites (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- category (*)
- city_font
- closed (*)
- default_button_sound
- default_buy_sound
- draggable (*)
- dragging (*)
- esc_closes (*)
- height (*)
- hover_plot
- info_font
- key_handlers (*)
- modal_class (*)
- money_font
- panel_sprites
- panels (*)
- parent (*)
- scrollbars (*)
- selected_staff (*)
- staff_members (*)
- textboxes (*)
- tooltip_regions (*)
- ui
- visible (*)
- width (*)
- windows (*)
- x
- x_original (*)
- y
- y_original (*)
function UITownMap:UITownMap(ui)
Parameters:
Name | Type | Description |
---|---|---|
ui | ? | ? |
Declared on: line 26 of Lua/dialogs/fullscreen/town_map.lua.
function UITownMap:close()
Overrides: Window:close.
Declared on: line 103 of Lua/dialogs/fullscreen/town_map.lua.
function UITownMap:draw(canvas, x, y)
Parameters:
Name | Type | Description |
---|---|---|
canvas | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: UIFullscreen:draw.
Declared on: line 154 of Lua/dialogs/fullscreen/town_map.lua.
function UITownMap:onMouseMove(x, y)
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
Overrides: Window:onMouseMove.
Declared on: line 109 of Lua/dialogs/fullscreen/town_map.lua.
function UITownMap:onMouseUp(button, x, y)
Parameters:
Name | Type | Description |
---|---|---|
button | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: Window:onMouseUp.
Declared on: line 120 of Lua/dialogs/fullscreen/town_map.lua.