43 lines
878 B
C#
43 lines
878 B
C#
using AlicizaX;
|
|
using AlicizaX.UI.Runtime;
|
|
using GameLogic.Event.Generated;
|
|
using GameLogic.UI;
|
|
using UnityEngine;
|
|
|
|
namespace Hotfix.GameLogic.TestWindow
|
|
{
|
|
[Prewarm(2)]
|
|
public readonly struct ModeChangedEvent : IEventArgs
|
|
{
|
|
}
|
|
|
|
public readonly struct ModeHGameChangedEvent : IEventArgs
|
|
{
|
|
}
|
|
|
|
[Window(UILayer.UI)]
|
|
public class UIHomeWindow : UIWindow<ui_UITestWindow>
|
|
{
|
|
protected override void OnInitialize()
|
|
{
|
|
baseui.ImgBackGround.color = Color.gray;
|
|
baseui.Btntest.onClick.AddListener(OnTestClick);
|
|
}
|
|
|
|
private void OnTestClick()
|
|
{
|
|
Debug.Log("ShowUIA");
|
|
}
|
|
|
|
protected override void OnOpen()
|
|
{
|
|
Debug.Log("OnOpen");
|
|
}
|
|
|
|
protected override void OnClose()
|
|
{
|
|
Debug.Log("OnClose");
|
|
}
|
|
}
|
|
}
|