43 lines
859 B
C#
43 lines
859 B
C#
using Studio;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using XRLib.UI;
|
|
|
|
namespace XED.UI
|
|
{
|
|
public class UI_ProtocolLabel : UIBase
|
|
{
|
|
public Panel_Repository panel_Repository;
|
|
|
|
Button ClickButton;
|
|
Button FoldButton;
|
|
TextMeshProUGUI buttonText;
|
|
|
|
string buttonName;
|
|
|
|
public override void AfterAwake()
|
|
{
|
|
buttonText = ClickButton.GetComponentInChildren<TextMeshProUGUI>();
|
|
|
|
ClickButton.onClick.AddListener(OnClickButton);
|
|
FoldButton.onClick.AddListener(OnClickFoldButton);
|
|
}
|
|
|
|
void OnClickButton()
|
|
{
|
|
panel_Repository.ShowInformation_API();
|
|
}
|
|
|
|
void OnClickFoldButton()
|
|
{
|
|
|
|
}
|
|
|
|
public void SetButtonName(string name)
|
|
{
|
|
buttonText.text = name;
|
|
}
|
|
}
|
|
}
|