bumped menu api again - added feature to get menu end reason
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401003
This commit is contained in:
@@ -37,7 +37,7 @@ enum MenuAction
|
||||
MenuAction_Display = (1<<1), /**< A menu is about to be displayed (param1=client, param2=MenuPanel Handle) */
|
||||
MenuAction_Select = (1<<2), /**< An item was selected (param1=client, param2=item) */
|
||||
MenuAction_Cancel = (1<<3), /**< The menu was cancelled (param1=client, param2=reason) */
|
||||
MenuAction_End = (1<<4), /**< A menu's display/selection cycle is complete (nothing passed) */
|
||||
MenuAction_End = (1<<4), /**< A menu display has fully ended (param1=reason) */
|
||||
MenuAction_VoteEnd = (1<<5), /**< (VOTE ONLY): A vote sequence has succeeded (param1=chosen item) */
|
||||
MenuAction_VoteStart = (1<<6), /**< (VOTE ONLY): A vote sequence has started (nothing passed) */
|
||||
MenuAction_VoteCancel = (1<<7), /**< (VOTE ONLY): A vote sequence has been cancelled (nothing passed) */
|
||||
@@ -70,6 +70,18 @@ enum
|
||||
MenuCancel_NoDisplay = -4, /**< Menu could not be displayed to the client */
|
||||
};
|
||||
|
||||
/**
|
||||
* Reasons a menu ended.
|
||||
*/
|
||||
enum
|
||||
{
|
||||
MenuEnd_Cancelled = -1, /**< Menu was cancelled, reason was passed in MenuAction_Cancel */
|
||||
MenuEnd_Exit = -2, /**< Menu was cleanly exited (but cancelled) */
|
||||
MenuEnd_Selected = -3, /**< Menu item was selected and thus the menu is finished */
|
||||
MenuEnd_VotingDone = -4, /**< Voting finished */
|
||||
MenuEnd_VotingCancelled = -5, /**< Voting was cancelled */
|
||||
};
|
||||
|
||||
/**
|
||||
* Describes a menu's source
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user