version text
This commit is contained in:
@@ -420,19 +420,28 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
#endif
|
#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,
|
IgnoreLayoutGroups = true,
|
||||||
UserData = Tab.Empty,
|
UserData = Tab.Empty,
|
||||||
ToolTip = "Remove Client-Side Lua.",
|
ToolTip = "Remove Client-Side Lua.",
|
||||||
OnClicked = (tb, userdata) =>
|
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 minButtonSize = new Point(120, 20);
|
||||||
var maxButtonSize = new Point(480, 80);
|
var maxButtonSize = new Point(480, 80);
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
luaSetup = this;
|
luaSetup = this;
|
||||||
|
|
||||||
PrintMessage("Lua!");
|
PrintMessage("Lua! Version " + AssemblyInfo.GitRevision);
|
||||||
|
|
||||||
luaScriptLoader = new LuaScriptLoader(this);
|
luaScriptLoader = new LuaScriptLoader(this);
|
||||||
luaScriptLoader.ModulePaths = new string[] { };
|
luaScriptLoader.ModulePaths = new string[] { };
|
||||||
@@ -487,7 +487,7 @@ namespace Barotrauma
|
|||||||
lua.Globals["SERVER"] = isServer;
|
lua.Globals["SERVER"] = isServer;
|
||||||
lua.Globals["CLIENT"] = !isServer;
|
lua.Globals["CLIENT"] = !isServer;
|
||||||
|
|
||||||
LuaDocs.GenerateDocs(typeof(EntitySpawner));
|
// LuaDocs.GenerateDocs(typeof(EntitySpawner));
|
||||||
|
|
||||||
if (File.Exists("Lua/MoonsharpSetup.lua")) // try the default loader
|
if (File.Exists("Lua/MoonsharpSetup.lua")) // try the default loader
|
||||||
DoFile("Lua/MoonsharpSetup.lua");
|
DoFile("Lua/MoonsharpSetup.lua");
|
||||||
|
|||||||
Reference in New Issue
Block a user