49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using GCGame.Table;
|
|
|
|
public class FactionAdvanceRankMenuItem : UIItemBase {
|
|
|
|
public GameObject _MarkObj;
|
|
public Text _MenuItemName;
|
|
public Text _MarkMenuItemName;
|
|
|
|
public int _CurSelectLevelEnum = -1;
|
|
public override void Show(Hashtable hash)
|
|
{
|
|
base.Show(hash);
|
|
var factionAdvanceOtherTabId = (int)hash["InitObj"];
|
|
var otherTab = TableManager.GetFactionAdvanceOtherByID(factionAdvanceOtherTabId, 0);
|
|
if(otherTab == null)
|
|
{
|
|
gameObject.SetActive(false);
|
|
return;
|
|
}
|
|
|
|
if (otherTab == null)
|
|
{
|
|
this.gameObject.SetActive(false);
|
|
return;
|
|
}
|
|
|
|
_CurSelectLevelEnum = otherTab.MaxLevel;
|
|
var StrdicId = "#{" + otherTab.StrdicId + "}";
|
|
_MenuItemName.text = StrDictionary.GetClientDictionaryString(StrdicId);
|
|
_MarkMenuItemName.text = StrDictionary.GetClientDictionaryString(StrdicId);
|
|
}
|
|
|
|
public override void OnItemClick()
|
|
{
|
|
base.OnItemClick();
|
|
//if (FactionAdvanceRankPanelCtr.Instance)
|
|
// FactionAdvanceRankPanelCtr.Instance.OnMenuClick(_CurSelectLevelEnum);
|
|
}
|
|
|
|
public void ShowMarkIcon(bool isShow)
|
|
{
|
|
_MarkObj.SetActive(isShow);
|
|
}
|
|
}
|