Skip to content

Commit

Permalink
Fix sleep. Finally!
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 16, 2018
1 parent a84c61a commit 6753611
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion res/gamedata/scripts/ui_sleep_dialog.script
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,16 @@ function sleep_dialog:OnMessageBoxOk()
end

function sleep_dialog:OnKeyboard(dik, keyboard_action)
CUIScriptWnd.OnKeyboard(self,dik,keyboard_action)
CUIScriptWnd.OnKeyboard(self, dik, keyboard_action)
if keyboard_action == ui_events.WINDOW_KEY_PRESSED then
if dik == DIK_keys.DIK_ESCAPE then
self:HideDialog()
db.actor:give_info_portion("tutorial_sleep")
disable_info("sleep_active")
return true
end
end
return false
end
--------------------------------------------------------------------------------
function dream_callback()
Expand Down

0 comments on commit 6753611

Please sign in to comment.