Describes a "MenuStyle" system which manages menu drawing and construction.
More...
#include <public/IMenuManager.h>
Describes a "MenuStyle" system which manages menu drawing and construction.
virtual bool SourceMod::IMenuStyle::CancelClientMenu |
( |
int |
client, |
|
|
bool |
autoIgnore = false |
|
) |
| |
|
pure virtual |
Cancels a client's menu.
- Parameters
-
client | Client index. |
autoIgnore | If true, no menus can be created during the cancellation process. |
- Returns
- True if a menu was cancelled, false otherwise.
virtual IBaseMenu* SourceMod::IMenuStyle::CreateMenu |
( |
IMenuHandler * |
handler, |
|
|
IdentityToken_t * |
pOwner = NULL |
|
) |
| |
|
pure virtual |
virtual IMenuPanel* SourceMod::IMenuStyle::CreatePanel |
( |
| ) |
|
|
pure virtual |
Creates an IMenuPanel object.
Note: the object should be freed using ::DeleteThis.
- Returns
- IMenuPanel object.
virtual unsigned int SourceMod::IMenuStyle::GetApproxMemUsage |
( |
| ) |
|
|
pure virtual |
For the Handle system, returns approximate memory usage.
- Returns
- Approximate number of bytes being used.
virtual MenuSource SourceMod::IMenuStyle::GetClientMenu |
( |
int |
client, |
|
|
void ** |
object |
|
) |
| |
|
pure virtual |
Returns whether or not a client is viewing a menu.
- Parameters
-
client | Client index. |
object | Optional pointer to retrieve menu object, if any. |
- Returns
- MenuSource value.
virtual Handle_t SourceMod::IMenuStyle::GetHandle |
( |
| ) |
|
|
pure virtual |
Returns a Handle the IMenuStyle object.
- Returns
- Handle_t pointing to this object.
virtual unsigned int SourceMod::IMenuStyle::GetMaxPageItems |
( |
| ) |
|
|
pure virtual |
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.
- Returns
- Number of items per page.
virtual unsigned int SourceMod::IMenuStyle::GetStyleAPIVersion |
( |
| ) |
|
|
inlinevirtual |
Returns the style API version.
- Returns
- API version.
virtual const char* SourceMod::IMenuStyle::GetStyleName |
( |
| ) |
|
|
pure virtual |
Returns the name of the menu style.
- Returns
- String containing the style name.
virtual bool SourceMod::IMenuStyle::IsSupported |
( |
| ) |
|
|
pure virtual |
Returns whether or not this style is supported by the current game.
- Returns
- True if supported, otherwise false.
The documentation for this class was generated from the following file: