| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using vnxbqy.UI; |
| | | |
| | | //02 12 代码提示#tagNotifyCode |
| | | |
| | | |
| | | |
| | | public class DTC0212_tagNotifyCode : DtcBasic { |
| | | public class DTC0212_tagNotifyCode : DtcBasic
|
| | | { |
| | | |
| | | public override void Done(GameNetPackBasic vNetPack) { |
| | | public override void Done(GameNetPackBasic vNetPack)
|
| | | { |
| | | |
| | | base.Done(vNetPack); |
| | | |
| | | H0212_tagNotifyCode vNetData = vNetPack as H0212_tagNotifyCode; |
| | | |
| | | //抽奖时屏蔽 获得货币信息 |
| | | if (vNetData.Msg == "GetMoney" && ItemLogicUtility.Instance.hidePickItem)
|
| | | return; |
| | | |
| | | SysNotifyMgr.Instance.ReceiveNotifyCode(vNetData); |
| | | DebugEx.Log(vNetData.Msg); |
| | | |
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | ItemLogicUtility.Instance.hidePickItem = true; |
| | | model.OnOperationTimeUpdateEvent += operationTimeUpdateEvent; |
| | | model.PlayerTurntableEvent += OnPlayerTurntableEvent; |
| | | WindowCenter.Instance.windowAfterCloseEvent += WindowAfterCloseEvent; |
| | |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | ItemLogicUtility.Instance.hidePickItem = false; |
| | | model.OnOperationTimeUpdateEvent -= operationTimeUpdateEvent; |
| | | model.PlayerTurntableEvent -= OnPlayerTurntableEvent; |
| | | WindowCenter.Instance.windowAfterCloseEvent -= WindowAfterCloseEvent; |
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | ItemLogicUtility.Instance.hidePickItem = true; |
| | | GodKingGiftModel.Instance.awardShowSetp = -1; |
| | | GodKingGiftModel.Instance.selectedItems.Clear(); |
| | | |
| | |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | ItemLogicUtility.Instance.hidePickItem = false; |
| | | GodKingGiftModel.Instance.OnPlayerInfoEvent -= OnPlayerInfoEvent; |
| | | } |
| | | |
| | |
| | | |
| | | protected override void OnPreOpen()
|
| | | {
|
| | | ItemLogicUtility.Instance.hidePickItem = true;
|
| | | TreasurePavilionModel.Instance.isWinOpen = true;
|
| | | model.PowerUpdate += PowerUpdate;
|
| | | scroller.OnRefreshCell += OnRefreshCell;
|
| | |
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | ItemLogicUtility.Instance.hidePickItem = false;
|
| | | TreasurePavilionModel.Instance.isWinOpen = false;
|
| | | model.PowerUpdate -= PowerUpdate;
|
| | | scroller.OnRefreshCell -= OnRefreshCell;
|
| | |
| | | return true;
|
| | | }
|
| | | break;
|
| | | case HappXBTitle.YunShi1:
|
| | | case HappXBTitle.YunShi2:
|
| | | case HappXBTitle.YunShi3:
|
| | | case HappXBTitle.YunShi4:
|
| | | if (ModelCenter.Instance.GetModelEx<YunShiXBActModel>().isSkipXB)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | break;
|
| | | }
|
| | |
|
| | | XBNotifyParms.Add(new ArrayList(paramArray));
|
| | |
| | |
|
| | | public event Action<PackType, string> PickItemEvent; //捡起的物品
|
| | |
|
| | | |
| | | //用于过滤道具飘入表现 在不想出现物品飘动的界面 开启界面的时候设置true ,关闭界面设置false
|
| | | public bool hidePickItem = false;
|
| | | public void RefreshPickItem(PackType type, string itemIDStr)
|
| | | {
|
| | | if (WindowCenter.Instance.IsOpen("MergeServerTurntableWin") ||
|
| | | WindowCenter.Instance.IsOpen("GodKingRandomGiftWin")) |
| | | return;
|
| | | if (WindowCenter.Instance.IsOpen("TreasurePavilionWin"))
|
| | | if (hidePickItem)
|
| | | return;
|
| | |
|
| | | if (!DTC0403_tagPlayerLoginLoadOK.finishedLogin) return;
|
| | |
| | | {
|
| | | if (key != "GetMoney") return;
|
| | |
|
| | | if (ItemLogicUtility.Instance.hidePickItem)
|
| | | return;
|
| | |
|
| | | if (WindowCenter.Instance.IsOpen("GodKingRandomGiftWin"))
|
| | | {
|
| | | return;
|
| | |
| | | protected override void OnPreOpen()
|
| | | {
|
| | | WindowCenter.Instance.uiRoot.eventSystem.enabled = true;
|
| | | ItemLogicUtility.Instance.hidePickItem = true;
|
| | | happyXBModel.RefreshXBTypeInfoAct += OnRefreshXBTypeInfoAct;
|
| | | model.PlayAnimationSync += OnPlaySyncAnimation;
|
| | | packModel.refreshItemCountEvent += OnRefreshItemCountEvent;
|
| | |
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | ItemLogicUtility.Instance.hidePickItem = false;
|
| | | happyXBModel.RefreshXBTypeInfoAct -= OnRefreshXBTypeInfoAct;
|
| | | model.PlayAnimationSync -= OnPlaySyncAnimation;
|
| | | packModel.refreshItemCountEvent -= OnRefreshItemCountEvent;
|
| | |
| | |
|
| | | private void RefreshXBResult()
|
| | | {
|
| | | Display();
|
| | | if (model.isSkipXB)
|
| | | {
|
| | | ShowGetItem();
|
| | |
| | | transQian[i].transform.position = transStartQian[i].transform.position;
|
| | | transQian[i].transform.rotation = transStartQian[i].transform.rotation;
|
| | | }
|
| | | Display();
|
| | | }
|
| | |
|
| | | public void MoveAndDisappear()
|
| | |
| | | txtXBMany.text = Language.Get("YunShi07", funcSet.xbNums[1]);
|
| | | RefreshSkipUI();
|
| | | txtHasCnt.text = xbInfo.treasureCount.ToString();
|
| | |
|
| | | for (int i = 0; i < yunShiXBItems.Count; i++)
|
| | | {
|
| | | int gridIndex = i + 1;
|
| | | yunShiXBItems[i].Display(gridIndex);
|
| | | }
|
| | |
|
| | | for (int i = 0; i < model.AwardCellCount; i++)
|
| | | {
|
| | | if (i < list.Count)
|