From aa088af952cdffa931bf1c41c35aa71a09c0025c Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sun, 16 May 2021 18:48:05 +0000 Subject: [PATCH] Allowed the 1.13 custom message boxes (corpse handling, CTRL+. one etc.) to be escaped/skipped via ESC key (by Shadooow). git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9031 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- MessageBoxScreen.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MessageBoxScreen.cpp b/MessageBoxScreen.cpp index 0d32ef8b..3d8c4208 100644 --- a/MessageBoxScreen.cpp +++ b/MessageBoxScreen.cpp @@ -1557,6 +1557,11 @@ UINT32 MessageBoxScreenHandle( ) gMsgBox.bHandled = MSG_BOX_RETURN_NO; memset(gszMsgBoxInputString,0,sizeof(CHAR16)*255); } + //shadooow - 20210515 - allowing to escape from our custom multibutton message boxes + else if (gMsgBox.usFlags & MSG_BOX_FLAG_GENERIC_FOUR_BUTTONS || gMsgBox.usFlags & MSG_BOX_FLAG_GENERIC_EIGHT_BUTTONS || gMsgBox.usFlags & MSG_BOX_FLAG_GENERIC_SIXTEEN_BUTTONS) + { + gMsgBox.bHandled = 99; + } } if( InputEvent.usParam == ENTER )