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.
bool LoadConfig(const char[] file, char[] error, int maxlength)
File path.
Error buffer.
Maximum size of the error buffer. Error buffer will be filled with a zero-terminated string if false is returned.
True on success, false on failure.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.