Files
source/Editor/messagebox.h
T
BeatAroundTheBuscherandGitHub ed00830202 Fixes Upper/Lower Casing for include paths (#487)
* Fixing upper/lower case for includes

types.h, zconf.h and zlib.h were renamed so that global includes like Types.h
are not used.
2025-08-16 22:01:12 -03:00

52 lines
984 B
C

#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( STR16 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