Fix deep-fried main menu text

This commit is contained in:
Evil Factory
2026-03-28 22:20:22 -03:00
parent 14c610e6c7
commit bcec409618

View File

@@ -12,6 +12,8 @@ internal class MainMenuPatch : ISystem, IEventScreenSelected
private readonly IEventService _eventService;
private bool mainMenuUIAdded = false;
public MainMenuPatch(IEventService eventService)
{
_eventService = eventService;
@@ -39,10 +41,14 @@ internal class MainMenuPatch : ISystem, IEventScreenSelected
#if CLIENT
private void AddToMainMenu(MainMenuScreen screen)
{
if (mainMenuUIAdded) { return; }
new GUITextBlock(new RectTransform(new Point(300, 30), screen.Frame.RectTransform, Anchor.TopLeft) { AbsoluteOffset = new Point(10, 10) }, $"Using LuaCsForBarotrauma revision {AssemblyInfo.GitRevision}", Color.Red)
{
IgnoreLayoutGroups = false
};
mainMenuUIAdded = true;
}
#endif