| AddCategory | Adds a category to a TopMenu. |
| AddItem | Adds an item to a TopMenu category. |
| Display | Displays a TopMenu to a client. |
| DisplayCategory | Displays a TopMenu category to a client. |
| FindCategory | Finds a category's topobj ID in a TopMenu. |
| FromHandle | Returns a TopMenu handle from a generic handle. If the given handle is
a TopMenu, the handle is simply casted back. Otherwise, an error is
raised. |
| GetInfoString | Retrieves the info string of a top menu item. |
| GetObjName | Retrieves the name string of a top menu item. |
| LoadConfig | Re-sorts the items in a TopMenu via a configuration file.
The format of the configuration file should be a Valve Key-Values
formatted file that SourceMod can parse. There should be one root
section, and one sub-section for each category. Each sub-section's
name should match the category name.
Each sub-section may only contain key/value pairs in the form of:
key: "item"
value: Name of the item as passed to AddToTopMenu().
The TopMenu will draw items in the order declared in the configuration
file. If items do not appear in the configuration file, they are sorted
per-player based on how the handler function renders for that player.
These items appear after the configuration sorted items. |
| Remove | Removes an topobj from a TopMenu.
Plugins' topobjs are automatically removed all TopMenus when the given
plugin unloads or pauses. In the case of unpausing, all items are restored. |
| TopMenu | Creates a new TopMenu. |