UIStaff Class
Individual staff information dialog
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)
- changeHandymanAttributes(increased)
- changeParcel()
- close() (inherited from Window)
- doMoreCleaning()
- doMoreRepairing()
- doMoreWatering()
- draw(canvas, x_, y_) (overrides Window:draw)
- fireStaff()
- getParcelText()
- getRealXY() (inherited from Window)
- getSavedWindowPositionName() (inherited from Window)
- getStaffPosition(dx, dy)
- 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() (inherited from Window)
- onChangeResolution() (inherited from Window)
- onCursorWorldPositionChange(x, y) (inherited from Window)
- onMouseDown(button, x, y) (overrides Window:onMouseDown)
- onMouseMove(x, y, dx, dy) (overrides Window:onMouseMove)
- onMouseUp(button, x, y) (overrides Window:onMouseUp)
- onMouseWheel(x, y) (inherited from Window)
- onTick() (overrides Window:onTick)
- onWorldTick() (inherited from Window)
- openStaffManagement()
- pickupStaff()
- 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_scrollbar (*)
- apply_ui_scale (*)
- blink_counter (*)
- blinking_button (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- closed (*)
- cursor_x (*)
- cursor_y (*)
- default_button_sound (*)
- do_scroll
- draggable (*)
- dragging (*)
- esc_closes
- face_parts
- height
- hotkeyboxes (*)
- key_handlers (*)
- modal_class
- panel_sprites
- panels (*)
- parent (*)
- scrollbars (*)
- staff
- textboxes (*)
- tooltip_regions
- ui
- visible (*)
- white_font
- width
- windows (*)
- x
- x_original (*)
- y
- y_original (*)
function UIStaff:UIStaff(ui, staff)
Parameters:
| Name | Type | Description |
|---|---|---|
| ui | ? | ? |
| staff | ? | ? |
Declared on: line 61 of Lua/dialogs/staff_dialog.lua.
function UIStaff:afterLoad(old, new)
Parameters:
| Name | Type | Description |
|---|---|---|
| old | ? | ? |
| new | ? | ? |
Overrides: Window:afterLoad.
Declared on: line 405 of Lua/dialogs/staff_dialog.lua.
function UIStaff:changeHandymanAttributes(increased)
Function to balance 'cleaning','watering', and 'repairing', where
one of them is increased, and the other two are decreased.
Parameters:
| Name | Type | Description |
|---|---|---|
| increased | ? | Attribute to increase. |
Declared on: line 332 of Lua/dialogs/staff_dialog.lua.
function UIStaff:changeParcel()
Callback function for handyman to change his parcel.
Declared on: line 34 of Lua/dialogs/staff_dialog.lua.
function UIStaff:doMoreCleaning()
UI callback function to increase 'cleaning' (wiping litter).
Declared on: line 375 of Lua/dialogs/staff_dialog.lua.
function UIStaff:doMoreRepairing()
UI callback function to increase 'repairing' (machines).
Declared on: line 385 of Lua/dialogs/staff_dialog.lua.
function UIStaff:doMoreWatering()
UI callback function to increase 'watering' (plants).
Declared on: line 380 of Lua/dialogs/staff_dialog.lua.
function UIStaff:draw(canvas, x_, y_)
Parameters:
| Name | Type | Description |
|---|---|---|
| canvas | ? | ? |
| x_ | ? | ? |
| y_ | ? | ? |
Overrides: Window:draw.
Declared on: line 165 of Lua/dialogs/staff_dialog.lua.
function UIStaff:getStaffPosition(dx, dy)
Parameters:
| Name | Type | Description |
|---|---|---|
| dx | ? | ? |
| dy | ? | ? |
Declared on: line 158 of Lua/dialogs/staff_dialog.lua.
function UIStaff:hitTest(x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
| x | ? | ? |
| y | ? | ? |
Overrides: Window:hitTest.
Declared on: line 401 of Lua/dialogs/staff_dialog.lua.
function UIStaff:onMouseDown(button, x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
| button | ? | ? |
| x | ? | ? |
| y | ? | ? |
Overrides: Window:onMouseDown.
Declared on: line 255 of Lua/dialogs/staff_dialog.lua.
function UIStaff:onMouseMove(x, y, dx, dy)
Parameters:
| Name | Type | Description |
|---|---|---|
| x | ? | ? |
| y | ? | ? |
| dx | ? | ? |
| dy | ? | ? |
Overrides: Window:onMouseMove.
Declared on: line 305 of Lua/dialogs/staff_dialog.lua.
function UIStaff:onMouseUp(button, x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
| button | ? | ? |
| x | ? | ? |
| y | ? | ? |
Overrides: Window:onMouseUp.
Declared on: line 260 of Lua/dialogs/staff_dialog.lua.
function UIStaff:onTick()
Overrides: Window:onTick.
Declared on: line 310 of Lua/dialogs/staff_dialog.lua.