version text

This commit is contained in:
Evil Factory
2021-10-06 15:13:43 -03:00
parent da98c04927
commit 33f74c4a73
2 changed files with 16 additions and 7 deletions
@@ -420,19 +420,28 @@ namespace Barotrauma
}
};
#endif
new GUIButton(new RectTransform(new Point(300, 30), Frame.RectTransform, Anchor.TopRight) { AbsoluteOffset = new Point(40, 230) },
"Remove Client-Side Lua", style: "GUIButtonLarge", color: GUI.Style.Red)
new GUIButton(new RectTransform(new Point(300, 30), Frame.RectTransform, Anchor.TopLeft) { AbsoluteOffset = new Point(20, 50) },
"Remove Client-Side Lua", style: "MainMenuGUIButton", color: GUI.Style.Red)
{
IgnoreLayoutGroups = true,
UserData = Tab.Empty,
ToolTip = "Remove Client-Side Lua.",
OnClicked = (tb, userdata) =>
{
return false;
if (!File.Exists("Barotrauma.dll.original"))
{
new GUIMessageBox("", "Error: Barotrauma.dll.original not found, Github version? Use Steam validate files instead.");
}
return true;
}
};
new GUITextBlock(new RectTransform(new Point(300, 30), Frame.RectTransform, Anchor.TopLeft) { AbsoluteOffset = new Point(10, 10) }, "Using LuaForBarotrauma version " + AssemblyInfo.GitRevision, Color.Red)
{
IgnoreLayoutGroups = false
};
var minButtonSize = new Point(120, 20);
var maxButtonSize = new Point(480, 80);