1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 18:22:18 +08:00

UXAssist 1.2.4

This commit is contained in:
2024-09-24 00:33:41 +08:00
parent daaf7b4901
commit 237830fc91
13 changed files with 149 additions and 73 deletions

View File

@@ -22,6 +22,7 @@ public class MyConfigWindow : MyWindowWithTabs
public override void _OnCreate()
{
base._OnCreate();
_windowTrans = GetComponent<RectTransform>();
OnUICreated?.Invoke(this, _windowTrans);
AutoFitWindowSize();
@@ -32,26 +33,16 @@ public class MyConfigWindow : MyWindowWithTabs
public override void _OnDestroy()
{
_windowTrans = null;
base._OnDestroy();
}
public override bool _OnInit()
{
if (!base._OnInit()) return false;
_windowTrans.anchoredPosition = new Vector2(0, 0);
return true;
}
public override void _OnFree()
{
}
public override void _OnOpen()
{
}
public override void _OnClose()
{
}
public override void _OnUpdate()
{
base._OnUpdate();