@@ -13,8 +13,10 @@ minimal changes and immediately benefit from these performance and UI improvemen
1313
1414This plugin has incorporated code and/or design principles from the following plugins:
1515
16- - [ WASDMenuAPI] ( https://github.com/Interesting-exe/WASDMenuAPI ) by @Interesting-exe
17- - [ MenuManagerCS2] ( https://github.com/NickFox007/MenuManagerCS2 ) by @NickFox007
16+ - [ WASDMenuAPI] ( https://github.com/Interesting-exe/WASDMenuAPI )
17+ - [ MenuManagerCS2] ( https://github.com/NickFox007/MenuManagerCS2 )
18+
19+ This plugin also utilizes [ PlayerSettngsCS2] ( https://github.com/NickFox007/PlayerSettingsCS2 ) for storing menu types as player settings.
1820
1921## Commands
2022
@@ -27,7 +29,28 @@ Players can say `!changemenu` to change their preferred menu type.
2729Below is the default configuration of this plugin, which you can modify as you so choose.
2830
2931``` json
30-
32+ // This configuration was automatically generated by CounterStrikeSharp for plugin 'MenuManagerAPI', at 2025/06/20 11:50:21
33+ {
34+ "Version" : 1 ,
35+ "DefaultMenu" : 3 ,
36+ "SoundScroll" : " " ,
37+ "SoundClick" : " " ,
38+ "SoundBack" : " " ,
39+ "SoundExit" : " " ,
40+ "SoundDisabled" : " " ,
41+ "OptionCount" : true ,
42+ "MoveWithOpenMenu" : false ,
43+ "UseVelocityModifier" : false ,
44+ "ButtonsConfig" : {
45+ "UpButton" : 8 ,
46+ "DownButton" : 16 ,
47+ "LeftButton" : 512 ,
48+ "RightButton" : 1024 ,
49+ "SelectButton" : 32 ,
50+ "ExitButton" : 8192 ,
51+ "BackButton" : 4
52+ }
53+ }
3154```
3255
3356## Language Support
@@ -104,16 +127,35 @@ public class Plugin : BasePlugin
104127 if (player != null )
105128 {
106129 IMenu ? menu = _api .GetMenu (" Menu Title" );
130+ menu ! .PostSelectAction = PostSelectAction .Close ;
131+
107132 for (int i = 0 ; i < 10 ; i ++ )
108133 {
109- menu .AddMenuOption ($" itemline{i }" , (player , option ) => { player .PrintToChat ($" Selected: {option .Text }" ); });
134+ menu .AddMenuOption ($" itemline{i }" , (player , option ) =>
135+ {
136+ player .PrintToChat ($" Selected: {option .Text }" );
137+ // _api.CloseMenu(player);
138+ });
110139 }
111140 menu .Open (player );
141+ // _api.OpenMenu(menu, player);
112142 }
113143 }
114144}
115145```
116146
147+ ## TODO
148+ - [x] Chat Menu
149+ - [x] Center Menu
150+ - [x] Console Menu
151+ - [x] Button Menu
152+ - [x] Sound
153+ - [x] Styling
154+ - [x] Option Counter
155+ - [x] Velocity Modifier
156+ - [ ] Screen Menu
157+ - [ ] Metamod Menu
158+
117159## Need Help?
118160
119161Still need help? [ create a new issue] ( https://github.com/nickj609/MenuManagerAPI/issues/new/choose ) .
0 commit comments