26 lines
623 B
C#
26 lines
623 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using I2.Loc;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Ichni.UI
|
|
{
|
|
public class TextButton : SettingsUIElementBase
|
|
{
|
|
public Button button;
|
|
public TMP_Text buttonText;
|
|
public void SetUp(string title, string subTitle, string textContent)
|
|
{
|
|
base.SetUp(title, subTitle);
|
|
|
|
buttonText.GetComponent<Localize>().SetTerm(textContent);
|
|
|
|
button.onClick.AddListener(() =>
|
|
{
|
|
updateValueAction?.Invoke();
|
|
});
|
|
}
|
|
}
|
|
} |