Add color support and improve menu option formatting
This commit is contained in:
parent
5ee1764318
commit
6422436252
15 changed files with 65 additions and 40 deletions
|
|
@ -11,9 +11,8 @@ public class WasdMenu : IWasdMenu
|
|||
public LinkedListNode<IWasdMenuOption>? Prev { get; set; } = null;
|
||||
public LinkedListNode<IWasdMenuOption> Add(string display, Action<CCSPlayerController, IWasdMenuOption> onChoice)
|
||||
{
|
||||
if (Options == null)
|
||||
Options = new();
|
||||
WasdMenuOption newOption = new WasdMenuOption
|
||||
Options ??= new();
|
||||
WasdMenuOption newOption = new()
|
||||
{
|
||||
OptionDisplay = display,
|
||||
OnChoose = onChoice,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue