allowed the meanwhile popup box to be handled with keyboard - ESC or n to skip ENTER or o for prompt

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9049 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2021-05-25 18:20:13 +00:00
parent d29b1f6467
commit fc35e19915
+3 -3
View File
@@ -1545,7 +1545,7 @@ UINT32 MessageBoxScreenHandle( )
{ {
if( ( InputEvent.usParam == ESC ) || ( InputEvent.usParam == 'n') ) if( ( InputEvent.usParam == ESC ) || ( InputEvent.usParam == 'n') )
{ {
if ( gMsgBox.usFlags & MSG_BOX_FLAG_YESNO ) if ( gMsgBox.usFlags & MSG_BOX_FLAG_YESNO || gMsgBox.usFlags & MSG_BOX_FLAG_OKSKIP)
{ {
// Exit messagebox // Exit messagebox
gMsgBox.bHandled = MSG_BOX_RETURN_NO; gMsgBox.bHandled = MSG_BOX_RETURN_NO;
@@ -1571,7 +1571,7 @@ UINT32 MessageBoxScreenHandle( )
// Exit messagebox // Exit messagebox
gMsgBox.bHandled = MSG_BOX_RETURN_YES; gMsgBox.bHandled = MSG_BOX_RETURN_YES;
} }
else if( gMsgBox.usFlags & MSG_BOX_FLAG_OK ) else if( gMsgBox.usFlags & MSG_BOX_FLAG_OK || gMsgBox.usFlags & MSG_BOX_FLAG_OKSKIP)
{ {
// Exit messagebox // Exit messagebox
gMsgBox.bHandled = MSG_BOX_RETURN_OK; gMsgBox.bHandled = MSG_BOX_RETURN_OK;
@@ -1593,7 +1593,7 @@ UINT32 MessageBoxScreenHandle( )
if( InputEvent.usParam == 'o' ) if( InputEvent.usParam == 'o' )
{ {
if( gMsgBox.usFlags & MSG_BOX_FLAG_OK ) if( gMsgBox.usFlags & MSG_BOX_FLAG_OK || gMsgBox.usFlags & MSG_BOX_FLAG_OKSKIP)
{ {
// Exit messagebox // Exit messagebox
gMsgBox.bHandled = MSG_BOX_RETURN_OK; gMsgBox.bHandled = MSG_BOX_RETURN_OK;