1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-11 00:43:29 +08:00
This commit is contained in:
2023-09-14 21:34:58 +08:00
parent 24ba5481a9
commit 514d80988c
3 changed files with 14 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ public class MyWindow: ManualBehaviour
public void Open()
{
_Open();
}
public override void _OnUpdate()
{
transform.SetSiblingIndex(UIRoot.instance.uiMechaEditor.transform.GetSiblingIndex() + 1);
}
@@ -75,6 +79,7 @@ public class MyWindow: ManualBehaviour
dst.gameObject.name = objName;
var btn = dst.GetComponent<UIButton>();
Util.NormalizeRectWithTopLeft(btn, x, y, parent);
btn.tips.topLevel = true;
btn.tips.tipTitle = label;
btn.tips.tipText = tip;
btn.UpdateTip();