mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 17:53:01 +02:00
small polishes
This commit is contained in:
parent
fee733e6c0
commit
3d7f352610
@ -734,7 +734,17 @@ class CharacterCustomizationShared
|
|||||||
string mapfile = GlobalPaths.BasePathLauncher + "\\preview\\content\\fonts\\3DView.rbxl";
|
string mapfile = GlobalPaths.BasePathLauncher + "\\preview\\content\\fonts\\3DView.rbxl";
|
||||||
string rbxexe = GlobalPaths.BasePathLauncher + (GlobalVars.AdminMode ? "\\preview\\3DView_studio.exe" : "\\preview\\3DView.exe");
|
string rbxexe = GlobalPaths.BasePathLauncher + (GlobalVars.AdminMode ? "\\preview\\3DView_studio.exe" : "\\preview\\3DView.exe");
|
||||||
string quote = "\"";
|
string quote = "\"";
|
||||||
string args = quote + mapfile + "\" -script \" dofile('" + luafile + "'); _G.CS3DView(0,'" + GlobalVars.UserConfiguration.PlayerName + "'," + GlobalVars.Loadout + ");" + quote;
|
string script = "_G.CS3DView(0,'" + GlobalVars.UserConfiguration.PlayerName + "'," + GlobalVars.Loadout + ");";
|
||||||
|
if (GlobalVars.AdminMode)
|
||||||
|
{
|
||||||
|
DialogResult adminres = MessageBox.Show("Would you like to run 3D Preview Studio with or without scripts?\n\nPress Yes to load with scripts, press No to load without.", "Novetus - 3D Preview Studio", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
|
||||||
|
|
||||||
|
if (adminres == DialogResult.No)
|
||||||
|
{
|
||||||
|
script = "_G.CS3DViewEdit();";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
string args = quote + mapfile + "\" -script \" dofile('" + luafile + "');" + script + quote;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Process client = new Process();
|
Process client = new Process();
|
||||||
|
@ -5,9 +5,7 @@ using System.Drawing.Imaging;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Xml;
|
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user