added helper function for panel text

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401367
This commit is contained in:
David Anderson
2007-08-19 18:34:36 +00:00
parent 2a3de44ddb
commit 25f045bdea
7 changed files with 58 additions and 1 deletions
+11 -1
View File
@@ -36,7 +36,7 @@
#include <IHandleSys.h>
#define SMINTERFACE_MENUMANAGER_NAME "IMenuManager"
#define SMINTERFACE_MENUMANAGER_VERSION 11
#define SMINTERFACE_MENUMANAGER_VERSION 12
/**
* @file IMenuManager.h
@@ -312,6 +312,16 @@ namespace SourceMod
* @return True on success, false otherwise.
*/
virtual bool SetCurrentKey(unsigned int key) =0;
/**
* @brief Returns the number of characters that can be added to the
* menu. The internal buffer is truncated if overflowed; this is for
* manual truncation/wrapping purposes.
*
* @return Number of bytes available. If the result is
* -1, then the panel has no text limit.
*/
virtual int GetAmountRemaining() =0;
};
/**