10 public override void OnInit()
13 this.moldButton = this.layout.CreateMold(
null);
17 public void SetArea(
Area a)
24 public override void OnKill()
30 public void ShowPage()
32 this.transMenu.position = Input.mousePosition + this.offset;
33 this.layout.DestroyChildren(
false,
true);
37 this.layout.RebuildLayout(
true);
38 this.layout.enabled =
false;
39 List<UIButton> componentsInDirectChildren = this.layout.GetComponentsInDirectChildren(
true);
40 for (
int i = 0; i < componentsInDirectChildren.Count; i++)
42 UIButton uibutton = componentsInDirectChildren[i];
43 uibutton.transform.position = uibutton.transform.position + this.modPos * (float)i;
44 this.animeButton.Play(uibutton.transform,
null, -1f, 0f);
49 public void AddButton()
51 Util.Instantiate<UIButton>(this.moldButton, this.layout);
58 public Anime animeButton;
61 public LayoutGroup layout;
64 public UIButton moldButton;
67 public RectTransform transMenu;
70 public Vector3 offset;
73 public Vector3 modPos;