mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 18:49:23 +00:00
1.4.2a
- Config upgrade - Translatable and customizable menu - More async - Minor changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user