Files
JJBB/Assets/Project/Script/GUI/LevelCombatTips/LevelTipLevelItem.cs
2024-08-23 15:49:34 +08:00

58 lines
1.1 KiB
C#

using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
using GCGame.Table;
using Games.Mission;
using Games.Events;
using Games.Item;
using GCGame;
using Games.GlobeDefine;
public class LevelTipLevelItem : UIItemSelect
{
public Text _Desc;
#region
Tab_LevelTip _LevelTip;
string _TipStr;
public override void Show(Hashtable hash)
{
base.Show(hash);
var levelTab = (Tab_LevelTip)hash["InitObj"];
ShowLevelItem(levelTab);
}
public override void Selected()
{
base.Selected();
_Desc.text = "<color=#745146>" + _TipStr + "</Color>";
}
public override void UnSelected()
{
base.UnSelected();
_Desc.text = "<color=#dbe7fe>" + _TipStr + "</Color>";
}
public void ShowLevelItem(Tab_LevelTip levelTab)
{
_LevelTip = levelTab;
_TipStr = StrDictionary.GetClientDictionaryString("#{1166}", _LevelTip.LevelMin) + "-" + StrDictionary.GetClientDictionaryString("#{1166}", _LevelTip.LevelMax);
_Desc.text = "<color=#dbe7fe>" + _TipStr + "</Color>";
}
#endregion
}