Elin Modding Docs Doc
Loading...
Searching...
No Matches
AM_Select.cs
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
5// Token: 0x0200014F RID: 335
7{
8 // Token: 0x17000263 RID: 611
9 // (get) Token: 0x060009C6 RID: 2502 RVA: 0x0003B6E0 File Offset: 0x000398E0
10 public override string idSound
11 {
12 get
13 {
14 return null;
15 }
16 }
17
18 // Token: 0x060009C7 RID: 2503 RVA: 0x0003B6E4 File Offset: 0x000398E4
19 public bool ForceInnerBlockMode()
20 {
21 if (!base.IsActive)
22 {
23 return false;
24 }
25 using (List<InspectGroup>.Enumerator enumerator = base.Summary.groups.GetEnumerator())
26 {
27 while (enumerator.MoveNext())
28 {
29 if (enumerator.Current is InspectGroupBlock)
30 {
31 return true;
32 }
33 }
34 }
35 return false;
36 }
37
38 // Token: 0x060009C8 RID: 2504 RVA: 0x0003B74C File Offset: 0x0003994C
39 public override void OnUpdateInput()
40 {
41 this.RenderHighlights();
42 if (EInput.rightMouse.down)
43 {
44 base.Deactivate();
45 return;
46 }
47 if (!Input.GetMouseButton(0) && !EClass.ui.isPointerOverUI)
48 {
49 if (base.Summary.groups.Count > 0 && base.Summary.groups.Count != 1)
50 {
51 UIContextMenu uicontextMenu = EClass.ui.CreateContextMenu("ContextMenu");
52 uicontextMenu.onUpdate = new Action(this.RenderHighlights);
53 uicontextMenu.Show();
54 }
55 base.Deactivate();
56 }
57 }
58
59 // Token: 0x060009C9 RID: 2505 RVA: 0x0003B7D8 File Offset: 0x000399D8
60 public void RenderHighlights()
61 {
62 }
63
64 // Token: 0x060009CA RID: 2506 RVA: 0x0003B7DC File Offset: 0x000399DC
65 public override void OnRefreshSummary(Point point, HitResult result, HitSummary summary)
66 {
67 if (!point.IsSeen)
68 {
69 return;
70 }
71 foreach (IInspect inspect in point.ListInspectorTargets())
72 {
73 if (!(inspect is Area) && inspect.CanInspect)
74 {
75 Type type = inspect.GetType();
76 InspectGroup inspectGroup = null;
77 foreach (InspectGroup inspectGroup2 in summary.groups)
78 {
79 if (inspectGroup2.type.Equals(type))
80 {
81 inspectGroup = inspectGroup2;
82 break;
83 }
84 }
85 if (inspectGroup == null)
86 {
87 inspectGroup = InspectGroup.Create(inspect);
88 summary.groups.Add(inspectGroup);
89 }
90 else if (!inspectGroup.Contains(inspect))
91 {
92 inspectGroup.targets.Add(inspect);
93 }
94 summary.targets.Add(inspect);
95 }
96 }
97 }
98
99 // Token: 0x060009CB RID: 2507 RVA: 0x0003B8E0 File Offset: 0x00039AE0
100 public override ref string SetMouseInfo(ref string s)
101 {
102 foreach (InspectGroup inspectGroup in base.Summary.groups)
103 {
104 s = s + inspectGroup.GetName() + "\n";
105 }
106 return base.SetMouseInfo(ref s);
107 }
108}
Definition Area.cs:6
Definition Point.cs:11