예제 #1
0
    protected virtual void OnAdjustPageSibling()
    {
        bool pageShow = UIMessageBoxBase.m_MessageBox == null;

        for (int i = 0; i < m_Pages.Count; i++)
        {
            bool pageOverlay = pageShow && m_Pages.Count - 1 == i;
            TUI.ReparentRestretchUI(m_Pages[i].rectTransform, pageOverlay ? tf_OverlayPage : tf_CameraPage);
        }
    }
예제 #2
0
    protected void SetControlViewMode(UIControlBase control, bool overlay)
    {
        if (!m_ControlSiblings.ContainsKey(control))
        {
            Debug.LogError("?");
            return;
        }

        TUI.ReparentRestretchUI(control.rectTransform, overlay ? tf_OverlayControl : tf_CameraControl);
        control.transform.SetSiblingIndex(m_ControlSiblings[control]);
    }