added request amb404

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40966
This commit is contained in:
David Anderson
2007-06-16 21:56:12 +00:00
parent fe0d41198b
commit 8437e8ee04
4 changed files with 41 additions and 6 deletions
+15 -2
View File
@@ -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.