Elin Modding Docs Doc
Loading...
Searching...
No Matches
TerrainMenu.cs
1using System;
2
3// Token: 0x020004FB RID: 1275
4public class TerrainMenu : EMono
5{
6 // Token: 0x0600220A RID: 8714 RVA: 0x000BCAF8 File Offset: 0x000BACF8
7 public void Show(ActionMode _am)
8 {
9 bool useSubMenu = _am.UseSubMenu;
10 this.am = _am;
11 base.gameObject.SetActive(useSubMenu);
12 if (!useSubMenu)
13 {
14 return;
15 }
16 this.sliderRadius.value = (float)this.am.brushRadius;
17 this.sliderRadius.transform.parent.SetActive(this.am.UseSubMenuSlider);
18 this.group.checkbox = !this.am.SubMenuAsGroup;
19 foreach (UIButton c in this.group.GetComponentsInDirectChildren(true))
20 {
21 c.SetActive(true);
22 }
23 this.group.Init(this.am.SubMenuModeIndex, delegate(int a)
24 {
25 this.am.OnClickSubMenu(a);
26 }, false);
27 for (int i = 0; i < this.group.list.Count; i++)
28 {
29 UIButton uibutton = this.group.list[i];
30 string text = this.am.OnSetSubMenuButton(i, uibutton);
31 uibutton.SetActive(text != null);
32 if (text != null)
33 {
34 uibutton.mainText.SetText(text.lang());
35 }
36 }
37 this.RebuildLayout(true);
38 }
39
40 // Token: 0x0600220B RID: 8715 RVA: 0x000BCC44 File Offset: 0x000BAE44
41 public void OnChangeRadius(float a)
42 {
43 this.am.brushRadius = (int)a;
44 this.sliderRadius.textMain.text = "radius".lang() + ": " + this.am.brushRadius.ToString();
45 }
46
47 // Token: 0x04001197 RID: 4503
48 public UISlider sliderRadius;
49
50 // Token: 0x04001198 RID: 4504
51 public ActionMode am;
52
53 // Token: 0x04001199 RID: 4505
54 public UISelectableGroup group;
55
56 // Token: 0x0400119A RID: 4506
57 public int radius;
58}
Definition EMono.cs:6