29 lines
776 B
C#
29 lines
776 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using GCGame.Table;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
public class OrnamentMenuItem : UIItemBase {
|
|||
|
|
|||
|
private const int _StrDicId = 86500; //加类型获取StrdicID
|
|||
|
|
|||
|
public Text _MenuItemName;
|
|||
|
public Text _MenuItemMarkName;
|
|||
|
public GameObject _Mark;
|
|||
|
[HideInInspector]
|
|||
|
public int _CurType = -1;
|
|||
|
public override void Show(Hashtable hash)
|
|||
|
{
|
|||
|
base.Show(hash);
|
|||
|
_InitInfo = (object)hash["InitObj"];
|
|||
|
_CurType = (int)hash["InitObj"];
|
|||
|
_MenuItemName.text = _MenuItemMarkName.text = StrDictionary.GetClientDictionaryString("#{" + (_StrDicId + _CurType) + "}");
|
|||
|
}
|
|||
|
|
|||
|
public void IsShowMark(bool isShow)
|
|||
|
{
|
|||
|
_Mark.SetActive(isShow);
|
|||
|
}
|
|||
|
}
|