- Config upgrade
- Translatable  and customizable menu
- More async
- Minor changes
This commit is contained in:
Dawid Bepierszcz
2024-04-29 00:04:42 +02:00
parent aefa6c6355
commit c321502937
37 changed files with 1078 additions and 701 deletions

View File

@@ -1,23 +1,9 @@
namespace CS2_SimpleAdmin.Menus
{
public class ChatMenuOptionData
public class ChatMenuOptionData(string name, Action action, bool disabled = false)
{
public string name;
public Action action;
public bool disabled = true;
public ChatMenuOptionData(string name, Action action)
{
this.name = name;
this.action = action;
this.disabled = false;
}
public ChatMenuOptionData(string name, Action action, bool disabled)
{
this.name = name;
this.action = action;
this.disabled = disabled;
}
public readonly string Name = name;
public readonly Action Action = action;
public readonly bool Disabled = disabled;
}
}