| System/Dungeon/TrialDungeonModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/TrialExchangeBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/TrialExchangeBehaviour.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/TrialExchangeCell.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/TrialExchangeCell.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/TrialExchangeTitleCell.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/TrialExchangeTitleCell.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/TrialExchangeWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/MainInterfacePanel/HighSettingFadeInFadeOut.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/MainInterfacePanel/HighSettingTip.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/MainInterfacePanel/TopAnimationPlay.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Rune/RuneModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/Dungeon/TrialDungeonModel.cs
@@ -10,6 +10,7 @@ { Dictionary<int, List<TrialExchangeConfig>> trialTokenExchangeDict = new Dictionary<int, List<TrialExchangeConfig>>(); Dictionary<int, int> lineToTokenClassDict; public Dictionary<int, List<int>> trialClassTokens = new Dictionary<int, List<int>>(); public List<int> trialTokens = new List<int>(); PlayerPackModel packModel { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } } DailyQuestModel dailyQuestModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } } @@ -54,6 +55,16 @@ if (!trialTokens.Contains(configs[i].tokenId)) { trialTokens.Add(configs[i].tokenId); List<int> _tokens; if (!trialClassTokens.TryGetValue(itemConfig.LV, out _tokens)) { _tokens = new List<int>(); trialClassTokens.Add(itemConfig.LV, _tokens); } if (!_tokens.Contains(configs[i].tokenId)) { _tokens.Add(configs[i].tokenId); } } } var funcConfig = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("LineToItemStage"); @@ -67,6 +78,10 @@ private void RefreshItemCountAct(PackType packType, int arg2, int itemId) { if (packType == PackType.rptItem && trialTokens.Contains(itemId)) { UpdateRedpoint(); } else if (packType == PackType.rptEquip) { UpdateRedpoint(); } @@ -144,9 +159,14 @@ { NewBieCenter.Instance.RemoveNewBieGuide(TRIALEXCHANGE_GUIDE); } CA32F_tagCMTrialExchange pak = new CA32F_tagCMTrialExchange(); pak.ID = (uint)_id; GameNetSystem.Instance.SendInfo(pak); var tokenConfig = ConfigManager.Instance.GetTemplate<ItemConfig>(config.tokenId); ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("TokenUseConfirm", config.tokenCount, tokenConfig.ItemName, config.description), (bool isOk) => { CA32F_tagCMTrialExchange pak = new CA32F_tagCMTrialExchange(); pak.ID = (uint)_id; GameNetSystem.Instance.SendInfo(pak); }); return true; } @@ -182,6 +202,44 @@ SysNotifyMgr.Instance.ShowTip("TrialExchangeLimit"); } public int EquipCompare(int _itemId) { var config = ConfigManager.Instance.GetTemplate<ItemConfig>(_itemId); var equipPlace = config.EquipPlace; if (equipPlace == 0) { return 0; } var singlepack = packModel.GetSinglePackModel(PackType.rptEquip); if (singlepack == null) { return 1; } var equipItem = singlepack.GetItemModelByIndex(equipPlace); if (equipItem == null) { return 1; } var compareConfig = ConfigManager.Instance.GetTemplate<ItemConfig>(equipItem.itemId); if (compareConfig == null) { return 1; } if (compareConfig.ItemColor != config.ItemColor) { return compareConfig.ItemColor > config.ItemColor ? -1 : 1; } if (compareConfig.StarLevel != config.StarLevel) { return compareConfig.StarLevel > config.StarLevel ? -1 : 1; } if (compareConfig.LV != config.LV) { return compareConfig.LV > config.LV ? -1 : 1; } return 0; } #region 红点 void UpdateRedpoint() { @@ -199,22 +257,77 @@ public bool TryGetSatisfyExchange(out int maxClass) { var configs = ConfigManager.Instance.GetAllValues<TrialExchangeConfig>(); maxClass = 0; for (int i = 0; i < configs.Count; i++) foreach (var _class in trialTokenExchangeDict.Keys) { var count = GetTrialTokenCount(configs[i].tokenId); if (count >= configs[i].tokenCount) List<TrialExchangeConfig> list; if (TryGetTrialExchanges(_class, out list)) { var itemConfig = ConfigManager.Instance.GetTemplate<ItemConfig>(configs[i].tokenId); if (itemConfig.LV > maxClass) for (int i = 0; i < list.Count; i++) { maxClass = itemConfig.LV; if (SatisfyExchangeBetter(list[i].id)) { var itemConfig = ConfigManager.Instance.GetTemplate<ItemConfig>(list[i].tokenId); if (itemConfig.LV > maxClass) { maxClass = itemConfig.LV; } break; } } } } return maxClass != 0; } public bool SatisfyExchangeBetter(int _id) { var config = ConfigManager.Instance.GetTemplate<TrialExchangeConfig>(_id); if (config == null) { return false; } var count = GetTrialTokenCount(config.tokenId); if (count < config.tokenCount) { return false; } var exchangeItemConfig = ConfigManager.Instance.GetTemplate<ItemConfig>(config.exchangeItemID); if (exchangeItemConfig.EquipPlace == 0) { return true; } if (EquipCompare(config.exchangeItemID) == 1) { return true; } return false; } public bool IsAnySatisfyExchangeBetterEquip(int _class, out int _id) { _id = -1; List<TrialExchangeConfig> list; if (TryGetTrialExchanges(_class, out list)) { for (int i = 0; i < list.Count; i++) { var itemConfig = ConfigManager.Instance.GetTemplate<ItemConfig>(list[i].exchangeItemID); if (SatisfyExchangeBetter(list[i].id) && itemConfig.EquipPlace != 0) { _id = list[i].id; return true; } } } return false; } public bool IsAnySatisfyExchangeBetter() { int _class = 0; return TryGetSatisfyExchange(out _class); } #endregion } } System/Dungeon/TrialExchangeBehaviour.cs
New file @@ -0,0 +1,80 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TableConfig; using System; namespace Snxxz.UI { public class TrialExchangeBehaviour : MonoBehaviour { [SerializeField] ItemCell m_Item; [SerializeField] Text m_Description; [SerializeField] ItemBehaviour m_Token; [SerializeField] Button m_Exchange; [SerializeField] Image m_Redpoint; [SerializeField] Image m_Up; [SerializeField] Image m_Down; TrialDungeonModel model { get { return ModelCenter.Instance.GetModel<TrialDungeonModel>(); } } DailyQuestModel dailyQuestModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } } PlayerPackModel packModel { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } } int trialExchangeId = 0; private void Awake() { m_Exchange.AddListener(Exchange); } private void Exchange() { if (trialExchangeId != 0) { int error = 0; if (!model.TrialSendExchange(trialExchangeId, out error)) { if (error == 1) { var config = ConfigManager.Instance.GetTemplate<TrialExchangeConfig>(trialExchangeId); if (config != null) { ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(config.tokenId); } } } } } public void Display(int id, bool equipBetter = true) { trialExchangeId = id; var config = ConfigManager.Instance.GetTemplate<TrialExchangeConfig>(id); if (config == null) { trialExchangeId = 0; return; } m_Item.cellBtn.RemoveAllListeners(); m_Item.gameObject.SetActive(true); ItemCellModel cellModel = new ItemCellModel(config.exchangeItemID, true, (ulong)config.exchangeItemCount, config.exchangeItemIsBind); m_Item.Init(cellModel); m_Item.cellBtn.AddListener(() => { ItemAttrData itemAttrData = new ItemAttrData(config.exchangeItemID, true, (ulong)config.exchangeItemCount, -1, config.exchangeItemIsBind, true); ModelCenter.Instance.GetModel<ItemTipsModel>().SetItemTipsModel(itemAttrData); }); m_Description.text = config.description; 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); var equipCompare = model.EquipCompare(config.exchangeItemID); m_Up.gameObject.SetActive(equipCompare == 1); m_Down.gameObject.SetActive(equipCompare == -1); var exchangeItemConfig = ConfigManager.Instance.GetTemplate<ItemConfig>(config.exchangeItemID); m_Redpoint.gameObject.SetActive(count >= config.tokenCount && (equipBetter || exchangeItemConfig.EquipPlace == 0)); } } } System/Dungeon/TrialExchangeBehaviour.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 9ebb65b796d3424439f2dff414553268 timeCreated: 1533181655 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/Dungeon/TrialExchangeCell.cs
@@ -1,72 +1,37 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TableConfig; using System; using UnityEngine; namespace Snxxz.UI { public class TrialExchangeCell : CellView { [SerializeField] ItemCell m_Item; [SerializeField] Text m_Description; [SerializeField] ItemBehaviour m_Token; [SerializeField] Button m_Exchange; [SerializeField] Image m_Redpoint; [SerializeField] TrialExchangeBehaviour[] m_TrialExchanges; TrialDungeonModel model { get { return ModelCenter.Instance.GetModel<TrialDungeonModel>(); } } DailyQuestModel dailyQuestModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } } int trialExchangeId = 0; private void Awake() public void Display(int _class, int _line) { m_Exchange.AddListener(Exchange); } private void Exchange() { if (trialExchangeId != 0) List<TrialExchangeConfig> list; if (!model.TryGetTrialExchanges(_class, out list)) { int error = 0; if (!model.TrialSendExchange(trialExchangeId, out error)) { if (error == 1) { var config = ConfigManager.Instance.GetTemplate<TrialExchangeConfig>(trialExchangeId); if (config != null) { ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(config.tokenId); } } model.ProcessTrialError(error); } } } public void Display(int id) { trialExchangeId = id; var config = ConfigManager.Instance.GetTemplate<TrialExchangeConfig>(id); if (config == null) { trialExchangeId = 0; return; } m_Item.cellBtn.RemoveAllListeners(); m_Item.gameObject.SetActive(true); ItemCellModel cellModel = new ItemCellModel(config.exchangeItemID, true, (ulong)config.exchangeItemCount, config.exchangeItemIsBind); m_Item.Init(cellModel); m_Item.cellBtn.AddListener(() => int _betterEquipId = -1; model.IsAnySatisfyExchangeBetterEquip(_class, out _betterEquipId); for (int i = 0; i < m_TrialExchanges.Length; i++) { ItemAttrData itemAttrData = new ItemAttrData(config.exchangeItemID, true, (ulong)config.exchangeItemCount, -1, config.exchangeItemIsBind); ModelCenter.Instance.GetModel<ItemTipsModel>().SetItemTipsModel(itemAttrData); }); m_Description.text = config.description; m_Token.SetItem(config.tokenId, config.tokenCount); var count = model.GetTrialTokenCount(config.tokenId); m_Redpoint.gameObject.SetActive(count >= config.tokenCount && dailyQuestModel.trialExchangeRedpoint.state == RedPointState.Simple); var index = _line * 4 + i; if (index < list.Count) { m_TrialExchanges[i].gameObject.SetActive(true); m_TrialExchanges[i].Display(list[index].id, _betterEquipId == list[index].id); } else { m_TrialExchanges[i].gameObject.SetActive(false); } } } } } System/Dungeon/TrialExchangeCell.cs.meta
@@ -1,6 +1,6 @@ fileFormatVersion: 2 guid: 9ebb65b796d3424439f2dff414553268 timeCreated: 1533181655 guid: 5c0805e8cad6c2e44bbd30aaaff7008f timeCreated: 1534302392 licenseType: Pro MonoImporter: serializedVersion: 2 System/Dungeon/TrialExchangeTitleCell.cs
New file @@ -0,0 +1,19 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class TrialExchangeTitleCell : CellView { [SerializeField] Image m_BackGround; [SerializeField] Text m_Title; public void Display(int _class) { m_Title.text = Language.Get("TrialExchangeTitle", _class); } } } System/Dungeon/TrialExchangeTitleCell.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 62d21c0bcc1b7ad4e8528d2bfb9f7b91 timeCreated: 1534303452 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/Dungeon/TrialExchangeWin.cs
@@ -18,6 +18,8 @@ [SerializeField] Text m_SelectClass; [SerializeField] Button m_SelectClassUp; [SerializeField] TrialSelectClassBehaviour m_SelectClassBehaviour; [SerializeField] ItemBehaviour[] m_Tokens; [SerializeField] Text[] m_TokenCounts; [SerializeField] Button m_Close; TrialDungeonModel model { get { return ModelCenter.Instance.GetModel<TrialDungeonModel>(); } } @@ -98,8 +100,19 @@ #endregion private void OnRefreshCell(ScrollerDataType type, CellView cell) { TrialExchangeCell trialExchangeCell = cell as TrialExchangeCell; trialExchangeCell.Display(cell.index); switch (type) { case ScrollerDataType.Header: var _class = cell.index / 100; var _line = cell.index % 100; TrialExchangeCell trialExchangeCell = cell as TrialExchangeCell; trialExchangeCell.Display(_class, _line); break; case ScrollerDataType.Normal: TrialExchangeTitleCell trialExchangeTitleCell = cell as TrialExchangeTitleCell; trialExchangeTitleCell.Display(cell.index); break; } } private void SelectClassUp() @@ -117,6 +130,7 @@ { DisplayTrialExchanges(); DisplaySelectClass(); DisplayTokens(); } void DisplayTrialExchanges() @@ -124,10 +138,19 @@ m_Controller.Refresh(); if (model.selectEquipClass == 1) { var configs = ConfigManager.Instance.GetAllValues<TrialExchangeConfig>(); for (int i = 0; i < configs.Count; i++) var trialClasses = model.GetTotalClass(); for (int i = 0; i < trialClasses.Count; i++) { m_Controller.AddCell(ScrollerDataType.Header, configs[i].id); List<TrialExchangeConfig> list; if (model.TryGetTrialExchanges(trialClasses[i], out list)) { m_Controller.AddCell(ScrollerDataType.Normal, trialClasses[i]); var line = Mathf.CeilToInt((float)list.Count / 4); for (int k = 0; k < line; k++) { m_Controller.AddCell(ScrollerDataType.Header, trialClasses[i] * 100 + k); } } } } else @@ -135,9 +158,10 @@ List<TrialExchangeConfig> list; if (model.TryGetTrialExchanges(model.selectEquipClass, out list)) { for (int i = 0; i < list.Count; i++) var line = Mathf.CeilToInt((float)list.Count / 4); for (int i = 0; i < line; i++) { m_Controller.AddCell(ScrollerDataType.Header, list[i].id); m_Controller.AddCell(ScrollerDataType.Header, model.selectEquipClass * 100 + i); } } } @@ -149,6 +173,11 @@ if (packtype == PackType.rptItem && model.trialTokens.Contains(itemId)) { m_Controller.m_Scorller.RefreshActiveCellViews(); DisplayTokens(); } else if (packtype == PackType.rptEquip) { m_Controller.m_Scorller.RefreshActiveCellViews(); } } @@ -158,10 +187,32 @@ Language.Get("EquipSuitLV", Language.Get(StringUtility.Contact("Num_CHS_", model.selectEquipClass))); } 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); } } } private void SelectEquipClassEvent() { DisplayTrialExchanges(); DisplaySelectClass(); DisplayTokens(); bool _up = m_SelectClassBehaviour.gameObject.activeSelf; m_SelectClassUp.transform.localEulerAngles = Vector3.zero.SetZ(_up ? 0 : 180); } System/MainInterfacePanel/HighSettingFadeInFadeOut.cs
@@ -99,7 +99,7 @@ private void operationEndEvent(Operation arg1, int arg2) { if (arg1 == Operation.GiftPackage || arg1 == Operation.FairyCeremony) if (arg1 == Operation.FairyCeremony) { Classify(); } @@ -107,7 +107,7 @@ private void operationStartEvent(Operation arg1, int arg2) { if (arg1 == Operation.GiftPackage || arg1 == Operation.FairyCeremony) if (arg1 == Operation.FairyCeremony) { Classify(); } @@ -378,7 +378,6 @@ PositionReduction(); SetGroupTop(); SetGroupLow(); // SetGroupThree(); SetfatherNodeTop(); SetfatherNodeLow(); SetfatherNodeThree(); @@ -555,7 +554,8 @@ } else if (IndexOf == 1) { if (ModelCenter.Instance.GetModel<OSGiftModel>().activate)//超值礼包 var _funcOrder = 0; if (OpenServerActivityCenter.Instance.IsAnyActivityOpen(out _funcOrder))//开服活动 { if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index)) { @@ -581,22 +581,8 @@ } else if (IndexOf == 2) { var _funcOrder = 0; if (OpenServerActivityCenter.Instance.IsAnyActivityOpen(out _funcOrder))//开服活动 { if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index)) { SelectCaseRequest selectCaseRequest = new SelectCaseRequest(); selectCaseRequest.Tran = m_GroupIndex_Low.GetChild(i); selectCaseRequest.IsNagaaki = highBtnRecord.IsNagaaki; selectCaseRequest.Index = highBtnRecord.Index; AnimationFadeOutDicLow.Add(highBtnRecord.Index, selectCaseRequest); } } } else if (IndexOf == 3) { if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && OperationTimeHepler.Instance.InOperationTime(Operation.FairyCeremony)) bool Isopen = OpenServerActivityCenter.Instance.IsActivityOpen(4); if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen)//限时特惠 { if (AnimationFadeOutDicLow.Count < 6)//------第二层 { @@ -615,7 +601,51 @@ AnimationFadeOutDicThree.Add(highBtnRecord.Index, selectCaseRequest); } } } else if (IndexOf == 3) { bool Isopen = OpenServerActivityCenter.Instance.IsActivityOpen(0); if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && Isopen)//限时特惠 { if (AnimationFadeOutDicLow.Count < 6)//------第二层 { SelectCaseRequest selectCaseRequest = new SelectCaseRequest(); selectCaseRequest.Tran = m_GroupIndex_Low.GetChild(i); selectCaseRequest.IsNagaaki = highBtnRecord.IsNagaaki; selectCaseRequest.Index = highBtnRecord.Index; AnimationFadeOutDicLow.Add(highBtnRecord.Index, selectCaseRequest); } else//------第三层 { SelectCaseRequest selectCaseRequest = new SelectCaseRequest(); selectCaseRequest.Tran = m_GroupIndex_Low.GetChild(i); selectCaseRequest.IsNagaaki = highBtnRecord.IsNagaaki; selectCaseRequest.Index = highBtnRecord.Index; AnimationFadeOutDicThree.Add(highBtnRecord.Index, selectCaseRequest); } } } else if (IndexOf == 4) { if (!AnimationFadeOutDicLow.ContainsKey(highBtnRecord.Index) && OperationTimeHepler.Instance.InOperationTime(Operation.FairyCeremony))//精灵盛典 { if (AnimationFadeOutDicLow.Count < 6)//------第二层 { SelectCaseRequest selectCaseRequest = new SelectCaseRequest(); selectCaseRequest.Tran = m_GroupIndex_Low.GetChild(i); selectCaseRequest.IsNagaaki = highBtnRecord.IsNagaaki; selectCaseRequest.Index = highBtnRecord.Index; AnimationFadeOutDicLow.Add(highBtnRecord.Index, selectCaseRequest); } else//------第三层 { SelectCaseRequest selectCaseRequest = new SelectCaseRequest(); selectCaseRequest.Tran = m_GroupIndex_Low.GetChild(i); selectCaseRequest.IsNagaaki = highBtnRecord.IsNagaaki; selectCaseRequest.Index = highBtnRecord.Index; AnimationFadeOutDicThree.Add(highBtnRecord.Index, selectCaseRequest); } } } } } System/MainInterfacePanel/HighSettingTip.cs
@@ -44,10 +44,12 @@ [SerializeField] Button m_FindHostBtn;//仙宝寻主 [SerializeField] RechargeBtnBehaviour m_RechargetBtnBehaviour; [SerializeField] Button m_OSGiftBtn; [SerializeField] Button m_LimitedTimePBtn;//限时礼包 [SerializeField] Button m_ElfFestivalBtn;//仙界盛典 [SerializeField] Button m_FlashSaleBtn;//限时特惠 [SerializeField] Button m_AllThePeopleBtn;//全民冲榜 private bool _bool = true; private int swicthCdTime = 0; private bool IsFadeOut = true; @@ -65,7 +67,6 @@ { swicthCdTime = int.Parse(ConfigManager.Instance.GetTemplate<FuncConfigConfig>("AutomaticSwitch").Numerical1); OpenServerActivityStateChange(); CheckOSGift(); m_RechargetBtnBehaviour.Init(); m_HighSettingFadeInFadeOut.Init(); storeDesBtn.AddListener(() => { storeDesBtn.gameObject.SetActive(false); }); @@ -82,10 +83,11 @@ m_HappyXBBtn.AddListener(OnClickHappyXBBtn); m_FindHostBtn.AddListener(OnClickFindHostBtn); m_OpenService.AddListener(OpenService); m_OSGiftBtn.AddListener(OSGiftBtn); _RuneTaBtn.onClick.AddListener(RuneTaButton); m_LimitedTimePBtn.AddListener(OnCliCkLimitedTimePBtn); m_ElfFestivalBtn.AddListener(OnClickElfFestivalBtn); m_FlashSaleBtn.AddListener(OnClickmFlashSaleBtn); m_AllThePeopleBtn.AddListener(OnClickmAllThePeopleBtn); if (_bool) { ColseButton(); @@ -137,9 +139,10 @@ m_OpenService.RemoveAllListeners(); m_HappyXBBtn.RemoveAllListeners(); m_FindHostBtn.RemoveAllListeners(); m_OSGiftBtn.RemoveAllListeners(); m_LimitedTimePBtn.RemoveAllListeners(); _RuneTaBtn.onClick.RemoveAllListeners(); m_FlashSaleBtn.RemoveAllListeners(); m_AllThePeopleBtn.RemoveAllListeners(); CoroutineMgr.Instance.MainHighTipCdTimeEvent -= OnMainHighTipCdTime; FunctionUnlockFlyObjectTarget.IsPlayerUiEffect -= IsPlayerUiEffect; FuncOpen.Instance.OnFuncStateChangeEvent -= OnFuncStateChange; @@ -266,32 +269,17 @@ WindowCenter.Instance.Open<FirstRechargeWin>(true); } break; //case 2: // WindowCenter.Instance.Open<OpenServerGiftWin>(); // break; case 3: WindowCenter.Instance.Close<MainInterfaceWin>(); WindowCenter.Instance.Open<VipRechargeWin>(false, 0); break; } } private void OSGiftBtn() { //WindowCenter.Instance.Open<OpenServerGiftWin>(); } void RuneTaButton()//符印塔 { WindowCenter.Instance.Close<MainInterfaceWin>(); WindowCenter.Instance.Open<RuneTowerWin>(); } private void CheckOSGift() { m_OSGiftBtn.gameObject.SetActive(osGiftModel.activate); SwithButtonObj(); } void OpenTreasure() { WindowCenter.Instance.Close<MainInterfaceWin>(); @@ -325,6 +313,17 @@ WindowCenter.Instance.Close<MainInterfaceWin>(); WindowCenter.Instance.Open<FairylandCeremonyWin>(); } void OnClickmFlashSaleBtn()//限时特惠 { WindowCenter.Instance.Close<MainInterfaceWin>(); WindowCenter.Instance.Open<OpenServerActivityWin>(false, 4); } void OnClickmAllThePeopleBtn()//全民冲榜 { WindowCenter.Instance.Close<MainInterfaceWin>(); WindowCenter.Instance.Open<OpenServerActivityWin>(false,0); } public void ShowButton()//向上 { System/MainInterfacePanel/TopAnimationPlay.cs
@@ -41,14 +41,14 @@ private void operationStartEvent(Operation arg1, int arg2) { if (arg1 == Operation.GiftPackage || arg1 == Operation.FairyCeremony) if (arg1 == Operation.FairyCeremony) { Await1(); } } private void operationEndEvent(Operation arg1, int arg2) { if (arg1 == Operation.GiftPackage || arg1 == Operation.FairyCeremony) if ( arg1 == Operation.FairyCeremony) { Await1(); } System/Rune/RuneModel.cs
@@ -743,7 +743,7 @@ for (int i = 0; i < runes.Count; i++) { int offset = (int)RuneTowerOpenLV - runes[i].TowerID; if (offset >= 0) if (offset >= 0 && runes[i].AttrType.Length < 2) { if (!unlockDict.ContainsKey(runes[i].TowerID)) {