mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(uxassist): restore native tips and align auto-cruise sliders
This commit is contained in:
1 parent
439b5053d8
commit
94a6833aae
4 files changed
+27
-47
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user