mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Message boxes can have a dropdown. For usage, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=20659&goto=341863&#msg_341863
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7935 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+20
-18
@@ -4,24 +4,26 @@
|
||||
#include "mousesystem.h"
|
||||
|
||||
// Message box flags
|
||||
#define MSG_BOX_FLAG_USE_CENTERING_RECT 0x0001 // Pass in a rect to center in
|
||||
#define MSG_BOX_FLAG_OK 0x0002 // Displays OK button
|
||||
#define MSG_BOX_FLAG_YESNO 0x0004 // Displays YES NO buttons
|
||||
#define MSG_BOX_FLAG_CANCEL 0x0008 // Displays YES NO buttons
|
||||
#define MSG_BOX_FLAG_FOUR_NUMBERED_BUTTONS 0x0010 // Displays four numbered buttons, 1-4
|
||||
#define MSG_BOX_FLAG_YESNOCONTRACT 0x0020 // yes no and contract buttons
|
||||
#define MSG_BOX_FLAG_OKCONTRACT 0x0040 // ok and contract buttons
|
||||
#define MSG_BOX_FLAG_YESNOLIE 0x0080 // ok and contract buttons
|
||||
#define MSG_BOX_FLAG_CONTINUESTOP 0x0100 // continue stop box
|
||||
#define MSG_BOX_FLAG_OKSKIP 0x0200 // Displays ok or skip (meanwhile) buttons
|
||||
#define MSG_BOX_FLAG_GENERICCONTRACT 0x0400 // displays contract buttoin + 2 user-defined text buttons
|
||||
#define MSG_BOX_FLAG_GENERIC_TWO_BUTTONS 0x0800 // 2 user-defined text buttons
|
||||
#define MSG_BOX_FLAG_USE_CENTERING_RECT 0x00000001 // Pass in a rect to center in
|
||||
#define MSG_BOX_FLAG_OK 0x00000002 // Displays OK button
|
||||
#define MSG_BOX_FLAG_YESNO 0x00000004 // Displays YES NO buttons
|
||||
#define MSG_BOX_FLAG_CANCEL 0x00000008 // Displays YES NO buttons
|
||||
#define MSG_BOX_FLAG_FOUR_NUMBERED_BUTTONS 0x00000010 // Displays four numbered buttons, 1-4
|
||||
#define MSG_BOX_FLAG_YESNOCONTRACT 0x00000020 // yes no and contract buttons
|
||||
#define MSG_BOX_FLAG_OKCONTRACT 0x00000040 // ok and contract buttons
|
||||
#define MSG_BOX_FLAG_YESNOLIE 0x00000080 // ok and contract buttons
|
||||
#define MSG_BOX_FLAG_CONTINUESTOP 0x00000100 // continue stop box
|
||||
#define MSG_BOX_FLAG_OKSKIP 0x00000200 // Displays ok or skip (meanwhile) buttons
|
||||
#define MSG_BOX_FLAG_GENERICCONTRACT 0x00000400 // displays contract buttoin + 2 user-defined text buttons
|
||||
#define MSG_BOX_FLAG_GENERIC_TWO_BUTTONS 0x00000800 // 2 user-defined text buttons
|
||||
// OJW - Adding text chatbox
|
||||
#define MSG_BOX_FLAG_INPUTBOX 0x1000 // has a text input field
|
||||
#define MSG_BOX_FLAG_INPUTBOX 0x00001000 // has a text input field
|
||||
// Flugente - added boxes with multiple buttons that can be renamed easily
|
||||
#define MSG_BOX_FLAG_GENERIC_FOUR_BUTTONS 0x2000 // Displays four numbered buttons with definable labels
|
||||
#define MSG_BOX_FLAG_GENERIC_EIGHT_BUTTONS 0x4000 // Displays eight numbered buttons with definable labels
|
||||
#define MSG_BOX_FLAG_GENERIC_SIXTEEN_BUTTONS 0x8000 // Displays sixteen numbered buttons with definable labels
|
||||
#define MSG_BOX_FLAG_GENERIC_FOUR_BUTTONS 0x00002000 // Displays four numbered buttons with definable labels
|
||||
#define MSG_BOX_FLAG_GENERIC_EIGHT_BUTTONS 0x00004000 // Displays eight numbered buttons with definable labels
|
||||
#define MSG_BOX_FLAG_GENERIC_SIXTEEN_BUTTONS 0x00008000 // Displays sixteen numbered buttons with definable labels
|
||||
|
||||
#define MSG_BOX_FLAG_DROPDOWN 0x00010000 // Displays an aditional dropdown box
|
||||
|
||||
// message box return codes
|
||||
#define MSG_BOX_RETURN_OK 1 // ENTER or on OK button
|
||||
@@ -76,7 +78,7 @@ extern UINT16 gzUserDefinedButtonColor[ NUM_CUSTOM_BUTTONS ];
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT16 usFlags;
|
||||
UINT32 usFlags;
|
||||
UINT32 uiExitScreen;
|
||||
MSGBOX_CALLBACK ExitCallback;
|
||||
INT16 sX;
|
||||
@@ -127,7 +129,7 @@ extern CHAR16 gszMsgBoxInputString[255];
|
||||
// pCenteringRect Rect to send if MSG_BOX_FLAG_USE_CENTERING_RECT set. Can be NULL
|
||||
////////////////////////////////
|
||||
|
||||
INT32 DoMessageBox( UINT8 ubStyle, const STR16 zString, UINT32 uiExitScreen, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback, SGPRect *pCenteringRect, UINT8 ubDefaultButton = MSG_BOX_DEFAULT_BUTTON_NONE );
|
||||
INT32 DoMessageBox( UINT8 ubStyle, const STR16 zString, UINT32 uiExitScreen, UINT32 usFlags, MSGBOX_CALLBACK ReturnCallback, SGPRect *pCenteringRect, UINT8 ubDefaultButton = MSG_BOX_DEFAULT_BUTTON_NONE );
|
||||
void DoScreenIndependantMessageBox( const STR16 zString, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
void DoUpperScreenIndependantMessageBox( const STR16 zString, UINT16 usFlags, MSGBOX_CALLBACK ReturnCallback );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user