| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Monday, October 16, 2017 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | using TableConfig; |
| | | //关于日常和地图 |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TopRightTip : MonoBehaviour |
| | | { |
| | | public Button _TopRightTip; |
| | | public Button _DailyBtn; |
| | | public void Init() |
| | | { |
| | | _TopRightTip.AddListener(OpenMapWin); |
| | | _DailyBtn.AddListener(OpenDailyQuestWin); |
| | | } |
| | | public void UnInit() |
| | | { |
| | | _TopRightTip.RemoveAllListeners(); |
| | | _DailyBtn.RemoveAllListeners(); |
| | | } |
| | | |
| | | private void OpenMapWin() |
| | | { |
| | | var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(); |
| | | var config = ConfigManager.Instance.GetTemplate<MapConfig>(PlayerDatas.Instance.baseData.MapID); |
| | | if (string.IsNullOrEmpty(mapResConfig.BigMap) |
| | | || PlayerDatas.Instance.baseData.MapID == FairyLeagueModel.FAIRY_LEAGUE_DUNGEON) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("MapInfo1"); |
| | | } |
| | | else |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<LocalMapWin>(); |
| | | } |
| | | } |
| | | |
| | | private void OpenDailyQuestWin() |
| | | { |
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == 89)//仙界秘境购买引导 |
| | | { |
| | | ModelCenter.Instance.GetModel<DailyQuestModel>().currentDailyQuest = (int)DailyQuestType.FairyLand; |
| | | } |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<DailyQuestWin>(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Monday, October 16, 2017
|
| | | //--------------------------------------------------------
|
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using UnityEngine.UI;
|
| | | using TableConfig;
|
| | | //关于日常和地图
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class TopRightTip : MonoBehaviour
|
| | | {
|
| | | public Button _TopRightTip;
|
| | | public Button _DailyBtn;
|
| | | public void Init()
|
| | | {
|
| | | _TopRightTip.AddListener(OpenMapWin);
|
| | | _DailyBtn.AddListener(OpenDailyQuestWin);
|
| | | }
|
| | | public void UnInit()
|
| | | {
|
| | | _TopRightTip.RemoveAllListeners();
|
| | | _DailyBtn.RemoveAllListeners();
|
| | | }
|
| | |
|
| | | private void OpenMapWin()
|
| | | {
|
| | | var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig();
|
| | | var config = Config.Instance.Get<MapConfig>(PlayerDatas.Instance.baseData.MapID);
|
| | | if (string.IsNullOrEmpty(mapResConfig.BigMap)
|
| | | || PlayerDatas.Instance.baseData.MapID == FairyLeagueModel.FAIRY_LEAGUE_DUNGEON)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("MapInfo1");
|
| | | }
|
| | | else
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<LocalMapWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | private void OpenDailyQuestWin()
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == 89)//仙界秘境购买引导
|
| | | {
|
| | | ModelCenter.Instance.GetModel<DailyQuestModel>().currentDailyQuest = (int)DailyQuestType.FairyLand;
|
| | | }
|
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == TrialDungeonModel.TRIALEXCHANGE_GUIDE)
|
| | | {
|
| | | ModelCenter.Instance.GetModel<DailyQuestModel>().currentDailyQuest = (int)DailyQuestType.Trial;
|
| | | }
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<DailyQuestWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|