mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
20 lines
435 B
C#
20 lines
435 B
C#
using System.Linq;
|
|
|
|
namespace QSB.Utility;
|
|
|
|
internal static class UIHelper
|
|
{
|
|
public static void ReplaceUI(UITextType key, string text)
|
|
{
|
|
var table = TextTranslation.Get().m_table;
|
|
table.theUITable[(int)key] = text;
|
|
}
|
|
|
|
public static UITextType AddToUITable(string text)
|
|
{
|
|
var table = TextTranslation.Get().m_table;
|
|
var key = table.theUITable.Keys.Max() + 1;
|
|
table.theUITable[key] = text;
|
|
return (UITextType)key;
|
|
}
|
|
} |