Actions a top menu will take on an topobj.
Name | Description |
---|---|
TopMenuAction_DisplayOption | An option is being drawn for a menu (or for sorting purposes). INPUT : TopMenu Handle, topobj ID, client index. OUTPUT: Buffer for rendering, maxlength of buffer. |
TopMenuAction_DisplayTitle | The title of a menu is being drawn for a given topobj. Note: The Object ID will be INVALID_TOPMENUOBJECT if drawing the root title. Otherwise, the Object ID is a category. INPUT : TopMenu Handle, topobj ID, client index. OUTPUT: Buffer for rendering, maxlength of buffer. |
TopMenuAction_SelectOption | A menu option has been selected. The Object ID will always be an item (not a category). INPUT : TopMenu Handle, topobj ID, client index. |
TopMenuAction_DrawOption | A menu option is being drawn and its flags can be overridden. INPUT : TopMenu Handle, topobj ID, client index. OUTPUT: The first byte of the 'buffer' string should be set to the desired flags. By default, it will contain ITEMDRAW_DEFAULT. |
TopMenuAction_RemoveObject | Called when an topobj is being removed from the menu. This can be used to clean up data stored in the info string. INPUT : TopMenu Handle, topobj ID. |
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.