Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Thursday, August 16, 2018
|
| | | // [ Date ]: Monday, September 03, 2018
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | |
| | | public int UnLockFuncID { get ; private set ; }
|
| | | public int ActiveMWID { get ; private set ; }
|
| | | public string ItemAward { get ; private set; }
|
| | | public string DescriptionMainWin { get ; private set; } |
| | |
|
| | | public override string getKey()
|
| | | {
|
| | |
| | | ActiveMWID=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0;
|
| | |
|
| | | ItemAward = rawContents[8].Trim();
|
| | | |
| | | DescriptionMainWin = rawContents[9].Trim();
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: 882666fd713678849aebb360643bfe19 |
| | | timeCreated: 1534419056 |
| | | timeCreated: 1535946483 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Monday, August 20, 2018
|
| | | // [ Date ]: Monday, September 03, 2018 |
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | |
| | | public int tokenId { get ; private set ; }
|
| | | public int tokenCount { get ; private set ; }
|
| | | public string description { get ; private set; }
|
| | | public string chestDesc { get ; private set; } |
| | |
|
| | | public override string getKey()
|
| | | {
|
| | |
| | | tokenCount=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
|
| | |
|
| | | description = rawContents[6].Trim();
|
| | | |
| | | chestDesc = rawContents[7].Trim(); |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: 95c6c6944c394ac4381e86d9ce3006fb |
| | | timeCreated: 1534744580 |
| | | timeCreated: 1535958653 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | |
|
| | | }
|
| | |
|
| | | public static void GotoKylin(int _achievementId)
|
| | | public static void GotoKylin_7(int _achievementId)
|
| | | {
|
| | | dailyQuestModel.currentDailyQuest = (int)DailyQuestType.Kirin;
|
| | | var dailyQuestState = dailyQuestModel.GetQuestState((int)DailyQuestType.Kirin);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public static void GotoKylin_49(int _achievementId)
|
| | | {
|
| | | var config = Config.Instance.Get<SuccessConfig>(_achievementId);
|
| | | var dungeon = new Dungeon(31190, config.Condition[0] - 1);
|
| | | dungeonModel.currentDungeon = dungeon;
|
| | | dungeonModel.selectedKylinDungeon = dungeon;
|
| | | guideAchievementId = _achievementId;
|
| | | }
|
| | |
|
| | | //日常界面本身有特效,这个是不要的
|
| | | public static void GotoGetDailyActiveValueAward(int _achievementId)
|
| | | {
|
| | |
| | | AchievementGoto.GotoFairyLand(_achievementId);
|
| | | break;
|
| | | case 7:
|
| | | AchievementGoto.GotoKylin_7(_achievementId);
|
| | | break;
|
| | | case 49:
|
| | | AchievementGoto.GotoKylin(_achievementId);
|
| | | AchievementGoto.GotoKylin_49(_achievementId);
|
| | | break;
|
| | | case 50:
|
| | | AchievementGoto.Goto50(_achievementId);
|
| | |
| | | blastFurnacePromoteUpdate();
|
| | | }
|
| | | }
|
| | |
|
| | | public bool IsMakeDrugWin { get;set; }
|
| | | public void CheckMakeDrugRedPoint(bool isLogin = false,bool isClick = false)
|
| | | {
|
| | | bool isCheckRed = false;
|
| | |
| | | {
|
| | | isCheckRed = true;
|
| | | }
|
| | | else if(PlayerDatas.Instance.baseData.LV > 151 && !isLogin)
|
| | | else if(PlayerDatas.Instance.baseData.LV > 151 && !isLogin && !IsMakeDrugWin)
|
| | | {
|
| | | isCheckRed = true;
|
| | | }
|
| | |
| | | {
|
| | | public class ChatCenter : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, ISwitchAccount
|
| | | {
|
| | | RealmModel realmModel { get { return ModelCenter.Instance.GetModel<RealmModel>(); } }
|
| | | public override void Init()
|
| | | {
|
| | | ParseConfig();
|
| | |
| | | }
|
| | | #endregion
|
| | |
|
| | | #region 境界渡劫私聊感谢
|
| | | private string[] realmThankChats = new string[7] {"ThankMessage1", "ThankMessage2", "ThankMessage3", "ThankMessage4",
|
| | | "ThankMessage5","ThankMessage6","ThankMessage7"};
|
| | | public void CheckSendRealmThanks()
|
| | | {
|
| | | try
|
| | | {
|
| | | var model = ModelCenter.Instance.GetModel<DungeonModel>();
|
| | | var realmConfig = Config.Instance.Get<RealmConfig>(realmModel.cacheRealmLv);
|
| | | if (model.dungeonResult.leaderID == PlayerDatas.Instance.baseData.PlayerID
|
| | | && realmConfig != null && realmConfig.IsBigRealm == 1)
|
| | | {
|
| | | var teamModel = ModelCenter.Instance.GetModel<TeamModel>();
|
| | | for (int i = 0; i < teamModel.myTeam.memberCount; i++)
|
| | | {
|
| | | Teammate teammate;
|
| | | if (teamModel.myTeam.TryGetMember(i, out teammate)
|
| | | && teammate.id != PlayerDatas.Instance.baseData.PlayerID && teammate.online)
|
| | | {
|
| | | ChatCtrl.Inst.PteChatID = (int)teammate.id;
|
| | | ChatCtrl.Inst.PteChatName = teammate.mateName;
|
| | | var content = realmThankChats[UnityEngine.Random.Range(0, 7)];
|
| | | ChatCtrl.Inst.SendChatInfo(ChatInfoType.Friend, Language.Get(content));
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | && dungeonResult.leaderID == PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | RealmBossShow.Instance.Open(realmModel.cacheRealmLv);
|
| | | ModelCenter.Instance.GetModel<ChatCenter>().CheckSendRealmThanks();
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | m_TargetNums[_index].text=StringUtility.Contact(UIHelper.ReplaceLargeNum((ulong)model.mission.totalExp), "/", UIHelper.ReplaceLargeNum((ulong)_targetValue)); |
| | | break; |
| | | } |
| | | m_TargetNums[_index].text = UIHelper.ReplaceLargeNum((ulong)model.mission.totalExp); |
| | | m_TargetNums[_index].text = StringUtility.Contact(UIHelper.ReplaceLargeNum((ulong)model.mission.totalExp), |
| | | model.mission.isFullExp == 1 ? StringUtility.Contact(" ", Language.Get("FullExp")) : string.Empty); |
| | | break; |
| | | case DungeonTargetType.Score: |
| | | if (_targetValue > 0) { |
| | |
| | |
|
| | | if (condition)
|
| | | {
|
| | | var guideEffect = AchievementGuideEffectPool.Require(1);
|
| | | var guideEffect = AchievementGuideEffectPool.Require(6);
|
| | | guideEffect.transform.SetParentEx(m_SingleStart.transform, Vector3.zero, Vector3.zero, Vector3.one);
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | NewBieCenter.Instance.RemoveNewBieGuide(TRIALEXCHANGE_GUIDE);
|
| | | }
|
| | | var tokenConfig = Config.Instance.Get<ItemConfig>(config.tokenId);
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),
|
| | | Language.Get("TokenUseConfirm", config.tokenCount, tokenConfig.ItemName, config.description), (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | //var tokenConfig = Config.Instance.Get<ItemConfig>(config.tokenId);
|
| | | //ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),
|
| | | // Language.Get("TokenUseConfirm", config.tokenCount, tokenConfig.ItemName, config.description), (bool isOk) =>
|
| | | // {
|
| | | // if (isOk)
|
| | | // {
|
| | | CA32F_tagCMTrialExchange pak = new CA32F_tagCMTrialExchange();
|
| | | pak.ID = (uint)_id;
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | | });
|
| | | // }
|
| | | // });
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | public class TrialExchangeBehaviour : MonoBehaviour
|
| | | {
|
| | | [SerializeField] RectTransform m_ContainerSpecial;
|
| | | [SerializeField] RectTransform m_ContainerNormal;
|
| | | [SerializeField] Image m_Bottom;
|
| | | [SerializeField] ItemCell m_Item;
|
| | | [SerializeField] Text m_Description;
|
| | | [SerializeField] Text m_SpecialDescription;
|
| | | [SerializeField] Text m_ChestDescription;
|
| | | [SerializeField] ItemBehaviour m_Token;
|
| | | [SerializeField] Button m_Exchange;
|
| | | [SerializeField] LongPressButton m_Exchange;
|
| | | [SerializeField] Image m_Redpoint;
|
| | | [SerializeField] Image m_Up;
|
| | | [SerializeField] Image m_Down;
|
| | |
| | | int trialExchangeId = 0;
|
| | | private void Awake()
|
| | | {
|
| | | m_Exchange.AddListener(Exchange);
|
| | | m_Exchange.onClick.AddListener(Exchange);
|
| | | m_Exchange.onPress.AddListener(LongPress);
|
| | | }
|
| | |
|
| | | private void Exchange()
|
| | |
| | | if (trialExchangeId != 0)
|
| | | {
|
| | | int error = 0;
|
| | | var config = Config.Instance.Get<TrialExchangeConfig>(trialExchangeId);
|
| | | if (config != null)
|
| | | {
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(model.GetExchangeItemByJob(config));
|
| | | ItemAttrData itemAttrData = new ItemAttrData(itemConfig.ID, true, (ulong)config.exchangeItemCount, -1, config.exchangeItemIsBind);
|
| | | ModelCenter.Instance.GetModel<ItemTipsModel>().SetItemTipsModel(itemAttrData, false);
|
| | | ModelCenter.Instance.GetModel<ItemTipsModel>().curAttrData.SetTipsFuncBtn(ItemWinBtnType.exchange,
|
| | | (ItemWinBtnType btnType, string value) =>
|
| | | {
|
| | | if (btnType == ItemWinBtnType.exchange)
|
| | | {
|
| | | if (!model.TrialSendExchange(trialExchangeId, out error))
|
| | | {
|
| | | if (error == 1)
|
| | | {
|
| | | var config = Config.Instance.Get<TrialExchangeConfig>(trialExchangeId);
|
| | | if (config != null)
|
| | | {
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(config.tokenId);
|
| | | }
|
| | | }
|
| | | }
|
| | | });
|
| | | ModelCenter.Instance.GetModel<ItemTipsModel>().ShowUICtrl();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void LongPress()
|
| | | {
|
| | | if (trialExchangeId != 0)
|
| | | {
|
| | | var config = Config.Instance.Get<TrialExchangeConfig>(trialExchangeId);
|
| | | if (config != null)
|
| | | {
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(model.GetExchangeItemByJob(config));
|
| | | if (itemConfig.EquipPlace == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | | ItemAttrData itemAttrData = new ItemAttrData(itemConfig.ID, true, (ulong)config.exchangeItemCount, -1, config.exchangeItemIsBind, true);
|
| | | ModelCenter.Instance.GetModel<ItemTipsModel>().SetItemTipsModel(itemAttrData);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void Display(int id, bool equipBetter = true, bool first = false)
|
| | | {
|
| | | m_Bottom.SetSprite(first ? "SpecialExchangeBottom" : "Title_PopupWindow");
|
| | | m_Bottom.SetSprite(first ? "XT_VIP_63" : "XT_VIP_63");
|
| | | m_ContainerSpecial.gameObject.SetActive(first);
|
| | | m_ContainerNormal.gameObject.SetActive(!first);
|
| | | trialExchangeId = id;
|
| | | var config = Config.Instance.Get<TrialExchangeConfig>(id);
|
| | | if (config == null)
|
| | |
| | | ModelCenter.Instance.GetModel<ItemTipsModel>().SetItemTipsModel(itemAttrData);
|
| | | });
|
| | | m_Description.text = config.description;
|
| | | if (m_SpecialDescription != null)
|
| | | {
|
| | | m_SpecialDescription.text = config.description;
|
| | | }
|
| | | if (m_ChestDescription != null)
|
| | | {
|
| | | m_ChestDescription.text = config.chestDesc;
|
| | | }
|
| | | m_Token.SetItem(config.tokenId, config.tokenCount);
|
| | | var count = model.GetTrialTokenCount(config.tokenId);
|
| | | m_Token.count.color = UIHelper.GetUIColor(count >= config.tokenCount ? TextColType.Green : TextColType.NavyBrown, true);
|
| | | m_Token.count.text = StringUtility.Contact(count >= config.tokenCount ? "<color=#109d06>" : string.Empty, count,
|
| | | count >= config.tokenCount ? "</color>" : string.Empty, "/", config.tokenCount);
|
| | | var equipCompare = model.EquipCompare(model.GetExchangeItemByJob(config));
|
| | | m_Up.gameObject.SetActive(equipCompare == 1);
|
| | | m_Down.gameObject.SetActive(equipCompare == -1);
|
| | |
| | | [SerializeField] Text m_SelectClass;
|
| | | [SerializeField] Button m_SelectClassUp;
|
| | | [SerializeField] TrialSelectClassBehaviour m_SelectClassBehaviour;
|
| | | [SerializeField] ItemBehaviour[] m_Tokens;
|
| | | [SerializeField] Text[] m_TokenCounts;
|
| | | //[SerializeField] ItemBehaviour[] m_Tokens;
|
| | | //[SerializeField] Text[] m_TokenCounts;
|
| | | [SerializeField] Button m_Close;
|
| | |
|
| | | TrialDungeonModel model { get { return ModelCenter.Instance.GetModel<TrialDungeonModel>(); } }
|
| | |
| | |
|
| | | void DisplayTokens()
|
| | | {
|
| | | var list = model.trialClassTokens.ContainsKey(model.selectEquipClass) ? model.trialClassTokens[model.selectEquipClass] : null;
|
| | | for (int i = 0; i < m_Tokens.Length; i++)
|
| | | {
|
| | | if (list != null && i < list.Count)
|
| | | {
|
| | | m_Tokens[i].gameObject.SetActive(model.selectEquipClass != 1);
|
| | | if (model.selectEquipClass != 1)
|
| | | {
|
| | | m_Tokens[i].SetItem(list[i], 0);
|
| | | m_TokenCounts[i].text = model.GetTrialTokenCount(list[i]).ToString();
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Tokens[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | //var list = model.trialClassTokens.ContainsKey(model.selectEquipClass) ? model.trialClassTokens[model.selectEquipClass] : null;
|
| | | //for (int i = 0; i < m_Tokens.Length; i++)
|
| | | //{
|
| | | // if (list != null && i < list.Count)
|
| | | // {
|
| | | // m_Tokens[i].gameObject.SetActive(model.selectEquipClass != 1);
|
| | | // if (model.selectEquipClass != 1)
|
| | | // {
|
| | | // m_Tokens[i].SetItem(list[i], 0);
|
| | | // m_TokenCounts[i].text = model.GetTrialTokenCount(list[i]).ToString();
|
| | | // }
|
| | | // }
|
| | | // else
|
| | | // {
|
| | | // m_Tokens[i].gameObject.SetActive(false);
|
| | | // }
|
| | | //}
|
| | | }
|
| | |
|
| | | private void SelectEquipClassEvent()
|
| | |
| | | }
|
| | | m_ContainerKilled.gameObject.SetActive(killed && opened);
|
| | | m_ContainerKilling.gameObject.SetActive(!killed && opened);
|
| | | m_BossPortrait.material = opened ? m_SmoothMask.imageMaterials[0] : m_SmoothMask.imageMaterials[1];
|
| | | m_BossPortrait.material = opened && !killed ? m_SmoothMask.imageMaterials[0] : m_SmoothMask.imageMaterials[1];
|
| | | m_ContainerMapName.gameObject.SetActive(!opened);
|
| | | }
|
| | |
|
| | |
| | | var error = 0;
|
| | | if (model.TestEnterDungeon(model.selectBoss, out error))
|
| | | {
|
| | | if (IsBossKilled(model.selectBoss))
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FairyGrabBossOver");
|
| | | }
|
| | | WindowJumpMgr.Instance.ClearJumpData();
|
| | | WindowCenter.Instance.Close<LootPreciousFrameWin>();
|
| | | MapTransferUtility.Instance.MoveToNPC(model.selectBoss);
|
| | |
| | | {
|
| | | model.DisplayErrorTip(error);
|
| | | }
|
| | | }
|
| | |
|
| | | bool IsBossKilled(int bossId)
|
| | | {
|
| | | FairyGrabBossModel.BossProgressInfo bossProgress;
|
| | | bool killed = false;
|
| | | if (model.TryGetBossProgress(bossId, out bossProgress))
|
| | | {
|
| | | var progress = 1 - (float)bossProgress.currentHp / bossProgress.totalHp;
|
| | | killed = progress >= 1;
|
| | | }
|
| | | return killed;
|
| | | }
|
| | |
|
| | | private void KillRecord()
|
| | |
| | |
|
| | | void BossAllProgressUpdate()
|
| | | {
|
| | | if (!autoSelect)
|
| | | if (!autoSelect && model.InActivityTime)
|
| | | {
|
| | | AutoSelect();
|
| | | }
|
| | | autoSelect = true;
|
| | | }
|
| | |
|
| | | private void StateUpdate()
|
| | |
| | |
|
| | | void AutoSelect()
|
| | | {
|
| | | autoSelect = true;
|
| | | var index = 0;
|
| | | for (int i = 0; i < model.bosses.Count; i++)
|
| | | {
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.fairy == null) return;
|
| | | _FamilyPosition = (int)PlayerDatas.Instance.fairyData.mine.FamilyLV;
|
| | | if (_FamilyPosition >= 2)
|
| | | {
|
| | | _UpdateBtn.gameObject.SetActive(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | _UpdateBtn.gameObject.SetActive(false);
|
| | | }
|
| | | AssignValueToRefresh();//属性赋值和刷新
|
| | | }
|
| | |
|
| | |
| | | CA607_tagCMFamilyTechLVUP tag_CA607 = new CA607_tagCMFamilyTechLVUP();
|
| | | tag_CA607.TechID = (uint)indexID;
|
| | | GameNetSystem.Instance.SendInfo(tag_CA607);
|
| | |
|
| | | DebugEx.LogError("输出心法科技需要提升的技能IndexID"+ indexID);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | private void IsShowRedPoint()
|
| | | {
|
| | | int GetDayOfYear = DateTime.Now.DayOfYear;
|
| | | string strKey= "Treasure"+ PlayerDatas.Instance.baseData.LV;
|
| | | string strKey= "Treasure"+ PlayerDatas.Instance.baseData.PlayerID;
|
| | | int day = LocalSave.GetInt(strKey);
|
| | | if (day != GetDayOfYear && IsEquipmentComparison())
|
| | | {
|
| | |
| | | }
|
| | | private void FairyAuMethodRedPoint()//仙盟心法红点
|
| | | {
|
| | | if (!fairyModel.fairyMethodToOpen || MethodRedPointBtnDic.Count == 0)
|
| | | if (MethodRedPointBtnDic.Count == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | MethodRedPointBtnDic[key].state = RedPointState.None;
|
| | | }
|
| | |
|
| | | if (!fairyModel.fairyMethodToOpen)
|
| | | {
|
| | | return;
|
| | | }
|
| | | foreach (var key in _DicSkill.Keys)
|
| | | {
|
| | | if (MethodDataNeedLVDic.ContainsKey(_DicSkill[key].id) && PlayerDatas.Instance.baseData.LV >= MethodDataNeedLVDic[_DicSkill[key].id])
|
| | |
| | | FuncConfigConfig expFormula = Config.Instance.Get<FuncConfigConfig>("ExpValueDes");
|
| | | expValueFormula = expFormula.Numerical1;
|
| | |
|
| | | FuncConfigConfig funcConfig = Config.Instance.Get<FuncConfigConfig>("VipGiftTreasureEffect");
|
| | |
|
| | | #region 灵宠坐骑解锁
|
| | | unlockPetDict = new Dictionary<int, PetInfoConfig>();
|
| | | petSkillDict.Clear();
|
| | |
| | | presentIndex = 0;
|
| | | CreateCell();
|
| | | CheckJumpToModel();
|
| | | ModelCenter.Instance.GetModel<BlastFurnaceModel>().IsMakeDrugWin = true;
|
| | | }
|
| | |
|
| | | private void OnDisable()
|
| | | {
|
| | | ctrl.OnRefreshCell -= RefreshMakeDrugCell;
|
| | | ModelCenter.Instance.GetModel<BlastFurnaceModel>().IsMakeDrugWin = false;
|
| | | }
|
| | |
|
| | | private void CheckJumpToModel()
|
| | |
| | | { |
| | | int MapID = PlayerDatas.Instance.baseData.MapID; |
| | | var config = Config.Instance.Get<MapConfig>(MapID);
|
| | | if (fairyGrabBossModel.grabBossHintOpen)//再前四章新手地图且在活动区域
|
| | | var activityline = 0;
|
| | | fairyGrabBossModel.TryGetFairyGrabBossLine(out activityline);
|
| | | if (activityline == PlayerDatas.Instance.baseData.FBID)//再前四章新手地图且在活动区域
|
| | | {
|
| | | AtkTypeList = new int[] { 0, 5 };
|
| | | }
|
| | |
| | | bool IsBossBool = MapArea.IsInMapArea(PlayerDatas.Instance.hero.CurMapArea, MapArea.E_Type.Boss);//是否在Boss区域 |
| | | _PkButton.StateSelection.AddListener(() => |
| | | {
|
| | | if (PlayerDatas.Instance.baseData.MapID == 10040 && IsBossBool)//御剑山庄boss区域特殊处理(可切换状态)
|
| | | {
|
| | | DTCA202_tagMCAttackMode.Send_SwitchAttackMode((E_AttackMode)cell.index);
|
| | | Close();
|
| | | return;
|
| | | }
|
| | | if (onMainModel.ActivityList.Contains(PlayerDatas.Instance.baseData.MapID) && !fairyGrabBossModel.grabBossHintOpen)//再前四章新手地图且不在活动区域
|
| | | {
|
| | | Close();//不允许切换
|
| | | return;
|
| | | } |
| | | DTCA202_tagMCAttackMode.Send_SwitchAttackMode((E_AttackMode)cell.index); |
| | | Close(); |
| | | }); |
| | |
| | | break; |
| | | default: |
| | | break; |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | private void OnSwitchAttackMode(E_AttackMode obj)//PK状态切换
|
| | | {
|
| | | TextSwitch((int)obj);
|
| | | |
| | | }
|
| | | void PatternButton(GameObject obj)
|
| | | {
|
| | |
| | | }
|
| | | return;
|
| | | }
|
| | | if (onMainModel.ActivityList.Contains(PlayerDatas.Instance.baseData.MapID) && !fairyGrabBossModel.grabBossHintOpen)//再前四章新手地图且不在活动区域
|
| | | var activityline = 0;
|
| | | fairyGrabBossModel.TryGetFairyGrabBossLine(out activityline);
|
| | | if (onMainModel.ActivityList.Contains(PlayerDatas.Instance.baseData.MapID) && activityline!=PlayerDatas.Instance.baseData.FBID)//再前四章新手地图且不在活动区域
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("Map_AtkType");
|
| | | return;
|
| | |
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("Map_AtkType");
|
| | | }
|
| | |
|
| | | }
|
| | | void TextSwitch(int _EnumType)
|
| | | {
|
| | |
| | | break;
|
| | | default:
|
| | | break;
|
| | |
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | void BuffButton(GameObject obj)
|
| | |
| | | break;
|
| | | default:
|
| | | break;
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
| | | private void bossGrabHintEvent()
|
| | | {
|
| | | IsShowTaskPanel();
|
| | | int mapID = PlayerDatas.Instance.baseData.MapID;
|
| | | var config = Config.Instance.Get<MapConfig>(mapID);
|
| | | if (fairyGrabBossModel.grabBossHintOpen)
|
| | | {
|
| | | if (Buffmodel.PkType != config.Camp)
|
| | | {
|
| | | DTCA202_tagMCAttackMode.Send_SwitchAttackMode((E_AttackMode)config.Camp);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | if (Buffmodel.PkType != config.Camp)
|
| | | {
|
| | | DTCA202_tagMCAttackMode.Send_SwitchAttackMode((E_AttackMode)config.Camp);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | void DefaultDialogue()//关于打开默认对话界面
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding || ModelCenter.Instance.GetModel<TreasureModel>().newGotShowing)
|
| | | {
|
| | | return;
|
| | | }
|
| | | bool IsOpenMain = WindowCenter.Instance.CheckOpen<MainInterfaceWin>();
|
| | | if (!WindowCenter.Instance.CheckOpen<DefaultDialogueBoxWin>() && IsOpenMain)
|
| | | {
|
| | |
| | | PlayerPackModel playerPack { get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>()); } }
|
| | | PlayerMainDate m_MainModel;
|
| | | PlayerMainDate mainModel { get { return m_MainModel ?? (m_MainModel = ModelCenter.Instance.GetModel<PlayerMainDate>()); } }
|
| | | List<int> RenzhuTaskIDList = new List<int>();//法宝任务数组ID
|
| | | List<int> ListSort = new List<int>();//用于排列顺序(未卡级)
|
| | | List<int> ListSort1 = new List<int>();//用于排序(卡级)
|
| | | private void Start()
|
| | |
| | | ListSort1.Add(TaskSortType2[i]);
|
| | | }
|
| | | }
|
| | | if (RenzhuTaskIDList.Count <= 0)
|
| | | {
|
| | | int[] RenzhuTaskID1 = ConfigParse.GetMultipleStr<int>(RenzhuTaskID.Numerical1);
|
| | | for (int i = 0; i < RenzhuTaskID1.Length; i++)
|
| | | {
|
| | | RenzhuTaskIDList.Add(RenzhuTaskID1[i]);
|
| | | }
|
| | | }
|
| | |
|
| | | PlayerTaskDatas.Event_TaskToAdd += TaskToAdd;//任务的添加
|
| | | PlayerTaskDatas.Event_TaskRefreshes += TaskRefreshes;//任务的刷新
|
| | | PlayerTaskDatas.Event_TaskToDelete += OnTaskToDelete;//任务的删除
|
| | |
| | | TaskScheduling();
|
| | | bool IsDefault = true;
|
| | | var State = taskmodel.GetTaskStatus(_id);
|
| | | if (State == PlayerTaskDatas.TaskStatus.CardLevel || (State == PlayerTaskDatas.TaskStatus.TreasureCardLevel && !RenzhuTaskIDList.Contains(_id)))
|
| | | if (State == PlayerTaskDatas.TaskStatus.CardLevel)
|
| | | {
|
| | | IsDefault = false;
|
| | | }
|
| | |
| | | foreach (var key in taskmodel.MainTaskDic.Keys)
|
| | | {
|
| | | var State = taskmodel.GetTaskStatus(key);
|
| | | if (State == PlayerTaskDatas.TaskStatus.CardLevel || (State == PlayerTaskDatas.TaskStatus.TreasureCardLevel && !RenzhuTaskIDList.Contains(key)))
|
| | | if (State == PlayerTaskDatas.TaskStatus.CardLevel)
|
| | | {
|
| | | IsDefault = false;
|
| | | }
|
| | |
| | |
|
| | | [SerializeField]
|
| | | Button buyCountBtn;
|
| | | #endregion
|
| | |
|
| | | [SerializeField]
|
| | | Button buyBtn;
|
| | | RectTransform btnGroup;
|
| | | [SerializeField]
|
| | | GameObject operateBtn;
|
| | | #endregion
|
| | |
|
| | | [SerializeField] Text buyBtnText;
|
| | |
|
| | |
| | | shopItemLimit = m_storeModel.GetBuyShopLimit((uint)buyItem.storeConfig.ID);
|
| | | InitUI();
|
| | | closeBtn.AddListener(OnClickCloseBtn);
|
| | | buyBtn.AddListener(OnClickBuyBtn);
|
| | | reduceBtn.onClick.AddListener(OnClickReduceBuyNum);
|
| | | plusBtn.onClick.AddListener(OnClickPlusBuyNum);
|
| | | buyCountBtn.onClick.AddListener(OnClickCountBtn);
|
| | |
| | | }
|
| | | #endregion
|
| | |
|
| | | CreateFuncBtn();
|
| | | }
|
| | |
|
| | | private void OnDisable()
|
| | | {
|
| | | closeBtn.RemoveAllListeners();
|
| | | buyBtn.RemoveAllListeners();
|
| | | reduceBtn.RemoveAllListeners();
|
| | | plusBtn.RemoveAllListeners();
|
| | | buyCountBtn.RemoveAllListeners();
|
| | |
| | |
|
| | | if (curVipIndex != -1)
|
| | | {
|
| | | buyBtn.gameObject.SetActive(true);
|
| | | btnGroup.gameObject.SetActive(true);
|
| | | buyCnt = buyItem.GetCurBuyCnt(1, canBuyCnt, isVipBuy, out isReachUpper);
|
| | | }
|
| | | else
|
| | | {
|
| | | buyBtn.gameObject.SetActive(false);
|
| | | btnGroup.gameObject.SetActive(false);
|
| | | buyCnt = buyItem.GetCurBuyCnt(0, canBuyCnt, isVipBuy, out isReachUpper);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | vipInfoText.gameObject.SetActive(false);
|
| | | buyBtn.gameObject.SetActive(true);
|
| | | btnGroup.gameObject.SetActive(true);
|
| | | buyCnt = buyItem.GetCurBuyCnt(1, canBuyCnt, isVipBuy, out isReachUpper);
|
| | | }
|
| | |
|
| | | buyCountText.text = buyCnt.ToString();
|
| | | RefreshBuyPrice(buyCnt);
|
| | | moneyIcon.SetIconWithMoneyType(buyItem.storeConfig.MoneyType);
|
| | |
|
| | | m_storeModel.SetBuyCnt(buyCnt);
|
| | | }
|
| | |
|
| | | private void CreateFuncBtn()
|
| | | {
|
| | | btnGroup.anchoredPosition3D = Vector3.zero;
|
| | | if (itemAttrData.tipsFuncBtnDic.Count > 0)
|
| | | {
|
| | | foreach (ItemWinBtnType key in itemAttrData.tipsFuncBtnDic.Keys)
|
| | | {
|
| | | Button btn = OnGUIButton(btnGroup.gameObject, operateBtn, key.ToString(), Language.Get(StringUtility.Contact("ItemHandle_", key.ToString())));
|
| | | btn.RemoveAllListeners();
|
| | | btn.onClick.AddListener(() => {
|
| | | OnClickCloseBtn();
|
| | | itemAttrData.tipsFuncBtnDic[key](key, "");
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private Button OnGUIButton(GameObject parent, GameObject sourceBtn, string btnName, string textName)
|
| | | {
|
| | | GameObject go = Instantiate(sourceBtn);
|
| | | go.name = btnName;
|
| | | go.transform.SetParent(parent.transform);
|
| | | go.transform.Find("BtnText").GetComponent<Text>().text = textName;
|
| | | go.transform.localPosition = Vector3.zero;
|
| | | go.transform.localScale = Vector3.one;
|
| | | Button btn = go.GetComponent<Button>();
|
| | | go.SetActive(true);
|
| | | KnapSackEventMgr.Instance.SetEquipWinTempObj(go);
|
| | | return btn;
|
| | | }
|
| | |
|
| | |
|
| | | private void SetBottomText(EquipSource source)
|
| | | {
|
| | |
| | | {
|
| | | buyCountText.text = buyCnt.ToString();
|
| | | numKeyboard.gameObject.SetActive(false);
|
| | | m_storeModel.SetBuyCnt(buyCnt);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | buyCnt = buyItem.GetCurBuyCnt(buyCnt, GetRemainBuyCnt(), isVipBuy, out isReachUpper);
|
| | | buyCountText.text = buyCnt.ToString();
|
| | | RefreshBuyPrice(buyCnt);
|
| | | m_storeModel.SetBuyCnt(buyCnt);
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | |
| | | buyCnt = buyItem.GetCurBuyCnt(buyCnt, GetRemainBuyCnt(), isVipBuy, out isReachUpper);
|
| | | buyCountText.text = buyCnt.ToString();
|
| | | RefreshBuyPrice(buyCnt);
|
| | | }
|
| | |
|
| | | private void OnClickBuyBtn()
|
| | | {
|
| | | |
| | | if (shopItemLimit != null)
|
| | | {
|
| | | int remainNum = 0;
|
| | | if (isVipBuy)
|
| | | {
|
| | | remainNum = buyItem.storeConfig.PurchaseNumber[curVipIndex] - shopItemLimit.BuyCnt;
|
| | | }
|
| | | else
|
| | | {
|
| | | remainNum = buyItem.storeConfig.PurchaseNumber[0] - shopItemLimit.BuyCnt;
|
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | | }
|
| | | m_storeModel.SendBuyShopItem(buyItem.storeConfig, buyCnt);
|
| | | OnClickCloseBtn();
|
| | | m_storeModel.SetBuyCnt(buyCnt);
|
| | | }
|
| | |
|
| | | private void OnClickCloseBtn()
|
| | |
| | | //SetOpenBuyType(chinModel);
|
| | | ItemAttrData attrData = new ItemAttrData(ReplaceItemIdByJob(shopInfo.ID,shopInfo.ItemID),true, (ulong)shopInfo.ItemCnt,-1,shopInfo.IsBind,true,PackType.rptDeleted
|
| | | ,"",null,ItemTipChildType.Buy);
|
| | | itemTipsModel.SetItemTipsModel(attrData);
|
| | | itemTipsModel.SetItemTipsModel(attrData,false);
|
| | | attrData.SetTipsFuncBtn(ItemWinBtnType.buy,(ItemWinBtnType type ,string id) => { OnClickBuyBtn(ItemWinBtnType.buy, shopInfo.ID); });
|
| | | itemTipsModel.ShowUICtrl();
|
| | | }
|
| | |
|
| | | public int BuyCnt { get; private set; }
|
| | | public void SetBuyCnt(int buyCnt)
|
| | | {
|
| | | BuyCnt = buyCnt;
|
| | | }
|
| | | private void OnClickBuyBtn(ItemWinBtnType type, int shopId)
|
| | | {
|
| | | BuyShopItemLimit shopItemLimit = GetBuyShopLimit((uint)shopId);
|
| | | StoreConfig storeConfig = Config.Instance.Get<StoreConfig>(shopId);
|
| | | int curVipIndex = -1;
|
| | | int nextVipIndex = -1;
|
| | | bool isVipBuy = BuyItemPopModel.Instance.CheckIsVipBuy(storeConfig, out curVipIndex, out nextVipIndex);
|
| | | if (shopItemLimit != null)
|
| | | {
|
| | | int remainNum = 0;
|
| | | if (isVipBuy)
|
| | | {
|
| | | remainNum = storeConfig.PurchaseNumber[curVipIndex] - shopItemLimit.BuyCnt;
|
| | | }
|
| | | else
|
| | | {
|
| | | remainNum = storeConfig.PurchaseNumber[0] - shopItemLimit.BuyCnt;
|
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | | }
|
| | | SendBuyShopItem(storeConfig,BuyCnt);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | if (value == TreasureShowStep.UnLock)
|
| | | {
|
| | | m_ProgressPosTween.SetEndState();
|
| | | m_PotentialSclTween.SetEndState();
|
| | | UI3DTreasureSelectStage.Instance.SetEndState();
|
| | | }
|
| | | return;
|
| | |
| | | OnEnterPotential();
|
| | | m_ProgressPosTween.SetEndState();
|
| | | m_AchievementPosTween.SetEndState();
|
| | | m_PotentialSclTween.SetEndState();
|
| | |
|
| | |
|
| | | UI3DTreasureSelectStage.Instance.Tween(() =>
|
| | |
| | | using TableConfig;
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using LitJson;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
| | | bool dirty = false;
|
| | |
|
| | | int m_DisplayTreasureId = 0;
|
| | | int displayTreasureId {
|
| | | int displayTreasureId
|
| | | {
|
| | | get { return m_DisplayTreasureId; }
|
| | | set {
|
| | | set
|
| | | {
|
| | | if (m_DisplayTreasureId != value)
|
| | | {
|
| | | m_DisplayTreasureId = value;
|
| | |
| | | }
|
| | |
|
| | | DisplayState m_DisplayState = DisplayState.None;
|
| | | DisplayState displayState {
|
| | | DisplayState displayState
|
| | | {
|
| | | get { return m_DisplayState; }
|
| | | set {
|
| | | set
|
| | | {
|
| | | if (m_DisplayState != value)
|
| | | {
|
| | | m_DisplayState = value;
|
| | |
| | | }
|
| | |
|
| | | int m_EffectState = 0;
|
| | | int effectState {
|
| | | int effectState
|
| | | {
|
| | | get { return m_EffectState; }
|
| | | set {
|
| | | set
|
| | | {
|
| | | if (m_EffectState != value)
|
| | | {
|
| | | m_EffectState = value;
|
| | |
| | | m_Description.text = Language.Get("FabaoState_Text_3");
|
| | | break;
|
| | | case DisplayState.AwakenUnderway:
|
| | | var progress = 1f;
|
| | | if (treasure != null && config.PreferredStage != 0)
|
| | | {
|
| | | progress = (float)treasure.stage / config.PreferredStage;
|
| | | }
|
| | |
|
| | | m_Description.text = Language.Get("FabaoState_Text_4", Mathf.RoundToInt(progress * 100f));
|
| | | DisplayTreasureUpStage(treasure.GetStageId(treasure.stage + 1));
|
| | | break;
|
| | | case DisplayState.WaitUnLock:
|
| | | Achievement achievement = null;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayTreasureUpStage(int _stage)
|
| | | {
|
| | | var config = Config.Instance.Get<TreasureUpConfig>(_stage);
|
| | | if (config != null)
|
| | | {
|
| | | var json = JsonMapper.ToObject(config.DescriptionMainWin);
|
| | | var job = PlayerDatas.Instance.baseData.Job;
|
| | |
|
| | | if (json.Keys.Contains(job.ToString()))
|
| | | {
|
| | | m_Description.text = json[job.ToString()].ToString();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Description.text = json["0"].ToString();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | enum DisplayState
|
| | | {
|
| | | None,
|
| | |
| | | treasureStages.Add(_stage);
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | public void UpdateTreasureLevelExp(int _lv, int _exp, bool _hasClickChallenge)
|
| | | {
|
| | | stage = _lv;
|
| | |
| | | return false;
|
| | | }
|
| | | return stage >= _stage.stage;
|
| | | }
|
| | |
|
| | | public int GetStageId(int _stageIndex)
|
| | | {
|
| | | foreach (var item in treasureStages)
|
| | | {
|
| | | if (item.stage == _stageIndex)
|
| | | {
|
| | | return item.id;
|
| | | }
|
| | | }
|
| | |
|
| | | return 0;
|
| | | }
|
| | |
|
| | | public int GetStageIndex(int _stage)
|
| | |
| | |
|
| | | public class TreasureStage
|
| | | {
|
| | | public int id { get; private set; }
|
| | |
|
| | | public int stage { get; set; }
|
| | | public TreasureStageUnlock unlockType { get; private set; }
|
| | | public Dictionary<int, int> propertyDict { get; private set; }
|
| | |
| | | public const int selectedSfxId = 5144;
|
| | | public string sfxGotState { get; private set; }
|
| | | public string sfxUnGotState { get; private set; }
|
| | |
|
| | | public TreasureStage(TreasureUpConfig _config)
|
| | | {
|
| | | id = _config.ID;
|
| | | unlockType = TreasureStageUnlock.None;
|
| | | if (_config.UnLockFuncID != 0)
|
| | | {
|
| | |
| | | }
|
| | | m_GetTreasureBtn.gameObject.SetActive(!_unlockAchievement || achievement.completed);
|
| | | m_ContainerLimit.gameObject.SetActive(_unlockAchievement && !achievement.completed);
|
| | |
|
| | | if (model.IsVersionUnOpenTreasure(m_Treasure.id))
|
| | | {
|
| | | m_TreasureChallengeLimit.text = Language.Get("TreasureNoOpen");
|
| | | return;
|
| | | }
|
| | |
|
| | | if (_unlockAchievement && !achievement.completed)
|
| | | {
|
| | | var _achievementConfig = Config.Instance.Get<SuccessConfig>(_achievementId);
|
| | |
| | | List<int> eightFurnacesAchievements = new List<int>();
|
| | | List<int> m_CacheGotAchievements = new List<int>();
|
| | | Dictionary<int, int> treasureStageShowDict = new Dictionary<int, int>();
|
| | | List<int> treasureUnOpens = new List<int>();//版本未开放法宝
|
| | |
|
| | | public Dictionary<int, int> fairyTreasureGetDict { get; private set; }
|
| | |
|
| | |
| | | return eightFurnacesAchievements;
|
| | | }
|
| | |
|
| | | public bool IsVersionUnOpenTreasure(int _id)
|
| | | {
|
| | | return treasureUnOpens.Contains(_id);
|
| | | }
|
| | |
|
| | | private void ParseConfigs()
|
| | | {
|
| | | var treasureConfigs = Config.Instance.GetAllValues<TreasureConfig>();
|
| | |
| | | treasureBackPercent = float.Parse(funcConfig.Numerical2);
|
| | | funcConfig = Config.Instance.Get<FuncConfigConfig>("TreasureExitLimit");
|
| | | treasureExitLvLimit = int.Parse(funcConfig.Numerical1);
|
| | |
|
| | | funcConfig = Config.Instance.Get<FuncConfigConfig>("TreasureNoOpen");
|
| | | treasureUnOpens.AddRange(ConfigParse.GetMultipleStr<int>(funcConfig.Numerical1));
|
| | | }
|
| | |
|
| | | const string pattern = "\\\"[0-9]\\\":\\[[0-9|,]*\\]";
|
| | |
| | | private void IsShowRedPointSimple()
|
| | | {
|
| | | int GetDayOfYear = DateTime.Now.DayOfYear;
|
| | | string strKey = "IsOpenFiaryJadeRedPoint" + PlayerDatas.Instance.baseData.LV;
|
| | | string strKey = "IsOpenFiaryJadeRedPoint" + PlayerDatas.Instance.baseData.PlayerID;
|
| | | int day = LocalSave.GetInt(strKey);
|
| | | if (day != GetDayOfYear)
|
| | | {
|
| | |
| | | private void IsShowRedPointSimple()
|
| | | {
|
| | | int GetDayOfYear = DateTime.Now.DayOfYear;
|
| | | string strKey = "IsOpenVipRedPoint" + PlayerDatas.Instance.baseData.LV;
|
| | | string strKey = "IsOpenVipRedPoint" + PlayerDatas.Instance.baseData.PlayerID;
|
| | | int day = LocalSave.GetInt(strKey);
|
| | | if (day != GetDayOfYear)
|
| | | {
|
| | |
| | | private Dictionary<int, List<string>> openWindows = new Dictionary<int, List<string>>();
|
| | | private Dictionary<int, string> jumpWinNameDict = new Dictionary<int, string>();
|
| | | PlayerPetDatas m_petModel;
|
| | | PlayerPetDatas petmodel {
|
| | | get {
|
| | | PlayerPetDatas petmodel
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_petModel ?? (m_petModel = ModelCenter.Instance.GetModel<PlayerPetDatas>());
|
| | | }
|
| | | }
|
| | |
| | | case JumpUIType.UnionTask2:
|
| | | case JumpUIType.UnionActive1:
|
| | | case JumpUIType.UnionActive2:
|
| | | case JumpUIType.UnionBoss:
|
| | | if (!PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("DailyQuestwinUnionLimit");
|
| | |
| | | if (!trialDungeonModel.CompleteTrialFloor(0))
|
| | | {
|
| | | trialDungeonModel.ProcessOpenTrialExchangeError();
|
| | | return;
|
| | | }
|
| | | break;
|
| | | case JumpUIType.Kylin:
|
| | | if (!FuncOpen.Instance.IsFuncOpen(85))
|
| | | {
|
| | | FuncOpen.Instance.ProcessorFuncErrorTip((int)FuncOpenEnum.Kylin);
|
| | | return;
|
| | | }
|
| | | break;
|
| | |
| | | case JumpUIType.UnionActive2:
|
| | | SetJumpLogic<UnionTaskWin>(_tagWinSearchModel.TABID);
|
| | | break;
|
| | | case JumpUIType.UnionBoss:
|
| | | SetJumpLogic<FairyBoss>(_tagWinSearchModel.TABID);
|
| | | break;
|
| | | case JumpUIType.RealmPractice1:
|
| | | case JumpUIType.RealmPractice2:
|
| | | SetJumpLogic<RealmWin>(_tagWinSearchModel.TABID);
|
| | |
| | | break;
|
| | | case JumpUIType.TreasureCollectSoul:
|
| | | SetJumpLogic<TreasureLevelUpWin>(0);
|
| | | break;
|
| | | case JumpUIType.Kylin:
|
| | | SetJumpLogic<MultipleDifficultyDungeonWin>(0);
|
| | | break;
|
| | | case JumpUIType.VipRechargeFunc3:
|
| | | case JumpUIType.OSTimeLimitGift:
|
| | |
| | | }
|
| | | private void SecondRefresh()
|
| | | {
|
| | | if (DeadModel.playerIsDie && WindowCenter.Instance.CheckOpen<MainInterfaceWin>())
|
| | | if (DeadModel.playerIsDie |
| | | && WindowCenter.Instance.CheckOpen<MainInterfaceWin>()
|
| | | && dungeonModel.dungeonFightStage != DungeonFightStage.ExitPrepare)
|
| | | {
|
| | | if(!WindowCenter.Instance.CheckOpen<RebornWin>()
|
| | | && !WindowCenter.Instance.CheckOpen<ReliveWin>()
|
| | |
| | | MountStone = 65,
|
| | | MountSkill = 66,
|
| | | MountAppearance = 67,
|
| | | UnionBoss = 68, //仙盟Boss界面
|
| | | IceCrystal = 69, //冰晶矿脉
|
| | | FairyLand = 70, //仙界秘境
|
| | | GridExtend = 71,
|
| | |
| | | OpenServerGift2 = 224, //超值礼包2
|
| | | OpenServerGift3 = 225, //超值礼包3
|
| | | TreasureCollectSoul = 226,//法宝集魂
|
| | | Kylin = 227,//跳转到麒麟之府, 不配置选中任何层
|
| | | DhszTs = 1001,//定海神针功法提升界面
|
| | | HyqTs = 1002,//皓月枪功法提升界面
|
| | | GyzTs = 1003,//鬼牙刃功法提升界面
|