示例#1
0
        public void Setup(PopupMenu menu, PopupButton entry)
        {
            this.menu  = menu;
            this.entry = entry;

            label.text = entry.Label;
        }
示例#2
0
        public void Display(string header, params PopupButton[] buttons)
        {
            ButtonPool.Flush();
            BackgroundFade.Target = true;

            for (int i = 0; i < buttons.Length; i++)
            {
                PopupButton   button   = buttons[i];
                UIPopupButton uiButton = ButtonPool.Grab(ButtonsHolder);
                uiButton.Setup(this, button);
            }

            Dialogue.SetActive(true);
        }