quantum-space-buddies/QSB/Utility/UIHelper.cs

15 lines
330 B
C#
Raw Normal View History

2021-11-17 23:39:18 +00:00
using System.Linq;
namespace QSB.Utility
{
internal static class UIHelper
{
public static int AddToUITable(string text)
{
var instance = UnityEngine.Object.FindObjectOfType<TextTranslation>().m_table;
instance.Insert_UI(instance.theUITable.Keys.Max() + 1, text);
return instance.theUITable.Keys.Max();
}
}
}