One thing I see a lot in SourceMod is plugin developers having trouble making menus for their plugins.
I saw the
AMXX Menu Generator and it inspired me. If someone can create an AMXModX menu generator, why can't someone make a SourceMod Menu Generator?
So I did!
It's written in C# using Visual Studio 2010, but targets the .NET 2.0 framework rather than 4.0. Source code is licensed under GPLv3.
Special things:
- Only menu items that are selectable will show up in the MenuAction_Select area.
- Menu items marked No Text or Spacer will not show up in the MenuAction_DisplayItem area.
- return 0; is added if Item Translation or Override Draw Styles is added. This prevents a compiler warning.
To do list:
- Add support for Vote menus.
- Errors need to be presented better.
- Make comments optional in generated code
- Improve UI
- Make a real program icon instead of the generic "Visual Studio Program" icon.