added request amb404
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40966
This commit is contained in:
+15
-2
@@ -23,7 +23,7 @@
|
||||
#include <IHandleSys.h>
|
||||
|
||||
#define SMINTERFACE_MENUMANAGER_NAME "IMenuManager"
|
||||
#define SMINTERFACE_MENUMANAGER_VERSION 3
|
||||
#define SMINTERFACE_MENUMANAGER_VERSION 4
|
||||
|
||||
/**
|
||||
* @file IMenuManager.h
|
||||
@@ -647,8 +647,13 @@ namespace SourceMod
|
||||
*
|
||||
* @param menu Menu pointer.
|
||||
* @param item Item position that was chosen by a majority.
|
||||
* @param winningVotes Number of votes from the winning item.
|
||||
* @param totalVotes Number of votes total.
|
||||
*/
|
||||
virtual void OnMenuVoteEnd(IBaseMenu *menu, unsigned int item)
|
||||
virtual void OnMenuVoteEnd(IBaseMenu *menu,
|
||||
unsigned int item,
|
||||
unsigned int winningVotes,
|
||||
unsigned int totalVotes)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -715,6 +720,14 @@ namespace SourceMod
|
||||
{
|
||||
return SMINTERFACE_MENUMANAGER_VERSION;
|
||||
}
|
||||
virtual bool IsVersionCompatible(unsigned int version)
|
||||
{
|
||||
if (version < 4 || version > GetInterfaceVersion())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public:
|
||||
/**
|
||||
* @brief Finds a style by name.
|
||||
|
||||
Reference in New Issue
Block a user