mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
15 lines
330 B
C#
15 lines
330 B
C#
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();
|
|
}
|
|
}
|
|
}
|