Skip to content

Commit

Permalink
Fix free name textbox by not changing it as much
Browse files Browse the repository at this point in the history
I dont care that the text is smaller and no one else cares either
  • Loading branch information
Alexejhero committed Aug 13, 2024
1 parent 0171dec commit 6faea03
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Reactor/Patches/Miscellaneous/FreeNamePatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ public static void Initialize()
var textBox = nameText.GetComponent<TextBoxTMP>();
textBox.outputText.alignment = TextAlignmentOptions.CenterGeoAligned;
textBox.outputText.transform.position = nameText.transform.position;
textBox.outputText.fontSize = 4f;
textBox.OnChange.AddListener((Action) (() =>
{
DataManager.Player.Customization.Name = textBox.text;
}));
textBox.OnEnter = textBox.OnFocusLost = textBox.OnChange;
textBox.Pipe.GetComponent<TextMeshPro>().fontSize = 4f;
}));
}

Expand Down

0 comments on commit 6faea03

Please sign in to comment.