SourceMod SDK
1.7
|
Contains callbacks for menu actions. More...
#include <public/IMenuManager.h>
Public Member Functions | |
virtual unsigned int | GetMenuAPIVersion2 () |
Returns the menu api verison. More... | |
virtual void | OnMenuStart (IBaseMenu *menu) |
A display/selection cycle has started. More... | |
virtual void | OnMenuDisplay (IBaseMenu *menu, int client, IMenuPanel *display) |
Called before a menu is being displayed. This is where you can set an alternate title on the menu. More... | |
virtual void | OnMenuSelect (IBaseMenu *menu, int client, unsigned int item) |
Called when an item is selected. More... | |
virtual void | OnMenuCancel (IBaseMenu *menu, int client, MenuCancelReason reason) |
An active menu display was dropped from a client. More... | |
virtual void | OnMenuEnd (IBaseMenu *menu, MenuEndReason reason) |
A display/selection cycle has ended. More... | |
virtual void | OnMenuDestroy (IBaseMenu *menu) |
Called when the menu object is destroyed. More... | |
virtual void | OnMenuDrawItem (IBaseMenu *menu, int client, unsigned int item, unsigned int &style) |
Called when requesting how to render an item. More... | |
virtual unsigned int | OnMenuDisplayItem (IBaseMenu *menu, int client, IMenuPanel *panel, unsigned int item, const ItemDrawInfo &dr) |
Called when drawing item text. More... | |
virtual void | OnMenuVoteStart (IBaseMenu *menu) |
Called when a vote has been started and displayed to clients. This is called after OnMenuStart() and OnMenuDisplay(), but before OnMenuSelect(). More... | |
virtual void | OnMenuVoteResults (IBaseMenu *menu, const menu_vote_result_t *results) |
Called when a vote ends. This is automatically called by the wrapper, and never needs to called from a style implementation. More... | |
virtual void | OnMenuVoteCancel (IBaseMenu *menu, VoteCancelReason reason) |
Called when a vote is cancelled. If this is called, then OnMenuVoteResults() will not be called. In both cases, OnMenuEnd will always be called. More... | |
virtual bool | OnSetHandlerOption (const char *option, const void *data) |
Call to set private handler stuff. More... | |
virtual void | OnMenuSelect2 (IBaseMenu *menu, int client, unsigned int item, unsigned int item_on_page) |
Called when an item is selected. More... | |
Contains callbacks for menu actions.
|
inlinevirtual |
Returns the menu api verison.
|
inlinevirtual |
An active menu display was dropped from a client.
menu | Menu pointer. |
client | Client that had the menu. |
reason | Menu cancellation reason. |
|
inlinevirtual |
Called when the menu object is destroyed.
menu | Menu pointer. |
|
inlinevirtual |
Called before a menu is being displayed. This is where you can set an alternate title on the menu.
menu | Menu pointer. |
client | Client index. |
display | IMenuPanel pointer. |
|
inlinevirtual |
Called when drawing item text.
menu | Menu pointer. |
client | Client index receiving the menu. |
panel | Panel being used to draw the menu. |
item | Item number in the menu. |
dr | Item draw information. |
|
inlinevirtual |
Called when requesting how to render an item.
menu | Menu pointer. |
client | Client index receiving the menu. |
item | Item number in the menu. |
style | ITEMSTYLE flags, by reference for modification. |
|
inlinevirtual |
A display/selection cycle has ended.
menu | Menu pointer. |
reason | MenuEndReason reason. |
|
inlinevirtual |
Called when an item is selected.
menu | Menu pointer. |
client | Client that selected the item. |
item | Item number. |
|
inlinevirtual |
Called when an item is selected.
Note: This callback was added in v13. It is called after OnMenuSelect().
menu | Menu pointer. |
client | Client that selected the item. |
item | Item number. |
item_on_page | The first item on the page the player was last viewing. |
|
inlinevirtual |
A display/selection cycle has started.
menu | Menu pointer. |
|
inlinevirtual |
Called when a vote is cancelled. If this is called, then OnMenuVoteResults() will not be called. In both cases, OnMenuEnd will always be called.
menu | Menu pointer. |
reason | VoteCancelReason reason. |
|
inlinevirtual |
Called when a vote ends. This is automatically called by the wrapper, and never needs to called from a style implementation.
This function does not replace OnMenuEnd(), nor does it have the same meaning as OnMenuEnd(), meaning you should not destroy a menu while it is in this function.
menu | Menu pointer. |
results | Menu vote results. |
|
inlinevirtual |
Called when a vote has been started and displayed to clients. This is called after OnMenuStart() and OnMenuDisplay(), but before OnMenuSelect().
menu | Menu pointer. |
|
inlinevirtual |
Call to set private handler stuff.
option | Option name. |
data | Private data. |