75
75
self.guess_button = self:addPanel(413, 14 + 117, 61 + 58):makeButton(0, 0, 38, 38, 414, self.guessDisease):setTooltip(_S.tooltip.patient_window.abort_diagnosis)
76
76
self.guess_blanker = self:addColourPanel(14 + 115, 61 + 56, 45, 45, 113, 117, 170)
78
78
-- Set correct initial visibility/enabledness of the three buttons and their blankers
81
81
self:makeTooltip(_S.tooltip.patient_window.happiness, 33, 117, 124, 141)
82
82
self:makeTooltip(_S.tooltip.patient_window.thirst, 33, 141, 124, 169)
83
83
self:makeTooltip(_S.tooltip.patient_window.warmth, 33, 169, 124, 203)
85
85
-- Non-rectangular tooltip has to be realized with dynamic tooltip at the moment
86
86
self:makeDynamicTooltip(--[[persistable:patient_window_center_tooltip]]function(x, y)
87
87
if is_in_view_circle(x, y) then
88
88
return _S.tooltip.patient_window.center_view
92
92
-- Always add this because of a race condition if the user clicks a patient
93
93
-- that's already going home, then clicks another, the handler is left empty. Bad.
94
94
-- Just do a going_home check when called.