Elin Modding Docs Doc
Loading...
Searching...
No Matches
LayerDebug.cs
1using System;
2using UnityEngine.Events;
3
4// Token: 0x02000538 RID: 1336
5public class LayerDebug : ELayer
6{
7 // Token: 0x06002438 RID: 9272 RVA: 0x000CC1B0 File Offset: 0x000CA3B0
8 public override void OnSwitchContent(Window window)
9 {
10 this.list.Clear();
11 BaseList baseList = this.list;
12 UIList.Callback<CoreDebug.DebugCommand, UIButton> callback = new UIList.Callback<CoreDebug.DebugCommand, UIButton>();
13 callback.onClick = delegate(CoreDebug.DebugCommand a, UIButton b)
14 {
15 };
16 callback.onInstantiate = delegate(CoreDebug.DebugCommand a, UIButton b)
17 {
18 b.mainText.text = a.name;
19 b.onClick.AddListener(new UnityAction(a.action.Invoke));
20 };
21 baseList.callbacks = callback;
22 foreach (CoreDebug.DebugCommand debugCommand in ELayer.debug.commands)
23 {
24 if (debugCommand.cat == window.idTab)
25 {
26 this.list.Add(debugCommand);
27 }
28 }
29 this.list.Refresh(false);
30 }
31
32 // Token: 0x0400139D RID: 5021
33 public UIList list;
34}