Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InteractionMenu.cs
Go to the documentation of this file.
1using UnityEngine;
2using UnityEngine.UI;
3
4public class InteractionMenu : EMono
5{
6 public LayoutGroup layout;
7
8 public UIButton mold;
9
10 public Vector3 offset;
11
12 public Vector3 modPos;
13
14 public SoundData soundPop;
15
16 private void Awake()
17 {
18 mold = layout.CreateMold<UIButton>();
19 }
20
21 public void Show()
22 {
23 layout.RebuildLayout(recursive: true);
24 soundPop.Play();
25 }
26
27 public UIButton Add()
28 {
29 return Util.Instantiate(mold, layout);
30 }
31
32 public void Clear()
33 {
34 layout.DestroyChildren();
35 }
36}
Definition: EMono.cs:4
LayoutGroup layout
SoundData soundPop