Esempio n. 1
0
        // 显示设置
        public void SetData()
        {
            if (IsActive())
            {
                return;
            }

            m_nModelKey = ModalHelper.Open(this, null, new Color(0.15f, 0.15f, 0.15f, 0f), Hide, this.transform as RectTransform);
            this.gameObject.SetActive(true);
        }
Esempio n. 2
0
 public void OnToggleListView(bool _bOpen)
 {
     if (_bOpen)
     {
         DispositionListView.gameObject.SetActive(true);
         modalKey = ModalHelper.Open(DispositionListView, color: new Color(0, 0, 0, 0), onClick: () =>
         {
             UISystem.Instance.SendTargetWndMessage(WndID.WND_ID_WAR_GOODSSTORE, WndMsgID.WND_MSG_WAR_GOODSSTORE_SET_TOGGLEDISPOSITIONSTATE,
                                                    new UIMsgCmdData((int)WndMsgID.WND_MSG_WAR_GOODSSTORE_SET_TOGGLEDISPOSITIONSTATE, 0, string.Empty, IntPtr.Zero, 0));
         }, _tModalTarget: DispositionListContainer);
     }
     else
     {
         DispositionListView.gameObject.SetActive(false);
         ModalHelper.Close(modalKey);
     }
 }
Esempio n. 3
0
        public override void ShowList()
        {
            if (listView == null)
            {
                return;
            }

            listView.gameObject.SetActive(true);

            ModalKey = ModalHelper.Open(this, null, new Color(0, 0, 0, 0f), HideList, listView.transform as RectTransform);

            PopupListView();

            if (listView.Layout != null)
            {
                listView.Layout.UpdateLayout();
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Open.
        /// </summary>
        public void Open()
        {
            if (IsOpen)
            {
                return;
            }

            IsOpen = true;

            var parent = Utilites.FindTopmostCanvas(gameObject.transform);

            if (parent != null)
            {
                Parent = transform.parent;
                transform.SetParent(parent, true);
            }

            SiblingIndex = transform.GetSiblingIndex();

            ModalKey = ModalHelper.Open(this, ModalSprite, ModalColor, Close);

            transform.SetAsLastSibling();
            AdditionalButtonsBlock.SetActive(true);
        }
Esempio n. 5
0
 public void OpenModalWnd()
 {
     CloseModalWnd();
     m_ModalKey = ModalHelper.Open(this, null, null, null, this.transform as RectTransform);
     SetVisible(true);
 }