示例#1
0
        public void Render(UIContextMenu menu, RectTransform holder)
        {
            var button = menu.FolderPool.Grab(holder);

            button.Setup(menu, this);
            Menu = menu;
        }
示例#2
0
        public void Setup(UIContextMenu menu, ContextButton entry)
        {
            this.menu  = menu;
            this.entry = entry;

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

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

            button.Setup(menu, this);
        }