Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
LayerDebug.cs
Go to the documentation of this file.
1public class LayerDebug : ELayer
2{
3 public UIList list;
4
5 public override void OnSwitchContent(Window window)
6 {
7 list.Clear();
8 list.callbacks = new UIList.Callback<CoreDebug.DebugCommand, UIButton>
9 {
10 onClick = delegate
11 {
12 },
13 onInstantiate = delegate(CoreDebug.DebugCommand a, UIButton b)
14 {
15 b.mainText.text = a.name;
16 b.onClick.AddListener(a.action.Invoke);
17 }
18 };
19 foreach (CoreDebug.DebugCommand command in ELayer.debug.commands)
20 {
21 if (command.cat == window.idTab)
22 {
23 list.Add(command);
24 }
25 }
26 list.Refresh();
27 }
28}
List< DebugCommand > commands
Definition: CoreDebug.cs:282
Definition: ELayer.cs:4
static CoreDebug debug
Definition: ELayer.cs:43
override void OnSwitchContent(Window window)
Definition: LayerDebug.cs:5
UIList list
Definition: LayerDebug.cs:3
Definition: UIList.cs:9
override void Clear()
Definition: UIList.cs:349
override void Add(object item)
Definition: UIList.cs:302
virtual void Refresh(bool highlightLast=false)
Definition: UIList.cs:424
Definition: Window.cs:13
int idTab
Definition: Window.cs:694