mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(UXAssist): reset cloned UI state
This commit is contained in:
1 parent
f611f2f9b3
commit
574919f1f0
21 files changed
+308
-58
No files matched your search
@@ -160,6 +160,12 @@ public class UIPatch : PatchImpl<UIPatch>
|
||||
var parent = uiresAmountEntry.labelText.transform.parent;
|
||||
vt.textCtrl = Object.Instantiate(uiresAmountEntry.valueText, parent);
|
||||
vt.textCtrl.font = uiresAmountEntry.labelText.font;
|
||||
vt.textCtrl.text = "";
|
||||
vt.textCtrl.color = uiresAmountEntry.normalColor;
|
||||
vt.textCtrl.alignment = TextAnchor.MiddleRight;
|
||||
vt.textCtrl.fontStyle = FontStyle.Normal;
|
||||
vt.textCtrl.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
vt.textCtrl.verticalOverflow = VerticalWrapMode.Overflow;
|
||||
RectTransform trans = vt.textCtrl.rectTransform;
|
||||
var pos = uiresAmountEntry.rectTrans.localPosition;
|
||||
pos.x = pos.x + uiresAmountEntry.iconImage.rectTransform.localPosition.x - 25f;
|
||||
|
||||
Reference in new issue
Block a user