mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
ErrorLogger
ErrorLogger
This commit is contained in:
33
Assets/GameScripts/HotFix/GameLogic/ErrorLogger/LogUI.cs
Normal file
33
Assets/GameScripts/HotFix/GameLogic/ErrorLogger/LogUI.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using UnityEngine.UI;
|
||||
using TEngine;
|
||||
|
||||
namespace GameLogic
|
||||
{
|
||||
[Window(UILayer.System)]
|
||||
class LogUI : UIWindow
|
||||
{
|
||||
#region 脚本工具生成的代码
|
||||
private Text m_textError;
|
||||
private Button m_btnClose;
|
||||
public override void ScriptGenerator()
|
||||
{
|
||||
m_textError = FindChildComponent<Text>("m_textError");
|
||||
m_btnClose = FindChildComponent<Button>("m_btnClose");
|
||||
m_btnClose.onClick.AddListener(OnClickCloseBtn);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 事件
|
||||
|
||||
private void OnClickCloseBtn()
|
||||
{
|
||||
Close();
|
||||
}
|
||||
#endregion
|
||||
|
||||
public override void OnRefresh()
|
||||
{
|
||||
m_textError.text = UserData.ToString();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user