public void Render(UIContextMenu menu, RectTransform holder) { var button = menu.FolderPool.Grab(holder); button.Setup(menu, this); Menu = menu; }
public void Setup(UIContextMenu menu, ContextButton entry) { this.menu = menu; this.entry = entry; label.text = entry.Label; }
public void Setup(UIContextMenu menu, ContextFolder entry) { label.text = entry.Label; for (int i = 0; i < entry.Entries.Length; i++) { entry.Entries[i].Render(menu, Child); } }
public ContextFolder(string label, params IContextEntry[] entries) { Label = label; Entries = entries; Menu = null; }
private void Awake() { Close(); Instance = this; }
public void Render(UIContextMenu menu, RectTransform holder) { menu.DividerPool.Grab(holder); Menu = menu; }
public void Render(UIContextMenu menu, RectTransform holder) { }
public void Render(UIContextMenu menu, RectTransform holder) { UIContextButton button = menu.ButtonPool.Grab(holder); button.Setup(menu, this); }