mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user