| //--------------------------------------------------------  | 
| //    [Author]:           第二世界  | 
| //    [  Date ]:           Thursday, November 16, 2017  | 
| //--------------------------------------------------------  | 
| using UnityEngine;  | 
| using System.Collections;  | 
| using UnityEngine.UI;  | 
|   | 
|   | 
| namespace vnxbqy.UI  | 
| {  | 
|   | 
|     public class WorldMapUnLockTip : MonoBehaviour  | 
|     {  | 
|         [SerializeField] Image m_ConditionSign1;  | 
|         [SerializeField] Image m_ConditionSign2;  | 
|         [SerializeField] Text m_Condtion1;  | 
|         [SerializeField] Text m_Condition2;  | 
|   | 
|         public void Display(int _mapId)  | 
|         {  | 
|             var config = MapConfig.Get(_mapId);  | 
|   | 
|             if (config.realmLevel > 0)  | 
|             {  | 
|                 var realmConfig = RealmConfig.Get(config.realmLevel);  | 
|                 m_Condtion1.text = Language.Get("WorldMap_Realm", realmConfig.Name);  | 
|                 m_Condtion1.color = UIHelper.GetUIColor(PlayerDatas.Instance.baseData.realmLevel >= config.realmLevel ? TextColType.Green : TextColType.Red);  | 
|             }  | 
|             else  | 
|             {  | 
|                 m_Condtion1.text = Language.Get("WorldMap_LV", config.LV);  | 
|                 m_Condtion1.color = UIHelper.GetUIColor(PlayerDatas.Instance.baseData.LV >= config.LV ? TextColType.Green : TextColType.Red);  | 
|             }  | 
|   | 
|             if (string.IsNullOrEmpty(config.MapTaskText))  | 
|             {  | 
|                 m_ConditionSign2.SetActive(false);  | 
|                 m_Condition2.text = "";  | 
|             }  | 
|             else  | 
|             {  | 
|                 m_ConditionSign2.SetActive(true);  | 
|                 m_Condition2.text = config.MapTaskText;  | 
|             }  | 
|         }  | 
|   | 
|     }  | 
|   | 
| }  | 
|   | 
|   | 
|   |