mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
New feature (by rftr): Mini events are a feature where the player can receive short text blurbs, and pick one of two outcomes.
Based on game implementations like Gloomhaven (road/city events) or Battletech (travel events). For more info, see https://thepit.ja-galaxy-forum.com/index.php?t=msg&th=24865&goto=363481&#msg_363481 Requires GameDir >= r2599 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9137 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -28,6 +28,10 @@
|
||||
#define MSG_BOX_FLAG_IMAGE 0x00040000 // Displays an image
|
||||
#define MSG_BOX_BUTTONS_HORIZONTAL_ORIENTATION 0x00080000 // MSG_BOX_FLAG_GENERIC_FOUR_BUTTONS sets the buttons horizontally
|
||||
|
||||
// rftr - bigger msg box
|
||||
#define MSG_BOX_FLAG_BIGGER 0x00100000 // Bigger msg box
|
||||
#define MSG_BOX_FLAG_WIDE_BUTTONS 0x00200000 // Wide buttons
|
||||
|
||||
// message box return codes
|
||||
#define MSG_BOX_RETURN_OK 1 // ENTER or on OK button
|
||||
#define MSG_BOX_RETURN_YES 2 // ENTER or YES button
|
||||
@@ -46,6 +50,7 @@ enum
|
||||
MSG_BOX_IMP_STYLE,
|
||||
MSG_BOX_LAPTOP_DEFAULT,
|
||||
MSG_BOX_BASIC_MEDIUM_BUTTONS,
|
||||
MSG_BOX_MINIEVENT_STYLE,
|
||||
};
|
||||
|
||||
enum
|
||||
@@ -133,6 +138,7 @@ extern CHAR16 gszMsgBoxInputString[255];
|
||||
////////////////////////////////
|
||||
|
||||
INT32 DoMessageBox( UINT8 ubStyle, const STR16 zString, UINT32 uiExitScreen, UINT32 usFlags, MSGBOX_CALLBACK ReturnCallback, SGPRect *pCenteringRect, UINT8 ubDefaultButton = MSG_BOX_DEFAULT_BUTTON_NONE );
|
||||
void DoScreenIndependantMessageBoxFullScreen( const STR16 zString, UINT32 usFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
void DoScreenIndependantMessageBox( const STR16 zString, UINT32 usFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
void DoUpperScreenIndependantMessageBox( const STR16 zString, UINT32 usFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user