fix(uxassist): restore native tips and align auto-cruise sliders

This commit is contained in:
soarqin committed 2026-09-26 16:15:20 +08:00
1 parent 439b5053d8
commit 94a6833aae
4 files changed
+27 -47

No files matched your search

+2
View File
@@ -39,8 +39,10 @@ public static class LayoutHelper
var dst = UnityEngine.Object.Instantiate(src);
dst.gameObject.name = objName;
var btn = dst.GetComponent<UIButton>();
var tipSettings = btn.tips;
Util.ResetButton(btn);
Util.NormalizeRectWithTopLeft(btn, x, y, parent);
btn.tips = tipSettings;
btn.tips.topLevel = true;
btn.tips.tipTitle = label;
btn.tips.tipText = tip;