View Single Post
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-22-2009 , 21:09   Re: Custom Admin Menu
Reply With Quote #6

Quote:
Originally Posted by Bigbuck View Post
One thing I did notice about your plugin, but forgot to ask before, was you mention you cannot add sub menus? Does this mean you cannot have something like show below?

PHP Code:
Zombe Havoc Top Menu
    Map Changer
        Coop
            No Mercy
        Versus
        Survival
    Auto Havoc
        Enable
        Disable 
My menu will be pretty nested once it is complete and I wanted to clarify it is was even possible to do this with your method before I start.
I was unable (using the admin menu) to create a subcategory within a subcategory. The Wiki seems to state the same thing quite clearly:

Quote:
The menu is organized into categories and items. Categories are top-level selections on the menu. Items are selectable entries inside categories. There are two important rules:
  • There is no nesting. Categories cannot have sub-categories.
  • Only categories can exist at the top level (i.e. items must have a parent category).
Whether this is also true for custom built menus, I am not sure, but would assume so.

Additionally, my method of sorting the items in my custom menus is null and void. Issuing LoadTopMenuConfig and specifying my own sorting file causes the other sourcemod admin menu entries to get sorted a-z by default, thus ignoring the original adminmenu_sorting.txt file entries. In hindsight, I suppose I should have seen this coming. I'm still searching for a way of sorting my custom category items without the end user having to copy/paste stuff into the adminmenu_sorting.txt files manually.

X
__________________

Last edited by XARIUS; 10-22-2009 at 21:13.
XARIUS is offline