We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a84c61a commit 6753611Copy full SHA for 6753611
res/gamedata/scripts/ui_sleep_dialog.script
@@ -137,14 +137,16 @@ function sleep_dialog:OnMessageBoxOk()
137
end
138
139
function sleep_dialog:OnKeyboard(dik, keyboard_action)
140
- CUIScriptWnd.OnKeyboard(self,dik,keyboard_action)
+ CUIScriptWnd.OnKeyboard(self, dik, keyboard_action)
141
if keyboard_action == ui_events.WINDOW_KEY_PRESSED then
142
if dik == DIK_keys.DIK_ESCAPE then
143
self:HideDialog()
144
db.actor:give_info_portion("tutorial_sleep")
145
disable_info("sleep_active")
146
+ return true
147
148
149
+ return false
150
151
--------------------------------------------------------------------------------
152
function dream_callback()
0 commit comments