roflmuffin / CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2
https://docs.cssharp.dev
Other
742 stars 111 forks source link

minor menu changes #373

Closed partiusfabaa closed 5 months ago

partiusfabaa commented 5 months ago

1. Added option to disable the exit button

var menu = new ChatMenu("TEST");
menu.ExitButton = true;

menu.AddMenuOption("Test", (controller, option) => Server.PrintToChatAll(option.Text));

MenuManager.OpenChatMenu(player, menu);

2. Fixed a situation where there were more items in the menu than set

3. Added exit button to console and chat menu

K4mYY commented 5 months ago

Can you also change the buttons and align them with csgo/css please ? !8 previous, !9 next, !0 exit