Exemplo n.º 1
0
        public void Update()
        {
            if (!aligned)
            {
                AlignTabs(tabAlign);
                aligned = true;
            }

            if (active && currentWindow)
            {
                currentWindow.SetActive(true);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sets the active tab window of the group.
        /// </summary>
        /// <param name="window"></param>
        public void SetWindow(QUI_TabWindow window)
        {
            if (!windows.Contains(window))
            {
                return;
            }

            if (currentWindow)
            {
                currentWindow.SetActive(false);
            }
            currentWindow = window;
            if (currentWindow)
            {
                currentWindow.SetActive(true);
            }
        }