|
@@ -70,7 +70,14 @@ public class Pack : SkillRoot
|
|
|
|
|
|
SkillItem.SetActive(true);
|
|
|
|
|
|
- ManaLan.Add(ItemBtnLab, new LanStr("UI", "Fe_BtnLab3"), "\n", Auxiliary.ImageParse(BuyCur), UseAmt.ToString("0"));
|
|
|
+ if (!string.IsNullOrEmpty(Label))
|
|
|
+ {
|
|
|
+ ManaLan.Add(ItemBtnLab, new LanStr("UI", Label), "\n", Auxiliary.ImageParse(BuyCur), UseAmt.ToString("0"));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ManaLan.Add(ItemBtnLab, new LanStr("UI", "Fe_BtnLab3"), "\n", Auxiliary.ImageParse(BuyCur), UseAmt.ToString("0"));
|
|
|
+ }
|
|
|
}
|
|
|
else if (ItemStatus_ == SkillStatus.Lock)
|
|
|
{
|
|
@@ -166,17 +173,17 @@ public class Pack : SkillRoot
|
|
|
{
|
|
|
UseA();
|
|
|
}
|
|
|
- //IconLab1
|
|
|
+
|
|
|
ItemBtn.onClick.RemoveAllListeners();
|
|
|
ItemBtn.onClick.AddListener(OnClick);
|
|
|
|
|
|
|
|
|
- if (!string.IsNullOrEmpty(Label))
|
|
|
- {
|
|
|
- ItemIcon1.SetActive(true);
|
|
|
+ //if (!string.IsNullOrEmpty(Label))
|
|
|
+ //{
|
|
|
+ // ItemIcon1.SetActive(true);
|
|
|
|
|
|
- ManaLan.Add(IconLab1, new LanStr("UI", Label));
|
|
|
- }
|
|
|
+ // ManaLan.Add(IconLab1, new LanStr("UI", Label));
|
|
|
+ //}
|
|
|
|
|
|
ItemLab.text = GetDescription(0);
|
|
|
|