25 lines
920 B
C#
25 lines
920 B
C#
using UnityEngine.Events;
|
|
using UnityEngine.UI;
|
|
using ZXKFramework;
|
|
namespace YiLiao.SiBuChuZhen
|
|
{
|
|
public class CaoZuoShuoMingPanel : UIBase
|
|
{
|
|
public override string GroupName => "CaoZuoShuoMingPanel";
|
|
public override string Name => "CaoZuoShuoMingPanel";
|
|
Button czsm_Btn;
|
|
public override void Init(IUIManager uictrl)
|
|
{
|
|
base.Init(uictrl);
|
|
czsm_Btn = transform.FindFirst<Button>("czsm_Btn");
|
|
transform.FindFirst<Text>("title").text = GetModel<GameModel>().GetLanguage(23);
|
|
transform.FindFirst<Text>("Text").text = GetModel<GameModel>().GetLanguage(5);
|
|
}
|
|
public void SetButton(string name, UnityAction callBack)
|
|
{
|
|
czsm_Btn.transform.FindFirst<Text>("Text").text = name;
|
|
czsm_Btn.onClick.RemoveAllListeners();
|
|
czsm_Btn.onClick.AddListener(callBack);
|
|
}
|
|
}
|
|
} |