UIPatient Class
Individual patient information dialog
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_) (overrides Window:draw)
- drawTreatmentHistory(canvas, x, y)
- 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)
- goHome()
- guessDisease()
- hitTest(x, y) (overrides Window:hitTest)
- 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)
- normaliseWarmth(warmth)
- 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)
- onTick() (overrides Window:onTick)
- 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)
- updateInformation()
- viewDiseases()
- viewQueue()
Member Index
- active_button (*)
- active_scrollbar (*)
- blink_counter (*)
- blinking_button (*)
- btn_repeat_delay (*)
- buttons (*)
- buttons_down (*)
- closed (*)
- default_button_sound (*)
- disease_blanker
- disease_button
- do_scroll
- draggable (*)
- dragging (*)
- esc_closes
- font
- guess_blanker
- guess_button
- height
- history_panel
- home_blanker
- home_button
- key_handlers (*)
- modal_class
- panel_sprites
- panels (*)
- parent (*)
- patient
- scrollbars (*)
- textboxes (*)
- tooltip_regions (*)
- ui
- visible (*)
- visible_diamond
- width
- windows (*)
- x
- x_original (*)
- y
- y_original (*)
function UIPatient:UIPatient(ui, patient)
Parameters:
Name | Type | Description |
---|---|---|
ui | ? | ? |
patient | ? | ? |
Declared on: line 33 of Lua/dialogs/patient.lua.
function UIPatient:draw(canvas, x_, y_)
Parameters:
Name | Type | Description |
---|---|---|
canvas | ? | ? |
x_ | ? | ? |
y_ | ? | ? |
Overrides: Window:draw.
Declared on: line 109 of Lua/dialogs/patient.lua.
function UIPatient:drawTreatmentHistory(canvas, x, y)
Parameters:
Name | Type | Description |
---|---|---|
canvas | ? | ? |
x | ? | ? |
y | ? | ? |
Declared on: line 175 of Lua/dialogs/patient.lua.
function UIPatient:hitTest(x, y)
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
Overrides: Window:hitTest.
Declared on: line 300 of Lua/dialogs/patient.lua.
function UIPatient.normaliseWarmth(warmth)
Parameters:
Name | Type | Description |
---|---|---|
warmth | ? | ? |
Declared on: line 98 of Lua/dialogs/patient.lua.
Note: Is a function rather than a method.
function UIPatient:onMouseDown(button, x, y)
Parameters:
Name | Type | Description |
---|---|---|
button | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: Window:onMouseDown.
Declared on: line 181 of Lua/dialogs/patient.lua.
function UIPatient:onMouseMove(x, y, dx, dy)
Parameters:
Name | Type | Description |
---|---|---|
x | ? | ? |
y | ? | ? |
dx | ? | ? |
dy | ? | ? |
Overrides: Window:onMouseMove.
Declared on: line 211 of Lua/dialogs/patient.lua.
function UIPatient:onMouseUp(button, x, y)
Parameters:
Name | Type | Description |
---|---|---|
button | ? | ? |
x | ? | ? |
y | ? | ? |
Overrides: Window:onMouseUp.
Declared on: line 186 of Lua/dialogs/patient.lua.
function UIPatient:onTick()
Overrides: Window:onTick.
Declared on: line 216 of Lua/dialogs/patient.lua.