View Single Post
your-name-here
Member
Join Date: May 2007
Old 06-22-2008 , 12:31   Re: Sigscanning, datamaps, and vfuncs
Reply With Quote #7

I deleted the above message as it's not current anymore.

I did add a partial version of the "Dynamic Menu System" into my plugin.
My next objective is to work on adding "pages" to the menus.

At the moment, it's really simple to use. In the MenuHandler constructor, you would initialize your menu object and add it into the CUtlVector member variable. Then, you would add your choices to the menu. Finally, in the CMenuHandler::MenuHandler method, you would handle each choice accordingly. An example has been provided. Disregard the std::map and std::pair stuff. I will using those in order to "remember" what page each player is on.

I hope to comment my code more fully than it already is (which isn't much ).

Again, questions, comments, and suggestions are welcome.
your-name-here is offline