Custom Admin Menu
Instead of having my admin menu in the plugin itself, I was thinking of putting it in a text file inside the sourcemod/configs directory. Is there a way I can do this without using the adminmenu_custom.txt? I would like to use my own text file just in case users already have a custom menu. I know I could edit the dynamicmenu.sp file to parse my file, but I would rather not start editing core SM files.
|
Re: Custom Admin Menu
Yes! I just did this, actually.
See the following post, admin files and source included. Feel free to borrow pieces. http://forums.alliedmods.net/showthread.php?t=106087 It was my first attempt at it, so there may be some areas which are redundant. I hope to clean it up more as it sinks in. I'm pretty sure I didn't use the keyvalue navigation functions properly, but I got it working. =) X |
Re: Custom Admin Menu
Yikes, that seems more difficult than just having it in the plugin :(. I was hoping that it was possible to be able to remove everything from the sp file and put it in the txt file, but I should have known better.
|
Re: Custom Admin Menu
Quote:
|
Re: Custom Admin Menu
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:
|
Re: Custom Admin Menu
Quote:
Quote:
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 |
All times are GMT -4. The time now is 11:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.