SamuraiBarbi
10-01-2007, 19:44
A large portion of a script I'm working on is dependent on menus and I have a couple questions after reading and researching.
First, I read the following on the wiki about menu api.
"The purpose of Menus is to simplify the procedure of storing, drawing, and calculating the selection of items. Thus, menus do not allow for adding raw text, as that would considerably complicate the drawing algorithm. Note: The C++ API supports hooking IBaseMenu drawing procedures and adding raw text; this will be added to the scripting API soon."
Is this still true? I really need the ability to draw raw text. I mean raw text that doesn't appear as a selection so I can have for instance, a header in a menu or even just so I can display various information in a menu. I thought that maybe using ITEMDRAW_RAWLINE would accomplish this but it wasn't quite what I was trying to accomplish.
Second question is, how can I get around what appears to be a size limitation for menus in Sourcemod? I have an immediate need for the ability to draw a menu larger than what, to my current knowledge the menu system in Sourcemod will allow. I do not want pagination in the menu I'm trying to build, but I do need for it to be larger than what I think is an enforced line limit. I am able to do this using Eventscripts but I'm not sure in what way their method for building menu's differs nor how they managed to allow for scripters to build large menu's.
Thanks!
First, I read the following on the wiki about menu api.
"The purpose of Menus is to simplify the procedure of storing, drawing, and calculating the selection of items. Thus, menus do not allow for adding raw text, as that would considerably complicate the drawing algorithm. Note: The C++ API supports hooking IBaseMenu drawing procedures and adding raw text; this will be added to the scripting API soon."
Is this still true? I really need the ability to draw raw text. I mean raw text that doesn't appear as a selection so I can have for instance, a header in a menu or even just so I can display various information in a menu. I thought that maybe using ITEMDRAW_RAWLINE would accomplish this but it wasn't quite what I was trying to accomplish.
Second question is, how can I get around what appears to be a size limitation for menus in Sourcemod? I have an immediate need for the ability to draw a menu larger than what, to my current knowledge the menu system in Sourcemod will allow. I do not want pagination in the menu I'm trying to build, but I do need for it to be larger than what I think is an enforced line limit. I am able to do this using Eventscripts but I'm not sure in what way their method for building menu's differs nor how they managed to allow for scripters to build large menu's.
Thanks!