Module CorsixTH.CorsixTH.Lua.dialogs.patient
Individual patient information dialog
Functions
| UIPatient.normaliseWarmth (warmth) | Normalise warmth of a patient. |
| UIPatient:drawBar (canvas, xbase, ybase, xpos, ypos, value) | Draw a bar in the patient dialogue window. |
| UIPatient:drawHealthHistory (canvas, x, y) | Draw the health graph of the patient. |
| UIPatient:drawTreatmentHistory (canvas, x, y) | List the treatments that were performed on the patient. |
| UIPatient:updateInformation () | Go through the buttons in the patient dialog to check whether they should be visible |
Functions
- UIPatient.normaliseWarmth (warmth)
-
Normalise warmth of a patient.
Parameters:
- warmth (number or nil) If given, the fraction of warmth of the patient.
Returns:
-
(float) Normalized warmth level.
- UIPatient:drawBar (canvas, xbase, ybase, xpos, ypos, value)
-
Draw a bar in the patient dialogue window.
Parameters:
- canvas Canvas to draw at.
- xbase Horizontal base position.
- ybase Vertical base position.
- xpos Horizontal offset.
- ypos Vertical offset.
- value Fraction to draw.
- UIPatient:drawHealthHistory (canvas, x, y)
-
Draw the health graph of the patient.
Parameters:
- canvas Destination to draw on.
- x (int) X position of the top-left of the graph.
- y (int) Y position of the top-left of the graph.
- UIPatient:drawTreatmentHistory (canvas, x, y)
-
List the treatments that were performed on the patient.
Parameters:
- canvas Destination to draw on.
- x (int) X position of the top of the list.
- y (int) Y position of the top of the list.
- UIPatient:updateInformation ()
- Go through the buttons in the patient dialog to check whether they should be visible