fixed amb1098 - SetMenuExitButton() did not work with MENU_NO_PAGINATION

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401659
This commit is contained in:
David Anderson
2007-10-30 01:22:47 +00:00
parent fe28f51e9a
commit 4abf26c626
4 changed files with 166 additions and 93 deletions
+9 -1
View File
@@ -373,6 +373,9 @@ namespace SourceMod
/**
* @brief Returns the maximum number of items per page.
*
* Menu implementations must return >= 2. Styles with only 1 or 0
* items per page are not valid.
*
* @return Number of items per page.
*/
virtual unsigned int GetMaxPageItems() =0;
@@ -464,8 +467,13 @@ namespace SourceMod
/**
* @brief Sets the menu's pagination,.
*
* If pagination is set to MENU_NO_PAGINATION, and the previous
* pagination was not MENU_NO_PAGINATION, then the MENUFLAG_BUTTON_EXIT
* is unset. It can be re-applied if desired.
*
* @param itemsPerPage Number of items per page, or MENU_NO_PAGINATION.
* @return True on success, false if itemsPerPage is too large.
* @return True on success, false if itemsPerPage is too
* large.
*/
virtual bool SetPagination(unsigned int itemsPerPage) =0;