mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Message boxes can now have the mouse over a default button.
First places this is used are the tactical sector menu (CTRL + .) where "Refill Canteens" is the default and the trap disarm menu where "Disarm" is the default. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7753 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+22
-1
@@ -43,6 +43,27 @@ enum
|
||||
MSG_BOX_BASIC_MEDIUM_BUTTONS,
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
MSG_BOX_DEFAULT_BUTTON_NONE = 0,
|
||||
|
||||
MSG_BOX_DEFAULT_BUTTON_1,
|
||||
MSG_BOX_DEFAULT_BUTTON_2,
|
||||
MSG_BOX_DEFAULT_BUTTON_3,
|
||||
MSG_BOX_DEFAULT_BUTTON_4,
|
||||
MSG_BOX_DEFAULT_BUTTON_5,
|
||||
MSG_BOX_DEFAULT_BUTTON_6,
|
||||
MSG_BOX_DEFAULT_BUTTON_7,
|
||||
MSG_BOX_DEFAULT_BUTTON_8,
|
||||
MSG_BOX_DEFAULT_BUTTON_9,
|
||||
MSG_BOX_DEFAULT_BUTTON_10,
|
||||
MSG_BOX_DEFAULT_BUTTON_11,
|
||||
MSG_BOX_DEFAULT_BUTTON_12,
|
||||
MSG_BOX_DEFAULT_BUTTON_13,
|
||||
MSG_BOX_DEFAULT_BUTTON_14,
|
||||
MSG_BOX_DEFAULT_BUTTON_15,
|
||||
MSG_BOX_DEFAULT_BUTTON_16,
|
||||
};
|
||||
|
||||
typedef void (*MSGBOX_CALLBACK)( UINT8 bExitValue );
|
||||
|
||||
@@ -106,7 +127,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 );
|
||||
INT32 DoMessageBox( UINT8 ubStyle, const STR16 zString, UINT32 uiExitScreen, UINT16 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