Initial commit
This commit is contained in:
commit
0afdc1d02f
93 changed files with 2453 additions and 0 deletions
17
Patches/PosTerminal_Start_Patch.cs
Normal file
17
Patches/PosTerminal_Start_Patch.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using HarmonyLib;
|
||||
using TMPro;
|
||||
|
||||
namespace CurrencyChanger2.Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(PosTerminal), "Start")]
|
||||
public static class PosTerminal_Start_Patch
|
||||
{
|
||||
public static void Postfix(PosTerminal __instance)
|
||||
{
|
||||
string p = Plugin.TerminalSymbol.Value;
|
||||
var tmp = __instance.gameObject.transform.GetChild(2).GetChild(2).GetChild(1).GetComponent<TextMeshProUGUI>();
|
||||
tmp.text = p;
|
||||
tmp.enableWordWrapping = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue