UICasebook Class
Drug Casebook fullscreen window (view disease statistics and set prices).
Inheritance: UICasebook » 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)
 - concentrateResearch()
 - decreasePay()
 - 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)
 - increasePay()
 - 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) (overrides UIFullscreen:onMouseDown)
 - onMouseMove(x, y, dx, dy) (inherited from Window)
 - onMouseUp(code, x, y) (overrides Window:onMouseUp)
 - onTick() (overrides Window:onTick)
 - onWorldTick() (inherited from Window)
 - removeAllPanels() (inherited from Window)
 - removeWindow(window) (inherited from Window)
 - scrollDown()
 - scrollUp()
 - selectDisease(disease)
 - 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)
 - updateDiseaseList()
 - updateIcons()
 
Member Index
- active_button (*)
 - active_scrollbar (*)
 - background
 - blink_counter (*)
 - blinking_button (*)
 - border_sprites (*)
 - btn_repeat_delay (*)
 - buttons (*)
 - buttons_down
 - casebook
 - category (*)
 - closed (*)
 - curable
 - default_button_sound (*)
 - draggable (*)
 - dragging (*)
 - drug
 - drug_font
 - esc_closes (*)
 - height (*)
 - hospital
 - key_handlers (*)
 - machinery
 - modal_class (*)
 - names_sorted
 - not_curable
 - panel_sprites
 - panels (*)
 - parent (*)
 - percentage_counter
 - psychiatry
 - scrollbars (*)
 - selected_disease
 - selected_index
 - selected_staff (*)
 - selected_title_font
 - staff_members (*)
 - surgery
 - textboxes (*)
 - title_font
 - tooltip_regions (*)
 - ui
 - unknown
 - visible (*)
 - width (*)
 - windows (*)
 - x
 - x_original (*)
 - y
 - y_original (*)
 
function UICasebook:UICasebook(ui, disease_selection)
Parameters:
| Name | Type | Description | 
|---|---|---|
| ui | ? | ? | 
| disease_selection | ? | ? | 
Declared on: line 24 of Lua/dialogs/fullscreen/drug_casebook.lua.
function UICasebook:close()
 Overrides: Window:close.
 Declared on: line 98 of Lua/dialogs/fullscreen/drug_casebook.lua.
 
function UICasebook:concentrateResearch()
Declared on: line 339 of Lua/dialogs/fullscreen/drug_casebook.lua.
function UICasebook:decreasePay()
Declared on: line 320 of Lua/dialogs/fullscreen/drug_casebook.lua.
function UICasebook:draw(canvas, x, y)
Parameters:
| Name | Type | Description | 
|---|---|---|
| canvas | ? | ? | 
| x | ? | ? | 
| y | ? | ? | 
 Overrides: UIFullscreen:draw.
 Declared on: line 205 of Lua/dialogs/fullscreen/drug_casebook.lua.
 
function UICasebook:increasePay()
Declared on: line 301 of Lua/dialogs/fullscreen/drug_casebook.lua.
function UICasebook:onMouseDown(button, x, y)
Parameters:
| Name | Type | Description | 
|---|---|---|
| button | ? | ? | 
| x | ? | ? | 
| y | ? | ? | 
 Overrides: UIFullscreen:onMouseDown.
 Declared on: line 345 of Lua/dialogs/fullscreen/drug_casebook.lua.
 
function UICasebook:onMouseUp(code, x, y)
Parameters:
| Name | Type | Description | 
|---|---|---|
| code | ? | ? | 
| x | ? | ? | 
| y | ? | ? | 
 Overrides: Window:onMouseUp.
 Declared on: line 370 of Lua/dialogs/fullscreen/drug_casebook.lua.
 
function UICasebook:onTick()
 Overrides: Window:onTick.
 Declared on: line 388 of Lua/dialogs/fullscreen/drug_casebook.lua.
 
function UICasebook:selectDisease(disease)
Parameters:
| Name | Type | Description | 
|---|---|---|
| disease | ? | ? | 
Declared on: line 126 of Lua/dialogs/fullscreen/drug_casebook.lua.
function UICasebook:updateDiseaseList()
Declared on: line 104 of Lua/dialogs/fullscreen/drug_casebook.lua.
function UICasebook:updateIcons()
 Function that is called when a new entry is selected in some way
 It updates all icons etc. that react to what is selected
 Declared on: line 137 of Lua/dialogs/fullscreen/drug_casebook.lua.