mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Original Source for 1.13 Mod High Resolution version from 12/06/05
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
#include "BuildDefines.h"
|
||||
|
||||
#ifdef JA2EDITOR
|
||||
#ifndef __MESSAGEBOX_H
|
||||
#define __MESSAGEBOX_H
|
||||
|
||||
enum
|
||||
{
|
||||
MESSAGEBOX_NONE,
|
||||
MESSAGEBOX_DONE,
|
||||
MESSAGEBOX_WAIT
|
||||
};
|
||||
|
||||
extern UINT8 gubMessageBoxStatus;
|
||||
extern BOOLEAN gfMessageBoxResult;
|
||||
|
||||
void CreateMessageBox( UINT16 *wzString );
|
||||
BOOLEAN MessageBoxHandled();
|
||||
void RemoveMessageBox();
|
||||
|
||||
//NOTES:
|
||||
//Rewrote the damn thing. It is better now because you have less management issues.
|
||||
//In your screen's main loop, instead of using the previous method, you would use the following syntax:
|
||||
//
|
||||
// if( gubMessageBoxState )
|
||||
// {
|
||||
// if( MessageBoxHandled() )
|
||||
// return ProcessMyOwnMessageBoxResultHandler();
|
||||
// return MYCURRENT_SCREEN;
|
||||
// }
|
||||
//
|
||||
// UINT32 ProcessMyOwnMessageBoxResultHandlerFunction()
|
||||
// {
|
||||
// RemoveMessageBox(); //MUST BE HERE
|
||||
// if( gfMessageBoxResult ) //user selected yes
|
||||
// {
|
||||
// ...
|
||||
// return DESIRED_SCREEN;
|
||||
// }
|
||||
// else //user selected no
|
||||
// ...
|
||||
// }
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user