UIStaffManagement Class
Staff management screen
Inheritance: UIStaffManagement » 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)
- beginDrag(x, y) (inherited from Window)
- bringToTop() (inherited from Window)
- close() (overrides Window:close)
- draw(canvas, x, y) (overrides UIFullscreen:draw)
- fire()
- 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)
- increaseSalary()
- 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(code, x, y) (overrides UIFullscreen:onMouseDown)
- onMouseMove(x, y, dx, dy) (inherited from Window)
- onMouseUp(code, x, y) (overrides Window:onMouseUp)
- onTick() (inherited from Window)
- onWorldTick() (inherited from Window)
- payBonus()
- removeAllPanels() (inherited from Window)
- removeWindow(window) (inherited from Window)
- scrollDown()
- scrollUp()
- selectIndex(idx)
- selectStaff(staff)
- sendToBottom(window) (inherited from Window)
- sendToTop(window) (inherited from Window)
- setCategory(name)
- setDefaultPosition(x, y) (inherited from Window)
- setPosition(x, y) (inherited from Window)
- startButtonBlinking(button_index) (inherited from Window)
- stopButtonBlinking() (inherited from Window)
- updateStaffList(staff_member_removed)
- updateTooltips()
Member Index
- active_button (*)
- active_scrollbar (*)
- arrow
- arrow_position
- background
- blink_counter (*)
- blinking_button (*)
- border_sprites (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- categories
- category
- closed (*)
- default_button_sound
- draggable (*)
- dragging (*)
- esc_closes (*)
- face_parts
- height (*)
- hospital
- key_handlers (*)
- modal_class (*)
- page
- panel_sprites
- panels (*)
- parent (*)
- portrait_back
- progress_psychiatrist
- progress_researcher
- progress_surgeon
- qualified_psychiatrist
- qualified_researcher
- qualified_surgeon
- row_blankers
- row_tooltips
- scroll_dot
- scrollbars (*)
- selected_staff
- seniority_tooltip
- skill_blanker
- skills_tooltip
- staff_members
- textboxes (*)
- title_blanker
- title_font
- tooltip_regions (*)
- ui
- visible (*)
- width (*)
- windows (*)
- x
- x_original (*)
- y
- y_original (*)
function UIStaffManagement:UIStaffManagement(ui, disease_selection)
Parameters:
Name | Type | Description |
---|---|---|
ui | ? | ? |
disease_selection | ? | ? |
Declared on: line 26 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:close()
Overrides: Window:close.
Declared on: line 497 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:draw(canvas, x, y)
Parameters:
Name | Type | Description |
---|---|---|
canvas | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: UIFullscreen:draw.
Declared on: line 222 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:fire()
Declared on: line 481 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:increaseSalary()
Declared on: line 474 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:onMouseDown(code, x, y)
Parameters:
Name | Type | Description |
---|---|---|
code | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: UIFullscreen:onMouseDown.
Declared on: line 402 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:onMouseUp(code, x, y)
Parameters:
Name | Type | Description |
---|---|---|
code | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: Window:onMouseUp.
Declared on: line 422 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:payBonus()
Declared on: line 465 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:scrollDown()
Declared on: line 456 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:scrollUp()
Declared on: line 447 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:selectIndex(idx)
Function to select given list index in the current category.
Includes jumping to correct page.
Parameters:
Name | Type | Description |
---|---|---|
idx | ? | ? |
Declared on: line 203 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:selectStaff(staff)
Function to select a given staff member.
Includes switching to correct category and page.
Parameters:
Name | Type | Description |
---|---|---|
staff | ? | ? |
Declared on: line 210 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:setCategory(name)
Parameters:
Name | Type | Description |
---|---|---|
name | ? | ? |
Declared on: line 180 of Lua/dialogs/fullscreen/staff_management.lua.
function UIStaffManagement:updateStaffList(staff_member_removed)
Parameters:
Name | Type | Description |
---|---|---|
staff_member_removed | ? | ? |
Declared on: line 147 of Lua/dialogs/fullscreen/staff_management.lua.