Skip to content

Commit

Permalink
Quick fix for text box alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
WNP78 committed Jun 9, 2020
1 parent a8291f4 commit c96ab96
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Assets/Overload/OverloadXmlEditRowScript.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using System.Collections.Generic;
using System.Collections;
using UnityEngine;
using UI.Xml;
using TMPro;
Expand Down Expand Up @@ -27,6 +27,8 @@ private void Start()
{
f.gameObject.AddComponent<US.UI.InputFieldScrollFixer>();
}

StartCoroutine(FixThingies());
}
void OnNameChanged(string name)
{
Expand Down Expand Up @@ -58,5 +60,13 @@ public void Deactivate()
xAttribute = null;
gameObject.SetActive(false);
}
IEnumerator FixThingies()
{
nameInput.SetTextWithoutNotify("");
valueInput.SetTextWithoutNotify("");
yield return null;
nameInput.text = xAttribute.Name.LocalName;
valueInput.text = xAttribute.Value;
}
}
}

0 comments on commit c96ab96

Please sign in to comment.