Exemple #1
0
        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;
        }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
 public ContextFolder(string label, params IContextEntry[] entries)
 {
     Label   = label;
     Entries = entries;
     Menu    = null;
 }
Exemple #5
0
        private void Awake()
        {
            Close();

            Instance = this;
        }
Exemple #6
0
 public void Render(UIContextMenu menu, RectTransform holder)
 {
     menu.DividerPool.Grab(holder);
     Menu = menu;
 }
Exemple #7
0
 public void Render(UIContextMenu menu, RectTransform holder)
 {
 }
Exemple #8
0
        public void Render(UIContextMenu menu, RectTransform holder)
        {
            UIContextButton button = menu.ButtonPool.Grab(holder);

            button.Setup(menu, this);
        }