27 lines
714 B
C#
27 lines
714 B
C#
using Logic.Multilingual;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace TH1_UI.View.Outside
|
|
{
|
|
// 关于面板里的 staff 头衔分组行
|
|
public class UIOutsideAboutStaffTitleLineMono : MonoBehaviour
|
|
{
|
|
public TextMeshProUGUI TitleText;
|
|
|
|
public void SetContent(StaffTitleEnum title)
|
|
{
|
|
if (Table.Instance.StaffDataAssets != null &&
|
|
Table.Instance.StaffDataAssets.GetStaffTitleInfo(title, out var info) &&
|
|
info != null)
|
|
{
|
|
MultilingualManager.Instance.SetUIText(TitleText, info.Name);
|
|
}
|
|
else
|
|
{
|
|
TitleText.text = title.ToString();
|
|
}
|
|
}
|
|
}
|
|
}
|