From 7d5e9e3c5747f777f072504b75a339a716a00057 Mon Sep 17 00:00:00 2001 From: thedax Date: Sat, 28 Jun 2025 11:50:01 -0400 Subject: [PATCH] Account for the user pressing escape/cancel on controller to exit the bed menu (#80) Yes, it's different than hitting Nothing on the menu! --- resources/scripts/events/custom/000/cmndefinnbed_00020.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/scripts/events/custom/000/cmndefinnbed_00020.lua b/resources/scripts/events/custom/000/cmndefinnbed_00020.lua index f725719..a366e85 100644 --- a/resources/scripts/events/custom/000/cmndefinnbed_00020.lua +++ b/resources/scripts/events/custom/000/cmndefinnbed_00020.lua @@ -22,6 +22,7 @@ end function onReturn(scene, results, player) local CUTSCENE_FLAGS = FADE_OUT | HIDE_UI | CONDITION_CUTSCENE -- Decision values the player can choose + local CANCEL_SCENE = 0 -- If the player hits escape/cancel on controller to cancel the menu local NOTHING = 1 local DREAMFITTING = 2 local LOG_OUT = 3 @@ -29,7 +30,7 @@ function onReturn(scene, results, player) local decision = results[1] if scene == SCENE_SHOW_MENU then - if decision == NOTHING then + if decision == NOTHING or decision == CANCEL_SCENE then player:finish_event(EVENT_ID) else if decision == LOG_OUT or decision == EXIT_GAME then