#include <public/IMenuManager.h>
Inherits SourceMod::SMInterface.
Inheritance diagram for SourceMod::IMenuManager:
Public Member Functions | |
| virtual const char * | GetInterfaceName () |
| Must return a string defining the interface's unique name. | |
| virtual unsigned int | GetInterfaceVersion () |
| Must return an integer defining the interface's version. | |
| virtual bool | IsVersionCompatible (unsigned int version) |
| Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning. | |
| virtual IMenuStyle * | FindStyleByName (const char *name)=0 |
| Finds a style by name. | |
| virtual IMenuStyle * | GetDefaultStyle ()=0 |
| Returns the default draw style Core is using. | |
| virtual IMenuPanel * | RenderMenu (int client, menu_states_t &states, ItemOrder order)=0 |
| Given a set of menu states, converts it to an IMenuPanel object. | |
| virtual void | CancelMenu (IBaseMenu *menu)=0 |
| Cancels a menu. Calls IBaseMenu::Cancel() after doing some preparatory work. This should always be used instead of directly calling Cancel(). | |
| virtual bool | StartVote (IBaseMenu *menu, unsigned int num_clients, int clients[], unsigned int max_time, unsigned int flags=0)=0 |
| Displays a menu as a vote. | |
| virtual bool | IsVoteInProgress ()=0 |
| Returns whether or not a vote is in progress. | |
| virtual void | CancelVoting ()=0 |
| Cancels the vote in progress. This calls IBaseMenu::Cancel(). | |
| virtual unsigned int | GetRemainingVoteDelay ()=0 |
| Returns the remaining vote delay from the last menu. This delay is a suggestion for all public votes, and is not enforced. | |
| virtual bool | IsClientInVotePool (int client)=0 |
| Returns whether a client is in the "allowed to vote" pool determined by the initial call to StartVote(). | |
| virtual bool | RedrawClientVoteMenu (int client)=0 |
| Redraws the current vote menu to a client in the voting pool. | |
Definition at line 805 of file IMenuManager.h.
| virtual bool SourceMod::IMenuManager::IsVersionCompatible | ( | unsigned int | version | ) | [inline, virtual] |
Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning.
| version | Version number to compare against. |
Reimplemented from SourceMod::SMInterface.
Definition at line 816 of file IMenuManager.h.
| virtual IMenuStyle* SourceMod::IMenuManager::FindStyleByName | ( | const char * | name | ) | [pure virtual] |
Finds a style by name.
| name | Name of the style (case insensitive). |
| virtual IMenuStyle* SourceMod::IMenuManager::GetDefaultStyle | ( | ) | [pure virtual] |
Returns the default draw style Core is using.
| virtual IMenuPanel* SourceMod::IMenuManager::RenderMenu | ( | int | client, | |
| menu_states_t & | states, | |||
| ItemOrder | order | |||
| ) | [pure virtual] |
Given a set of menu states, converts it to an IMenuPanel object.
The state parameter is both INPUT and OUTPUT. INPUT: menu, mh, firstItem, lastItem OUTPUT: display, firstItem, lastItem, slots
| client | Client index. | |
| states | Menu states. | |
| order | Order to search for items. |
| virtual void SourceMod::IMenuManager::CancelMenu | ( | IBaseMenu * | menu | ) | [pure virtual] |
Cancels a menu. Calls IBaseMenu::Cancel() after doing some preparatory work. This should always be used instead of directly calling Cancel().
| menu | IBaseMenu pointer. |
| virtual bool SourceMod::IMenuManager::StartVote | ( | IBaseMenu * | menu, | |
| unsigned int | num_clients, | |||
| int | clients[], | |||
| unsigned int | max_time, | |||
| unsigned int | flags = 0 | |||
| ) | [pure virtual] |
Displays a menu as a vote.
| menu | IBaseMenu pointer. | |
| num_clients | Number of clients to display to. | |
| clients | Client index array. | |
| max_time | Maximum time to hold menu for. | |
| flags | Vote flags (currently unused). |
| virtual bool SourceMod::IMenuManager::IsVoteInProgress | ( | ) | [pure virtual] |
Returns whether or not a vote is in progress.
| virtual unsigned int SourceMod::IMenuManager::GetRemainingVoteDelay | ( | ) | [pure virtual] |
Returns the remaining vote delay from the last menu. This delay is a suggestion for all public votes, and is not enforced.
| virtual bool SourceMod::IMenuManager::IsClientInVotePool | ( | int | client | ) | [pure virtual] |
Returns whether a client is in the "allowed to vote" pool determined by the initial call to StartVote().
| client | Client index. |
| virtual bool SourceMod::IMenuManager::RedrawClientVoteMenu | ( | int | client | ) | [pure virtual] |
Redraws the current vote menu to a client in the voting pool.
| client | Client index. |
1.5.1