コード例 #1
0
 public override void Show(params object[] value)
 {
     base.Show(value);
     gameObject.SetActive(true);
     if (commonUIBottomButtonTool == null)
     {
         commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
         ShowBottomBtn();
     }
     else
     {
         commonUIBottomButtonTool.ShowAnim();
     }
     RoleAttributePanel.ShowAttributePanelInfo();
     RoleAttributePanel.transform.localPosition = Vector3.zero;
     InitPassiveSkill();
     if (roleInfoPanelModelView == null)
     {
         GameObject roleInfoPanelModelViewObj = GameObject.Instantiate(RoleInfoPanelModelViewPrefab) as GameObject;
         roleInfoPanelModelView = roleInfoPanelModelViewObj.GetComponent <RoleModelView_WithNewScene>();
         roleInfoPanelModelView.Init(RoleModelView_WithNewScene.PanelType.HeroInfoPanel);
         DragButton.SetDragCallback(roleInfoPanelModelView.OnDragBtnDrag);
     }
     else
     {
         roleInfoPanelModelView.Show();
     }
 }
コード例 #2
0
        IEnumerator ShowPanelInfoForSeconds()
        {
            yield return(new WaitForSeconds(0.5f));

            transform.localPosition = Vector3.zero;
            LoadingUI.Instance.Close();
            //if (roleViewPanel == null)
            //{
            //    roleViewPanel = (GameObject.Instantiate(HeroModelViewPrefab) as GameObject).GetComponent<RoleViewPanel>();
            //    roleViewPanel.SetPanelPosition(MyUICamera, RoleViewPoint);
            //}else
            //{
            //    roleViewPanel.Show();
            //}
            if (commonUIBottomButtonTool == null)
            {
                commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
                ShowBottomBtn();
            }
            else
            {
                commonUIBottomButtonTool.ShowAnim();
            }
            containerPackList.Show();
            heroEquiptItemList.ResetPanel(null);
        }
コード例 #3
0
 public void Init(EctypePanleManager myParent)
 {
     this.MyParent           = myParent;
     transform.localPosition = Vector3.zero;
     if (commonUIBottomButtonTool != null)
     {
         commonUIBottomButtonTool.ShowAnim();
     }
 }
コード例 #4
0
        //public override void Show()
        //{
        //    transform.localPosition = Vector3.zero;
        //    InitPanel();
        //    if (commonUIBottomButtonTool == null)
        //    {
        //        commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent<CommonUIBottomButtonTool>();
        //        ShowBottomBtn();
        //    }
        //    else
        //    {
        //        commonUIBottomButtonTool.ShowAnim();
        //    }
        //}

        public override void Show(params object[] value)
        {
            base.Show(value);
            InitPanel();
            if (commonUIBottomButtonTool == null)
            {
                commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
                ShowBottomBtn();
            }
            else
            {
                commonUIBottomButtonTool.ShowAnim();
            }
        }
コード例 #5
0
 public void Show()
 {
     transform.localPosition = Vector3.zero;
     SingleMartialArtsRoomPanelList.ApplyAllItem(P => P.Close());
     if (commonUIBottomButtonTool == null)
     {
         commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
         ShowBottomBtn();
     }
     else
     {
         commonUIBottomButtonTool.ShowAnim();
     }
     MyParent.SendGetRoomListMsgToSever();
 }
コード例 #6
0
        //public void SetPanelActive(int[] UIStatus)
        //{
        //    switch ((UIType)UIStatus[0])
        //    {
        //        case UIType.TrialsEctypePanel:
        //            ShowPanel();
        //            break;
        //        default:
        //            ClosePanel(null);
        //            break;
        //    }
        //}

        public override void Show(params object[] value)
        {
            SoundManager.Instance.StopBGM(0.0f);
            SoundManager.Instance.PlayBGM("Music_UIBG_TrialsEctype", 0.0f);
            if (commonUIBottomButtonTool == null)
            {
                commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
                ShowBottomBtn();
            }
            else
            {
                commonUIBottomButtonTool.ShowAnim();
            }
            InitPanel();
            NetServiceManager.Instance.EctypeService.SendGetTrialsEctypePanelInfo();
            TraceUtil.Log("发送打开试炼 副本列表请求");
            base.Show(value);
        }
コード例 #7
0
 public override void Show(params object[] value)
 {
     this.sMsgTradeOpenShop_SC  = (SMsgTradeOpenShop_SC)value[0];
     this.shopConfigData        = ShopDataManager.Instance.shopConfigDataBase._dataTable.FirstOrDefault(P => P._shopID == this.sMsgTradeOpenShop_SC.dwShopID);
     this.TitleLabel.spriteName = this.shopConfigData._shopName.Split('/')[1];
     this.shopGoodsListPanel.ShowGoodsList(this.sMsgTradeOpenShop_SC, this);
     this.shopSelectGoodsNumberPanel.ClosePanel();
     transform.localPosition = Vector3.zero;
     if (commonUIBottomButtonTool == null)
     {
         commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
         ShowBottomBtn();
     }
     else
     {
         commonUIBottomButtonTool.ShowAnim();
     }
     base.Show(value);
 }
コード例 #8
0
 public void Show()
 {
     transform.localPosition = Vector3.zero;
     if (commonUIBottomButtonTool == null)
     {
         commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
         ShowBottomBtn();
     }
     else
     {
         commonUIBottomButtonTool.ShowAnim();
     }
     if (roleViewPanel == null)
     {
         roleViewPanel = (GameObject.Instantiate(HeroModelViewPrefab) as GameObject).GetComponent <RoleViewPanel>();
         roleViewPanel.SetPanelPosition(MyUICamera, RoleViewPoint);
         roleViewPanel.SetRoleAttributePanelActive(false);
         roleViewPanel.SetRoleBackGroundPanelActive(false);
     }
     else
     {
         roleViewPanel.Show();
     }
 }