Пример #1
0
 /** 处理更换事件 */
 private void HandleReplaceEvent(GameObject gameObj)
 {
     if (fatherWindow is MountsWindow)
     {
         MountsWindow mountsWin = fatherWindow as MountsWindow;
         mountsWin.setButtonState(MountStoreContent.UN_SHOW_RIDE_MOUNT);
         mountsWin.changeTapPage(MountsWindow.TAP_STORE_CONTENT);
     }
 }
 /***/
 public override void DoClickEvent()
 {
     base.DoClickEvent();
     if (stateType == Bgeneralscrollview.ButtonStateType.ride)
     {
         // 与服务器通讯--骑乘
         (FPortManager.Instance.getFPort("MountsRideFPort") as MountsRideFPort).putOnMountsAccess(mounts.uid, () => {
             if (fatherWindow is MountsWindow)
             {
                 //激活坐骑
                 if (GuideManager.Instance.isEqualStep(134006000))
                 {
                     GuideManager.Instance.doGuide();
                     GuideManager.Instance.guideEvent();
                 }
                 MountsWindow win = fatherWindow as MountsWindow;
                 win.changeTapPage(MountsWindow.TAP_ATTR_CONTENT);
             }
             MaskWindow.UnlockUI();
         });
     }
     else if (stateType == Bgeneralscrollview.ButtonStateType.acitve)
     {
         // 与服务器通讯--激活
         (FPortManager.Instance.getFPort("MountsRideFPort") as MountsRideFPort).activeMountsAccess(mounts.sid, () => {
             UiManager.Instance.openDialogWindow <MessageLineWindow>((win) => {
                 win.Initialize(LanguageConfigManager.Instance.getLanguage("mount_active_success"));
             });
             if (fatherWindow is MountsWindow)
             {
                 //激活坐骑
                 if (GuideManager.Instance.isEqualStep(134005000))
                 {
                     GuideManager.Instance.doGuide();
                 }
                 MountsWindow win = fatherWindow as MountsWindow;
                 win.UpdateContent();
             }
         });
     }
     else if (stateType == Bgeneralscrollview.ButtonStateType.stop)
     {
         // 与服务器通讯--休息
         (FPortManager.Instance.getFPort("MountsRideFPort") as MountsRideFPort).putOffMountsAccess(() => {
             if (fatherWindow is MountsWindow)
             {
                 MountsWindow win = fatherWindow as MountsWindow;
                 win.changeTapPage(MountsWindow.TAP_ATTR_CONTENT);
             }
             MaskWindow.UnlockUI();
         });
     }
 }
Пример #3
0
 /** 处理选择事件 */
 private void HandleChooseEvent(GameObject gameObj)
 {
     if (fatherWindow is MountsWindow)
     {
         //选择坐骑
         if (GuideManager.Instance.isEqualStep(134004000))
         {
             GuideManager.Instance.doGuide();
         }
         MountsWindow mountsWin = fatherWindow as MountsWindow;
         mountsWin.changeTapPage(MountsWindow.TAP_STORE_CONTENT);
     }
 }