diff --git a/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs b/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs index 903cb1b..3ec38ce 100644 --- a/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs +++ b/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs @@ -734,7 +734,17 @@ class CharacterCustomizationShared string mapfile = GlobalPaths.BasePathLauncher + "\\preview\\content\\fonts\\3DView.rbxl"; string rbxexe = GlobalPaths.BasePathLauncher + (GlobalVars.AdminMode ? "\\preview\\3DView_studio.exe" : "\\preview\\3DView.exe"); 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 { Process client = new Process(); diff --git a/Novetus/NovetusCore/Classes/PartColors.cs b/Novetus/NovetusCore/Classes/PartColors.cs index ee8b359..8f13138 100644 --- a/Novetus/NovetusCore/Classes/PartColors.cs +++ b/Novetus/NovetusCore/Classes/PartColors.cs @@ -5,9 +5,7 @@ using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text.RegularExpressions; -using System.Threading.Tasks; using System.Windows.Forms; -using System.Xml; using System.Xml.Serialization; #endregion