updated with current changes

This commit is contained in:
Bitl 2020-07-10 15:05:27 -07:00
parent 7eb36cc3f4
commit 35b56604d4
17 changed files with 1563 additions and 2350 deletions

View File

@ -92,6 +92,9 @@
<Reference Include="Mono.Nat">
<HintPath>..\packages\Mono.Nat.1.2.24.0\lib\net40\Mono.Nat.dll</HintPath>
</Reference>
<Reference Include="Nini, Version=1.1.0.0, Culture=neutral, PublicKeyToken=691faec150a7fa7b, processorArchitecture=MSIL">
<HintPath>..\packages\Trove.Nini.1.1.0.0\lib\net20\Nini.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>

View File

@ -5,4 +5,5 @@
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
<package id="Mono.Nat" version="1.2.24.0" targetFramework="net40" />
<package id="Trove.Nini" version="1.1.0.0" targetFramework="net40" />
</packages>

View File

@ -1,4 +1,5 @@
#region Usings
using Nini.Config;
using System;
using System.Diagnostics;
using System.Drawing;
@ -20,19 +21,19 @@ public class GlobalFuncs
string versionbranch, defaultclient, defaultmap, regclient1,
regclient2, issnapshot, snapshottemplate, snapshotrevision;
INIFile ini = new INIFile(infopath);
IConfigSource ini = new IniConfigSource(infopath);
string section = "ProgramInfo";
//not using the GlobalVars definitions as those are empty until we fill them in.
versionbranch = ini.IniReadValue(section, "Branch", "0.0");
defaultclient = ini.IniReadValue(section, "DefaultClient", "2009E");
defaultmap = ini.IniReadValue(section, "DefaultMap", "Dev - Baseplate2048.rbxl");
regclient1 = ini.IniReadValue(section, "UserAgentRegisterClient1", "2007M");
regclient2 = ini.IniReadValue(section, "UserAgentRegisterClient2", "2009L");
issnapshot = ini.IniReadValue(section, "IsSnapshot", "False");
snapshottemplate = ini.IniReadValue(section, "SnapshotTemplate", "%version% Snapshot (%build%.%revision%.%snapshot-revision%)");
snapshotrevision = ini.IniReadValue(section, "SnapshotRevision", "1");
versionbranch = ini.Configs[section].Get("Branch", "0.0");
defaultclient = ini.Configs[section].Get("DefaultClient", "2009E");
defaultmap = ini.Configs[section].Get("DefaultMap", "Dev - Baseplate2048.rbxl");
regclient1 = ini.Configs[section].Get("UserAgentRegisterClient1", "2007M");
regclient2 = ini.Configs[section].Get("UserAgentRegisterClient2", "2009L");
issnapshot = ini.Configs[section].Get("IsSnapshot", "False");
snapshottemplate = ini.Configs[section].Get("SnapshotTemplate", "%version% Snapshot (%build%.%revision%.%snapshot-revision%)");
snapshotrevision = ini.Configs[section].Get("SnapshotRevision", "1");
try
{
@ -92,28 +93,30 @@ public class GlobalFuncs
if (write)
{
//WRITE
INIFile ini = new INIFile(cfgpath);
IConfigSource ini = new IniConfigSource(cfgpath);
string section = "Config";
ini.IniWriteValue(section, "CloseOnLaunch", GlobalVars.UserConfiguration.CloseOnLaunch.ToString());
ini.IniWriteValue(section, "UserID", GlobalVars.UserConfiguration.UserID.ToString());
ini.IniWriteValue(section, "PlayerName", GlobalVars.UserConfiguration.PlayerName.ToString());
ini.IniWriteValue(section, "SelectedClient", GlobalVars.UserConfiguration.SelectedClient.ToString());
ini.IniWriteValue(section, "Map", GlobalVars.UserConfiguration.Map.ToString());
ini.IniWriteValue(section, "RobloxPort", GlobalVars.UserConfiguration.RobloxPort.ToString());
ini.IniWriteValue(section, "PlayerLimit", GlobalVars.UserConfiguration.PlayerLimit.ToString());
ini.IniWriteValue(section, "UPnP", GlobalVars.UserConfiguration.UPnP.ToString());
ini.IniWriteValue(section, "ItemMakerDisableHelpMessage", GlobalVars.UserConfiguration.DisabledItemMakerHelp.ToString());
ini.IniWriteValue(section, "PlayerTripcode", SecurityFuncs.Base64Encode(GlobalVars.UserConfiguration.PlayerTripcode.ToString()));
ini.IniWriteValue(section, "DiscordRichPresence", GlobalVars.UserConfiguration.DiscordPresence.ToString());
ini.IniWriteValue(section, "MapPath", GlobalVars.UserConfiguration.MapPath.ToString());
ini.IniWriteValue(section, "MapPathSnip", GlobalVars.UserConfiguration.MapPathSnip.ToString());
ini.IniWriteValue(section, "GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString());
ini.IniWriteValue(section, "ReShade", GlobalVars.UserConfiguration.ReShade.ToString());
ini.IniWriteValue(section, "QualityLevel", Settings.GraphicsOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString());
ini.IniWriteValue(section, "Style", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherStyle).ToString());
ini.IniWriteValue(section, "AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString());
ini.Configs[section].Set("CloseOnLaunch", GlobalVars.UserConfiguration.CloseOnLaunch.ToString());
ini.Configs[section].Set("UserID", GlobalVars.UserConfiguration.UserID.ToString());
ini.Configs[section].Set("PlayerName", GlobalVars.UserConfiguration.PlayerName.ToString());
ini.Configs[section].Set("SelectedClient", GlobalVars.UserConfiguration.SelectedClient.ToString());
ini.Configs[section].Set("Map", GlobalVars.UserConfiguration.Map.ToString());
ini.Configs[section].Set("RobloxPort", GlobalVars.UserConfiguration.RobloxPort.ToString());
ini.Configs[section].Set("PlayerLimit", GlobalVars.UserConfiguration.PlayerLimit.ToString());
ini.Configs[section].Set("UPnP", GlobalVars.UserConfiguration.UPnP.ToString());
ini.Configs[section].Set("ItemMakerDisableHelpMessage", GlobalVars.UserConfiguration.DisabledItemMakerHelp.ToString());
ini.Configs[section].Set("PlayerTripcode", SecurityFuncs.Base64Encode(GlobalVars.UserConfiguration.PlayerTripcode.ToString()));
ini.Configs[section].Set("DiscordRichPresence", GlobalVars.UserConfiguration.DiscordPresence.ToString());
ini.Configs[section].Set("MapPath", GlobalVars.UserConfiguration.MapPath.ToString());
ini.Configs[section].Set("MapPathSnip", GlobalVars.UserConfiguration.MapPathSnip.ToString());
ini.Configs[section].Set("GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString());
ini.Configs[section].Set("ReShade", GlobalVars.UserConfiguration.ReShade.ToString());
ini.Configs[section].Set("QualityLevel", Settings.GraphicsOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString());
ini.Configs[section].Set("Style", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherStyle).ToString());
ini.Configs[section].Set("AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString());
ini.Save();
}
else
{
@ -123,28 +126,28 @@ public class GlobalFuncs
disablehelpmessage, tripcode, discord, mappath, mapsnip,
graphics, reshade, qualitylevel, style, savebackups;
INIFile ini = new INIFile(cfgpath);
IConfigSource ini = new IniConfigSource(cfgpath);
string section = "Config";
closeonlaunch = ini.IniReadValue(section, "CloseOnLaunch", GlobalVars.UserConfiguration.CloseOnLaunch.ToString());
userid = ini.IniReadValue(section, "UserID", GlobalVars.UserConfiguration.UserID.ToString());
name = ini.IniReadValue(section, "PlayerName", GlobalVars.UserConfiguration.PlayerName.ToString());
selectedclient = ini.IniReadValue(section, "SelectedClient", GlobalVars.UserConfiguration.SelectedClient.ToString());
map = ini.IniReadValue(section, "Map", GlobalVars.UserConfiguration.Map.ToString());
port = ini.IniReadValue(section, "RobloxPort", GlobalVars.UserConfiguration.RobloxPort.ToString());
limit = ini.IniReadValue(section, "PlayerLimit", GlobalVars.UserConfiguration.PlayerLimit.ToString());
upnp = ini.IniReadValue(section, "UPnP", GlobalVars.UserConfiguration.UPnP.ToString());
disablehelpmessage = ini.IniReadValue(section, "ItemMakerDisableHelpMessage", GlobalVars.UserConfiguration.DisabledItemMakerHelp.ToString());
tripcode = ini.IniReadValue(section, "PlayerTripcode", GenerateAndReturnTripcode());
discord = ini.IniReadValue(section, "DiscordRichPresence", GlobalVars.UserConfiguration.DiscordPresence.ToString());
mappath = ini.IniReadValue(section, "MapPath", GlobalVars.UserConfiguration.MapPath.ToString());
mapsnip = ini.IniReadValue(section, "MapPathSnip", GlobalVars.UserConfiguration.MapPathSnip.ToString());
graphics = ini.IniReadValue(section, "GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString());
reshade = ini.IniReadValue(section, "ReShade", GlobalVars.UserConfiguration.ReShade.ToString());
qualitylevel = ini.IniReadValue(section, "QualityLevel", Settings.GraphicsOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString());
style = ini.IniReadValue(section, "Style", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherStyle).ToString());
savebackups = ini.IniReadValue(section, "AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString());
closeonlaunch = ini.Configs[section].Get("CloseOnLaunch", GlobalVars.UserConfiguration.CloseOnLaunch.ToString());
userid = ini.Configs[section].Get("UserID", GlobalVars.UserConfiguration.UserID.ToString());
name = ini.Configs[section].Get("PlayerName", GlobalVars.UserConfiguration.PlayerName.ToString());
selectedclient = ini.Configs[section].Get("SelectedClient", GlobalVars.UserConfiguration.SelectedClient.ToString());
map = ini.Configs[section].Get("Map", GlobalVars.UserConfiguration.Map.ToString());
port = ini.Configs[section].Get("RobloxPort", GlobalVars.UserConfiguration.RobloxPort.ToString());
limit = ini.Configs[section].Get("PlayerLimit", GlobalVars.UserConfiguration.PlayerLimit.ToString());
upnp = ini.Configs[section].Get("UPnP", GlobalVars.UserConfiguration.UPnP.ToString());
disablehelpmessage = ini.Configs[section].Get("ItemMakerDisableHelpMessage", GlobalVars.UserConfiguration.DisabledItemMakerHelp.ToString());
tripcode = ini.Configs[section].Get("PlayerTripcode", GenerateAndReturnTripcode());
discord = ini.Configs[section].Get("DiscordRichPresence", GlobalVars.UserConfiguration.DiscordPresence.ToString());
mappath = ini.Configs[section].Get("MapPath", GlobalVars.UserConfiguration.MapPath.ToString());
mapsnip = ini.Configs[section].Get("MapPathSnip", GlobalVars.UserConfiguration.MapPathSnip.ToString());
graphics = ini.Configs[section].Get("GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString());
reshade = ini.Configs[section].Get("ReShade", GlobalVars.UserConfiguration.ReShade.ToString());
qualitylevel = ini.Configs[section].Get("QualityLevel", Settings.GraphicsOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString());
style = ini.Configs[section].Get("Style", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherStyle).ToString());
savebackups = ini.Configs[section].Get("AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString());
try
{
@ -210,41 +213,43 @@ public class GlobalFuncs
if (write)
{
//WRITE
INIFile ini = new INIFile(cfgpath);
IConfigSource ini = new IniConfigSource(cfgpath);
string section = "Items";
ini.IniWriteValue(section, "Hat1", GlobalVars.UserCustomization.Hat1.ToString());
ini.IniWriteValue(section, "Hat2", GlobalVars.UserCustomization.Hat2.ToString());
ini.IniWriteValue(section, "Hat3", GlobalVars.UserCustomization.Hat3.ToString());
ini.IniWriteValue(section, "Face", GlobalVars.UserCustomization.Face.ToString());
ini.IniWriteValue(section, "Head", GlobalVars.UserCustomization.Head.ToString());
ini.IniWriteValue(section, "TShirt", GlobalVars.UserCustomization.TShirt.ToString());
ini.IniWriteValue(section, "Shirt", GlobalVars.UserCustomization.Shirt.ToString());
ini.IniWriteValue(section, "Pants", GlobalVars.UserCustomization.Pants.ToString());
ini.IniWriteValue(section, "Icon", GlobalVars.UserCustomization.Icon.ToString());
ini.IniWriteValue(section, "Extra", GlobalVars.UserCustomization.Extra.ToString());
ini.Configs[section].Set("Hat1", GlobalVars.UserCustomization.Hat1.ToString());
ini.Configs[section].Set("Hat2", GlobalVars.UserCustomization.Hat2.ToString());
ini.Configs[section].Set("Hat3", GlobalVars.UserCustomization.Hat3.ToString());
ini.Configs[section].Set("Face", GlobalVars.UserCustomization.Face.ToString());
ini.Configs[section].Set("Head", GlobalVars.UserCustomization.Head.ToString());
ini.Configs[section].Set("TShirt", GlobalVars.UserCustomization.TShirt.ToString());
ini.Configs[section].Set("Shirt", GlobalVars.UserCustomization.Shirt.ToString());
ini.Configs[section].Set("Pants", GlobalVars.UserCustomization.Pants.ToString());
ini.Configs[section].Set("Icon", GlobalVars.UserCustomization.Icon.ToString());
ini.Configs[section].Set("Extra", GlobalVars.UserCustomization.Extra.ToString());
string section2 = "Colors";
ini.IniWriteValue(section2, "HeadColorID", GlobalVars.UserCustomization.HeadColorID.ToString());
ini.IniWriteValue(section2, "HeadColorString", GlobalVars.UserCustomization.HeadColorString.ToString());
ini.IniWriteValue(section2, "TorsoColorID", GlobalVars.UserCustomization.TorsoColorID.ToString());
ini.IniWriteValue(section2, "TorsoColorString", GlobalVars.UserCustomization.TorsoColorString.ToString());
ini.IniWriteValue(section2, "LeftArmColorID", GlobalVars.UserCustomization.LeftArmColorID.ToString());
ini.IniWriteValue(section2, "LeftArmColorString", GlobalVars.UserCustomization.LeftArmColorString.ToString());
ini.IniWriteValue(section2, "RightArmColorID", GlobalVars.UserCustomization.RightArmColorID.ToString());
ini.IniWriteValue(section2, "RightArmColorString", GlobalVars.UserCustomization.RightArmColorString.ToString());
ini.IniWriteValue(section2, "LeftLegColorID", GlobalVars.UserCustomization.LeftLegColorID.ToString());
ini.IniWriteValue(section2, "LeftLegColorString", GlobalVars.UserCustomization.LeftLegColorString.ToString());
ini.IniWriteValue(section2, "RightLegColorID", GlobalVars.UserCustomization.RightLegColorID.ToString());
ini.IniWriteValue(section2, "RightLegColorString", GlobalVars.UserCustomization.RightLegColorString.ToString());
ini.Configs[section2].Set("HeadColorID", GlobalVars.UserCustomization.HeadColorID.ToString());
ini.Configs[section2].Set("HeadColorString", GlobalVars.UserCustomization.HeadColorString.ToString());
ini.Configs[section2].Set("TorsoColorID", GlobalVars.UserCustomization.TorsoColorID.ToString());
ini.Configs[section2].Set("TorsoColorString", GlobalVars.UserCustomization.TorsoColorString.ToString());
ini.Configs[section2].Set("LeftArmColorID", GlobalVars.UserCustomization.LeftArmColorID.ToString());
ini.Configs[section2].Set("LeftArmColorString", GlobalVars.UserCustomization.LeftArmColorString.ToString());
ini.Configs[section2].Set("RightArmColorID", GlobalVars.UserCustomization.RightArmColorID.ToString());
ini.Configs[section2].Set("RightArmColorString", GlobalVars.UserCustomization.RightArmColorString.ToString());
ini.Configs[section2].Set("LeftLegColorID", GlobalVars.UserCustomization.LeftLegColorID.ToString());
ini.Configs[section2].Set("LeftLegColorString", GlobalVars.UserCustomization.LeftLegColorString.ToString());
ini.Configs[section2].Set("RightLegColorID", GlobalVars.UserCustomization.RightLegColorID.ToString());
ini.Configs[section2].Set("RightLegColorString", GlobalVars.UserCustomization.RightLegColorString.ToString());
string section3 = "Other";
ini.IniWriteValue(section3, "CharacterID", GlobalVars.UserCustomization.CharacterID.ToString());
ini.IniWriteValue(section3, "ExtraSelectionIsHat", GlobalVars.UserCustomization.ExtraSelectionIsHat.ToString());
ini.IniWriteValue(section3, "ShowHatsOnExtra", GlobalVars.UserCustomization.ShowHatsInExtra.ToString());
ini.Configs[section3].Set("CharacterID", GlobalVars.UserCustomization.CharacterID.ToString());
ini.Configs[section3].Set("ExtraSelectionIsHat", GlobalVars.UserCustomization.ExtraSelectionIsHat.ToString());
ini.Configs[section3].Set("ShowHatsOnExtra", GlobalVars.UserCustomization.ShowHatsInExtra.ToString());
ini.Save();
}
else
{
@ -256,41 +261,41 @@ public class GlobalFuncs
larmid, larmstring, rarmid, rarmstring, llegid,
llegstring, rlegid, rlegstring, characterid, extraishat, showhatsonextra;
INIFile ini = new INIFile(cfgpath);
IConfigSource ini = new IniConfigSource(cfgpath);
string section = "Items";
hat1 = ini.IniReadValue(section, "Hat1", GlobalVars.UserCustomization.Hat1.ToString());
hat2 = ini.IniReadValue(section, "Hat2", GlobalVars.UserCustomization.Hat2.ToString());
hat3 = ini.IniReadValue(section, "Hat3", GlobalVars.UserCustomization.Hat3.ToString());
face = ini.IniReadValue(section, "Face", GlobalVars.UserCustomization.Face.ToString());
head = ini.IniReadValue(section, "Head", GlobalVars.UserCustomization.Head.ToString());
tshirt = ini.IniReadValue(section, "TShirt", GlobalVars.UserCustomization.TShirt.ToString());
shirt = ini.IniReadValue(section, "Shirt", GlobalVars.UserCustomization.Shirt.ToString());
pants = ini.IniReadValue(section, "Pants", GlobalVars.UserCustomization.Pants.ToString());
icon = ini.IniReadValue(section, "Icon", GlobalVars.UserCustomization.Icon.ToString());
extra = ini.IniReadValue(section, "Extra", GlobalVars.UserCustomization.Extra.ToString());
hat1 = ini.Configs[section].Get("Hat1", GlobalVars.UserCustomization.Hat1.ToString());
hat2 = ini.Configs[section].Get("Hat2", GlobalVars.UserCustomization.Hat2.ToString());
hat3 = ini.Configs[section].Get("Hat3", GlobalVars.UserCustomization.Hat3.ToString());
face = ini.Configs[section].Get("Face", GlobalVars.UserCustomization.Face.ToString());
head = ini.Configs[section].Get("Head", GlobalVars.UserCustomization.Head.ToString());
tshirt = ini.Configs[section].Get("TShirt", GlobalVars.UserCustomization.TShirt.ToString());
shirt = ini.Configs[section].Get("Shirt", GlobalVars.UserCustomization.Shirt.ToString());
pants = ini.Configs[section].Get("Pants", GlobalVars.UserCustomization.Pants.ToString());
icon = ini.Configs[section].Get("Icon", GlobalVars.UserCustomization.Icon.ToString());
extra = ini.Configs[section].Get("Extra", GlobalVars.UserCustomization.Extra.ToString());
string section2 = "Colors";
headcolorid = ini.IniReadValue(section2, "HeadColorID", GlobalVars.UserCustomization.HeadColorID.ToString());
headcolorstring = ini.IniReadValue(section2, "HeadColorString", GlobalVars.UserCustomization.HeadColorString.ToString());
torsocolorid = ini.IniReadValue(section2, "TorsoColorID", GlobalVars.UserCustomization.TorsoColorID.ToString());
torsocolorstring = ini.IniReadValue(section2, "TorsoColorString", GlobalVars.UserCustomization.TorsoColorString.ToString());
larmid = ini.IniReadValue(section2, "LeftArmColorID", GlobalVars.UserCustomization.LeftArmColorID.ToString());
larmstring = ini.IniReadValue(section2, "LeftArmColorString", GlobalVars.UserCustomization.LeftArmColorString.ToString());
rarmid = ini.IniReadValue(section2, "RightArmColorID", GlobalVars.UserCustomization.RightArmColorID.ToString());
rarmstring = ini.IniReadValue(section2, "RightArmColorString", GlobalVars.UserCustomization.RightArmColorString.ToString());
llegid = ini.IniReadValue(section2, "LeftLegColorID", GlobalVars.UserCustomization.LeftLegColorID.ToString());
llegstring = ini.IniReadValue(section2, "LeftLegColorString", GlobalVars.UserCustomization.LeftLegColorString.ToString());
rlegid = ini.IniReadValue(section2, "RightLegColorID", GlobalVars.UserCustomization.RightLegColorID.ToString());
rlegstring = ini.IniReadValue(section2, "RightLegColorString", GlobalVars.UserCustomization.RightLegColorString.ToString());
headcolorid = ini.Configs[section2].Get("HeadColorID", GlobalVars.UserCustomization.HeadColorID.ToString());
headcolorstring = ini.Configs[section2].Get("HeadColorString", GlobalVars.UserCustomization.HeadColorString.ToString());
torsocolorid = ini.Configs[section2].Get("TorsoColorID", GlobalVars.UserCustomization.TorsoColorID.ToString());
torsocolorstring = ini.Configs[section2].Get("TorsoColorString", GlobalVars.UserCustomization.TorsoColorString.ToString());
larmid = ini.Configs[section2].Get("LeftArmColorID", GlobalVars.UserCustomization.LeftArmColorID.ToString());
larmstring = ini.Configs[section2].Get("LeftArmColorString", GlobalVars.UserCustomization.LeftArmColorString.ToString());
rarmid = ini.Configs[section2].Get("RightArmColorID", GlobalVars.UserCustomization.RightArmColorID.ToString());
rarmstring = ini.Configs[section2].Get("RightArmColorString", GlobalVars.UserCustomization.RightArmColorString.ToString());
llegid = ini.Configs[section2].Get("LeftLegColorID", GlobalVars.UserCustomization.LeftLegColorID.ToString());
llegstring = ini.Configs[section2].Get("LeftLegColorString", GlobalVars.UserCustomization.LeftLegColorString.ToString());
rlegid = ini.Configs[section2].Get("RightLegColorID", GlobalVars.UserCustomization.RightLegColorID.ToString());
rlegstring = ini.Configs[section2].Get("RightLegColorString", GlobalVars.UserCustomization.RightLegColorString.ToString());
string section3 = "Other";
characterid = ini.IniReadValue(section3, "CharacterID", GlobalVars.UserCustomization.CharacterID.ToString());
extraishat = ini.IniReadValue(section3, "ExtraSelectionIsHat", GlobalVars.UserCustomization.ExtraSelectionIsHat.ToString());
showhatsonextra = ini.IniReadValue(section3, "ShowHatsOnExtra", GlobalVars.UserCustomization.ShowHatsInExtra.ToString());
characterid = ini.Configs[section3].Get("CharacterID", GlobalVars.UserCustomization.CharacterID.ToString());
extraishat = ini.Configs[section3].Get("ExtraSelectionIsHat", GlobalVars.UserCustomization.ExtraSelectionIsHat.ToString());
showhatsonextra = ini.Configs[section3].Get("ShowHatsOnExtra", GlobalVars.UserCustomization.ShowHatsInExtra.ToString());
try
{
@ -338,30 +343,32 @@ public class GlobalFuncs
if (write)
{
//WRITE
INIFile ini = new INIFile(cfgpath);
IConfigSource ini = new IniConfigSource(cfgpath);
string section = "GENERAL";
int FPS = GlobalVars.UserConfiguration.ReShadeFPSDisplay ? 1 : 0;
ini.IniWriteValue(section, "ShowFPS", FPS.ToString());
ini.IniWriteValue(section, "ShowFrameTime", FPS.ToString());
ini.Configs[section].Set("ShowFPS", FPS.ToString());
ini.Configs[section].Set("ShowFrameTime", FPS.ToString());
int PerformanceMode = GlobalVars.UserConfiguration.ReShadePerformanceMode ? 1 : 0;
ini.IniWriteValue(section, "PerformanceMode", PerformanceMode.ToString());
ini.Configs[section].Set("PerformanceMode", PerformanceMode.ToString());
ini.Save();
}
else
{
//READ
string framerate, frametime, performance;
INIFile ini = new INIFile(cfgpath);
IConfigSource ini = new IniConfigSource(cfgpath);
string section = "GENERAL";
int FPS = GlobalVars.UserConfiguration.ReShadeFPSDisplay ? 1 : 0;
framerate = ini.IniReadValue(section, "ShowFPS", FPS.ToString());
frametime = ini.IniReadValue(section, "ShowFrameTime", FPS.ToString());
framerate = ini.Configs[section].Get("ShowFPS", FPS.ToString());
frametime = ini.Configs[section].Get("ShowFrameTime", FPS.ToString());
int PerformanceMode = GlobalVars.UserConfiguration.ReShadePerformanceMode ? 1 : 0;
performance = ini.IniReadValue(section, "PerformanceMode", PerformanceMode.ToString());
performance = ini.Configs[section].Get("PerformanceMode", PerformanceMode.ToString());
if (setglobals)
{
@ -648,25 +655,6 @@ public class GlobalFuncs
return GlobalVars.UserConfiguration.PlayerTripcode;
}
public static Image LoadImage(string fileFullName)
{
Stream fileStream = File.OpenRead(fileFullName);
Image image = Image.FromStream(fileStream);
// PropertyItems seem to get lost when fileStream is closed to quickly (?); perhaps
// this is the reason Microsoft didn't want to close it in the first place.
PropertyItem[] items = image.PropertyItems;
fileStream.Close();
foreach (PropertyItem item in items)
{
image.SetPropertyItem(item);
}
return image;
}
public static void UpdateRichPresence(GlobalVars.LauncherState state, string mapname, bool initial = false)
{
if (GlobalVars.UserConfiguration.DiscordPresence)

View File

@ -1,67 +0,0 @@
#region Usings
using System;
using System.Runtime.InteropServices;
using System.Text;
#endregion
#region INI File Parser
//modified from https://www.codeproject.com/articles/1966/an-ini-file-handling-class-using-c?fid=425860&df=90&mpp=25&prof=True&sort=Position&view=Normal&spc=Relaxed&fr=51
public class INIFile
{
public string path;
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string section,
string key, string val, string filePath);
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,
string key, string def, StringBuilder retVal,
int size, string filePath);
/// <summary>
/// INIFile Constructor.
/// </summary>
/// <PARAM name="INIPath"></PARAM>
public INIFile(string INIPath)
{
path = INIPath;
}
/// <summary>
/// Write Data to the INI File
/// </summary>
/// <PARAM name="Section"></PARAM>
/// Section name
/// <PARAM name="Key"></PARAM>
/// Key Name
/// <PARAM name="Value"></PARAM>
/// Value Name
public void IniWriteValue(string Section, string Key, string Value)
{
WritePrivateProfileString(Section, Key, Value, this.path);
}
/// <summary>
/// Read Data Value From the Ini File
/// </summary>
/// <PARAM name="Section"></PARAM>
/// <PARAM name="Key"></PARAM>
/// <PARAM name="Default Value. Optional for creating values in case they are invalid."></PARAM>
/// <returns></returns>
public string IniReadValue(string Section, string Key, string DefaultValue = "")
{
try
{
StringBuilder temp = new StringBuilder(255);
int i = GetPrivateProfileString(Section, Key, "", temp,
255, this.path);
return temp.ToString();
}
catch (Exception)
{
IniWriteValue(Section, Key, DefaultValue);
return IniReadValue(Section, Key);
}
}
}
#endregion

View File

@ -14,7 +14,6 @@
<Compile Include="$(MSBuildThisFileDirectory)GlobalPaths.cs" />
<Compile Include="$(MSBuildThisFileDirectory)GlobalVars.cs" />
<Compile Include="$(MSBuildThisFileDirectory)IDiscordRPC.cs" />
<Compile Include="$(MSBuildThisFileDirectory)INIFile.cs" />
<Compile Include="$(MSBuildThisFileDirectory)GlobalFuncs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)NETExt.cs" />
<Compile Include="$(MSBuildThisFileDirectory)NetFuncs.cs" />

View File

@ -151,8 +151,9 @@ public class SecurityFuncs
public static string GenerateMD5(string filename)
{
using (var md5 = MD5.Create()) {
using (var stream = File.OpenRead(filename))
using (var md5 = MD5.Create())
{
using (var stream = new BufferedStream(File.OpenRead(filename), 1200000))
{
return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", "");
}

View File

@ -0,0 +1,131 @@
#region Usings
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Forms;
#endregion
namespace NovetusLauncher
{
#region Customization Functions
class CustomizationFuncs
{
//modified from the following:
//https://stackoverflow.com/questions/28887314/performance-of-image-loading
//https://stackoverflow.com/questions/2479771/c-why-am-i-getting-the-process-cannot-access-the-file-because-it-is-being-u
public static Image LoadImage(string fileFullName, string fallbackFileFullName = "")
{
Image image = null;
try
{
using (MemoryStream ms = new MemoryStream(File.ReadAllBytes(fileFullName)))
{
image = Image.FromStream(ms);
}
// PropertyItems seem to get lost when fileStream is closed to quickly (?); perhaps
// this is the reason Microsoft didn't want to close it in the first place.
PropertyItem[] items = image.PropertyItems;
foreach (PropertyItem item in items)
{
image.SetPropertyItem(item);
}
}
catch (Exception)
{
image = LoadImage(fallbackFileFullName);
}
return image;
}
public static void ChangeItem(string item, string itemdir, string defaultitem, PictureBox outputImage, TextBox outputString, ListBox box, bool initial, bool hatsinextra = false)
{
if (Directory.Exists(itemdir))
{
if (initial)
{
box.Items.Clear();
DirectoryInfo dinfo = new DirectoryInfo(itemdir);
FileInfo[] Files = dinfo.GetFiles("*.rbxm");
foreach (FileInfo file in Files)
{
if (file.Name.Equals(string.Empty))
{
continue;
}
if (hatsinextra)
{
if (file.Name.Equals("NoHat.rbxm"))
{
continue;
}
}
box.Items.Add(file.Name);
}
//selecting items triggers the event.
try
{
box.SelectedItem = item;
}
catch (Exception)
{
box.SelectedItem = defaultitem + ".rbxm";
}
box.Enabled = true;
}
}
if (File.Exists(itemdir + @"\\" + item.Replace(".rbxm", "") + "_desc.txt"))
{
outputString.Text = File.ReadAllText(itemdir + @"\\" + item.Replace(".rbxm", "") + "_desc.txt");
}
else
{
outputString.Text = item;
}
if (IsItemURL(item))
{
outputImage.Image = GetItemURLImage(item);
}
else
{
outputImage.Image = LoadImage(itemdir + @"\\" + item.Replace(".rbxm", "") + ".png", itemdir + @"\\" + defaultitem + ".png");
}
}
public static bool IsItemURL(string item)
{
switch (item)
{
case string finobe when finobe.Contains("http://finobe.com/asset/?id="):
return true;
case string roblox when roblox.Contains("http://www.roblox.com/asset/?id="):
return true;
default:
return false;
}
}
public static Image GetItemURLImage(string item)
{
switch (item)
{
case string finobe when finobe.Contains("http://finobe.com/asset/?id="):
return LoadImage(GlobalPaths.CustomPlayerDir + @"\\finobe.png", GlobalPaths.extradir + @"\\NoExtra.png");
case string roblox when roblox.Contains("http://www.roblox.com/asset/?id="):
return LoadImage(GlobalPaths.CustomPlayerDir + @"\\roblox.png", GlobalPaths.extradir + @"\\NoExtra.png");
default:
return LoadImage(GlobalPaths.extradir + @"\\NoExtra.png");
}
}
}
#endregion
}

View File

@ -1,4 +1,7 @@
#region Usings
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
#endregion

View File

@ -127,24 +127,27 @@ namespace NovetusLauncher
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.listBox4 = new System.Windows.Forms.ListBox();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.TShirtsTypeBox = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
this.textBox11 = new System.Windows.Forms.TextBox();
this.TShirtsIDBox = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.button46 = new System.Windows.Forms.Button();
this.button47 = new System.Windows.Forms.Button();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.listBox5 = new System.Windows.Forms.ListBox();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.ShirtsTypeBox = new System.Windows.Forms.ComboBox();
this.label10 = new System.Windows.Forms.Label();
this.textBox12 = new System.Windows.Forms.TextBox();
this.ShirtsIDBox = new System.Windows.Forms.TextBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.button48 = new System.Windows.Forms.Button();
this.button49 = new System.Windows.Forms.Button();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.listBox6 = new System.Windows.Forms.ListBox();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.PantsTypeBox = new System.Windows.Forms.ComboBox();
this.label11 = new System.Windows.Forms.Label();
this.textBox13 = new System.Windows.Forms.TextBox();
this.PantsIDBox = new System.Windows.Forms.TextBox();
this.textBox9 = new System.Windows.Forms.TextBox();
this.button50 = new System.Windows.Forms.Button();
this.button51 = new System.Windows.Forms.Button();
@ -173,9 +176,6 @@ namespace NovetusLauncher
this.button54 = new System.Windows.Forms.Button();
this.button53 = new System.Windows.Forms.Button();
this.button52 = new System.Windows.Forms.Button();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox3.SuspendLayout();
@ -1176,9 +1176,9 @@ namespace NovetusLauncher
//
// tabPage4
//
this.tabPage4.Controls.Add(this.comboBox2);
this.tabPage4.Controls.Add(this.TShirtsTypeBox);
this.tabPage4.Controls.Add(this.label9);
this.tabPage4.Controls.Add(this.textBox11);
this.tabPage4.Controls.Add(this.TShirtsIDBox);
this.tabPage4.Controls.Add(this.textBox7);
this.tabPage4.Controls.Add(this.button46);
this.tabPage4.Controls.Add(this.button47);
@ -1191,6 +1191,19 @@ namespace NovetusLauncher
this.tabPage4.Text = "T-SHIRTS";
this.tabPage4.UseVisualStyleBackColor = true;
//
// TShirtsTypeBox
//
this.TShirtsTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.TShirtsTypeBox.FormattingEnabled = true;
this.TShirtsTypeBox.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.TShirtsTypeBox.Location = new System.Drawing.Point(6, 162);
this.TShirtsTypeBox.Name = "TShirtsTypeBox";
this.TShirtsTypeBox.Size = new System.Drawing.Size(194, 21);
this.TShirtsTypeBox.TabIndex = 80;
this.TShirtsTypeBox.SelectedIndexChanged += new System.EventHandler(this.TShirtsTypeBox_SelectedIndexChanged);
//
// label9
//
this.label9.AutoSize = true;
@ -1200,13 +1213,13 @@ namespace NovetusLauncher
this.label9.TabIndex = 70;
this.label9.Text = "Custom T-Shirt ID";
//
// textBox11
// TShirtsIDBox
//
this.textBox11.Location = new System.Drawing.Point(6, 136);
this.textBox11.Name = "textBox11";
this.textBox11.Size = new System.Drawing.Size(100, 20);
this.textBox11.TabIndex = 69;
this.textBox11.TextChanged += new System.EventHandler(this.textBox11_TextChanged);
this.TShirtsIDBox.Location = new System.Drawing.Point(6, 136);
this.TShirtsIDBox.Name = "TShirtsIDBox";
this.TShirtsIDBox.Size = new System.Drawing.Size(100, 20);
this.TShirtsIDBox.TabIndex = 69;
this.TShirtsIDBox.TextChanged += new System.EventHandler(this.TShirtsIDBox_TextChanged);
//
// textBox7
//
@ -1259,9 +1272,9 @@ namespace NovetusLauncher
//
// tabPage5
//
this.tabPage5.Controls.Add(this.comboBox1);
this.tabPage5.Controls.Add(this.ShirtsTypeBox);
this.tabPage5.Controls.Add(this.label10);
this.tabPage5.Controls.Add(this.textBox12);
this.tabPage5.Controls.Add(this.ShirtsIDBox);
this.tabPage5.Controls.Add(this.textBox8);
this.tabPage5.Controls.Add(this.button48);
this.tabPage5.Controls.Add(this.button49);
@ -1274,6 +1287,19 @@ namespace NovetusLauncher
this.tabPage5.Text = "SHIRTS";
this.tabPage5.UseVisualStyleBackColor = true;
//
// ShirtsTypeBox
//
this.ShirtsTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.ShirtsTypeBox.FormattingEnabled = true;
this.ShirtsTypeBox.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.ShirtsTypeBox.Location = new System.Drawing.Point(6, 162);
this.ShirtsTypeBox.Name = "ShirtsTypeBox";
this.ShirtsTypeBox.Size = new System.Drawing.Size(194, 21);
this.ShirtsTypeBox.TabIndex = 80;
this.ShirtsTypeBox.SelectedIndexChanged += new System.EventHandler(this.ShirtsTypeBox_SelectedIndexChanged);
//
// label10
//
this.label10.AutoSize = true;
@ -1283,13 +1309,13 @@ namespace NovetusLauncher
this.label10.TabIndex = 72;
this.label10.Text = "Custom Shirt ID";
//
// textBox12
// ShirtsIDBox
//
this.textBox12.Location = new System.Drawing.Point(6, 136);
this.textBox12.Name = "textBox12";
this.textBox12.Size = new System.Drawing.Size(100, 20);
this.textBox12.TabIndex = 71;
this.textBox12.TextChanged += new System.EventHandler(this.textBox12_TextChanged);
this.ShirtsIDBox.Location = new System.Drawing.Point(6, 136);
this.ShirtsIDBox.Name = "ShirtsIDBox";
this.ShirtsIDBox.Size = new System.Drawing.Size(100, 20);
this.ShirtsIDBox.TabIndex = 71;
this.ShirtsIDBox.TextChanged += new System.EventHandler(this.ShirtsIDBox_TextChanged);
//
// textBox8
//
@ -1342,9 +1368,9 @@ namespace NovetusLauncher
//
// tabPage6
//
this.tabPage6.Controls.Add(this.comboBox3);
this.tabPage6.Controls.Add(this.PantsTypeBox);
this.tabPage6.Controls.Add(this.label11);
this.tabPage6.Controls.Add(this.textBox13);
this.tabPage6.Controls.Add(this.PantsIDBox);
this.tabPage6.Controls.Add(this.textBox9);
this.tabPage6.Controls.Add(this.button50);
this.tabPage6.Controls.Add(this.button51);
@ -1357,6 +1383,19 @@ namespace NovetusLauncher
this.tabPage6.Text = "PANTS";
this.tabPage6.UseVisualStyleBackColor = true;
//
// PantsTypeBox
//
this.PantsTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.PantsTypeBox.FormattingEnabled = true;
this.PantsTypeBox.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.PantsTypeBox.Location = new System.Drawing.Point(6, 162);
this.PantsTypeBox.Name = "PantsTypeBox";
this.PantsTypeBox.Size = new System.Drawing.Size(194, 21);
this.PantsTypeBox.TabIndex = 79;
this.PantsTypeBox.SelectedIndexChanged += new System.EventHandler(this.PantsTypeBox_SelectedIndexChanged);
//
// label11
//
this.label11.AutoSize = true;
@ -1366,13 +1405,13 @@ namespace NovetusLauncher
this.label11.TabIndex = 74;
this.label11.Text = "Custom Pants ID";
//
// textBox13
// PantsIDBox
//
this.textBox13.Location = new System.Drawing.Point(6, 136);
this.textBox13.Name = "textBox13";
this.textBox13.Size = new System.Drawing.Size(100, 20);
this.textBox13.TabIndex = 73;
this.textBox13.TextChanged += new System.EventHandler(this.textBox13_TextChanged);
this.PantsIDBox.Location = new System.Drawing.Point(6, 136);
this.PantsIDBox.Name = "PantsIDBox";
this.PantsIDBox.Size = new System.Drawing.Size(100, 20);
this.PantsIDBox.TabIndex = 73;
this.PantsIDBox.TextChanged += new System.EventHandler(this.PantsIDBox_TextChanged);
//
// textBox9
//
@ -1675,49 +1714,7 @@ namespace NovetusLauncher
this.button52.UseVisualStyleBackColor = true;
this.button52.Click += new System.EventHandler(this.Button52Click);
//
// comboBox3
//
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox3.SelectedItem = "Roblox";
this.comboBox3.Location = new System.Drawing.Point(6, 162);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(194, 21);
this.comboBox3.TabIndex = 79;
this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged);
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox1.SelectedItem = "Roblox";
this.comboBox1.Location = new System.Drawing.Point(6, 162);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(194, 21);
this.comboBox1.TabIndex = 80;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox2.SelectedItem = "Roblox";
this.comboBox2.Location = new System.Drawing.Point(6, 162);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(194, 21);
this.comboBox2.TabIndex = 80;
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
//
// CharacterCustomization_legacy
// CharacterCustomizationCompact
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@ -1727,7 +1724,7 @@ namespace NovetusLauncher
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "CharacterCustomization_legacy";
this.Name = "CharacterCustomizationCompact";
this.Text = "Avatar Customization";
this.Closing += new System.ComponentModel.CancelEventHandler(this.CharacterCustomizationClose);
this.Load += new System.EventHandler(this.CharacterCustomizationLoad);
@ -1899,13 +1896,13 @@ namespace NovetusLauncher
private System.Windows.Forms.TextBox textBox10;
public System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox textBox11;
private System.Windows.Forms.TextBox TShirtsIDBox;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textBox12;
private System.Windows.Forms.TextBox ShirtsIDBox;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox textBox13;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox3;
private System.Windows.Forms.TextBox PantsIDBox;
private System.Windows.Forms.ComboBox TShirtsTypeBox;
private System.Windows.Forms.ComboBox ShirtsTypeBox;
private System.Windows.Forms.ComboBox PantsTypeBox;
}
}

View File

@ -140,24 +140,27 @@ namespace NovetusLauncher
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.listBox4 = new System.Windows.Forms.ListBox();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.TShirtsTypeBox = new System.Windows.Forms.ComboBox();
this.label13 = new System.Windows.Forms.Label();
this.textBox12 = new System.Windows.Forms.TextBox();
this.TShirtsIDBox = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.button46 = new System.Windows.Forms.Button();
this.button47 = new System.Windows.Forms.Button();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.listBox5 = new System.Windows.Forms.ListBox();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.ShirtsTypeBox = new System.Windows.Forms.ComboBox();
this.label14 = new System.Windows.Forms.Label();
this.textBox11 = new System.Windows.Forms.TextBox();
this.ShirtsIDBox = new System.Windows.Forms.TextBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.button48 = new System.Windows.Forms.Button();
this.button49 = new System.Windows.Forms.Button();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.listBox6 = new System.Windows.Forms.ListBox();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.PantsTypeBox = new System.Windows.Forms.ComboBox();
this.label15 = new System.Windows.Forms.Label();
this.textBox13 = new System.Windows.Forms.TextBox();
this.PantsIDBox = new System.Windows.Forms.TextBox();
this.textBox9 = new System.Windows.Forms.TextBox();
this.button50 = new System.Windows.Forms.Button();
this.button51 = new System.Windows.Forms.Button();
@ -190,9 +193,6 @@ namespace NovetusLauncher
this.button82 = new System.Windows.Forms.Button();
this.button42 = new System.Windows.Forms.Button();
this.button81 = new System.Windows.Forms.Button();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.tabControl1.SuspendLayout();
@ -1357,9 +1357,9 @@ namespace NovetusLauncher
//
// tabPage4
//
this.tabPage4.Controls.Add(this.comboBox3);
this.tabPage4.Controls.Add(this.TShirtsTypeBox);
this.tabPage4.Controls.Add(this.label13);
this.tabPage4.Controls.Add(this.textBox12);
this.tabPage4.Controls.Add(this.TShirtsIDBox);
this.tabPage4.Controls.Add(this.textBox7);
this.tabPage4.Controls.Add(this.button46);
this.tabPage4.Controls.Add(this.button47);
@ -1372,6 +1372,19 @@ namespace NovetusLauncher
this.tabPage4.Text = "T-SHIRTS";
this.tabPage4.UseVisualStyleBackColor = true;
//
// TShirtsTypeBox
//
this.TShirtsTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.TShirtsTypeBox.FormattingEnabled = true;
this.TShirtsTypeBox.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.TShirtsTypeBox.Location = new System.Drawing.Point(3, 221);
this.TShirtsTypeBox.Name = "TShirtsTypeBox";
this.TShirtsTypeBox.Size = new System.Drawing.Size(253, 21);
this.TShirtsTypeBox.TabIndex = 78;
this.TShirtsTypeBox.SelectedIndexChanged += new System.EventHandler(this.TShirtsTypeBox_SelectedIndexChanged);
//
// label13
//
this.label13.AutoSize = true;
@ -1381,13 +1394,13 @@ namespace NovetusLauncher
this.label13.TabIndex = 74;
this.label13.Text = "Custom T-Shirt ID";
//
// textBox12
// TShirtsIDBox
//
this.textBox12.Location = new System.Drawing.Point(3, 195);
this.textBox12.Name = "textBox12";
this.textBox12.Size = new System.Drawing.Size(100, 20);
this.textBox12.TabIndex = 73;
this.textBox12.TextChanged += new System.EventHandler(this.textBox12_TextChanged);
this.TShirtsIDBox.Location = new System.Drawing.Point(3, 195);
this.TShirtsIDBox.Name = "TShirtsIDBox";
this.TShirtsIDBox.Size = new System.Drawing.Size(100, 20);
this.TShirtsIDBox.TabIndex = 73;
this.TShirtsIDBox.TextChanged += new System.EventHandler(this.TShirtsIDBox_TextChanged);
//
// textBox7
//
@ -1440,9 +1453,9 @@ namespace NovetusLauncher
//
// tabPage5
//
this.tabPage5.Controls.Add(this.comboBox2);
this.tabPage5.Controls.Add(this.ShirtsTypeBox);
this.tabPage5.Controls.Add(this.label14);
this.tabPage5.Controls.Add(this.textBox11);
this.tabPage5.Controls.Add(this.ShirtsIDBox);
this.tabPage5.Controls.Add(this.textBox8);
this.tabPage5.Controls.Add(this.button48);
this.tabPage5.Controls.Add(this.button49);
@ -1455,6 +1468,19 @@ namespace NovetusLauncher
this.tabPage5.Text = "SHIRTS";
this.tabPage5.UseVisualStyleBackColor = true;
//
// ShirtsTypeBox
//
this.ShirtsTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.ShirtsTypeBox.FormattingEnabled = true;
this.ShirtsTypeBox.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.ShirtsTypeBox.Location = new System.Drawing.Point(3, 221);
this.ShirtsTypeBox.Name = "ShirtsTypeBox";
this.ShirtsTypeBox.Size = new System.Drawing.Size(253, 21);
this.ShirtsTypeBox.TabIndex = 78;
this.ShirtsTypeBox.SelectedIndexChanged += new System.EventHandler(this.ShirtsTypeBox_SelectedIndexChanged);
//
// label14
//
this.label14.AutoSize = true;
@ -1464,13 +1490,13 @@ namespace NovetusLauncher
this.label14.TabIndex = 76;
this.label14.Text = "Custom Shirt ID";
//
// textBox11
// ShirtsIDBox
//
this.textBox11.Location = new System.Drawing.Point(3, 195);
this.textBox11.Name = "textBox11";
this.textBox11.Size = new System.Drawing.Size(100, 20);
this.textBox11.TabIndex = 75;
this.textBox11.TextChanged += new System.EventHandler(this.textBox11_TextChanged);
this.ShirtsIDBox.Location = new System.Drawing.Point(3, 195);
this.ShirtsIDBox.Name = "ShirtsIDBox";
this.ShirtsIDBox.Size = new System.Drawing.Size(100, 20);
this.ShirtsIDBox.TabIndex = 75;
this.ShirtsIDBox.TextChanged += new System.EventHandler(this.ShirtsIDBox_TextChanged);
//
// textBox8
//
@ -1523,9 +1549,9 @@ namespace NovetusLauncher
//
// tabPage6
//
this.tabPage6.Controls.Add(this.comboBox1);
this.tabPage6.Controls.Add(this.PantsTypeBox);
this.tabPage6.Controls.Add(this.label15);
this.tabPage6.Controls.Add(this.textBox13);
this.tabPage6.Controls.Add(this.PantsIDBox);
this.tabPage6.Controls.Add(this.textBox9);
this.tabPage6.Controls.Add(this.button50);
this.tabPage6.Controls.Add(this.button51);
@ -1538,6 +1564,19 @@ namespace NovetusLauncher
this.tabPage6.Text = "PANTS";
this.tabPage6.UseVisualStyleBackColor = true;
//
// PantsTypeBox
//
this.PantsTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.PantsTypeBox.FormattingEnabled = true;
this.PantsTypeBox.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.PantsTypeBox.Location = new System.Drawing.Point(3, 221);
this.PantsTypeBox.Name = "PantsTypeBox";
this.PantsTypeBox.Size = new System.Drawing.Size(253, 21);
this.PantsTypeBox.TabIndex = 77;
this.PantsTypeBox.SelectedIndexChanged += new System.EventHandler(this.PantsTypeBox_SelectedIndexChanged);
//
// label15
//
this.label15.AutoSize = true;
@ -1547,13 +1586,13 @@ namespace NovetusLauncher
this.label15.TabIndex = 76;
this.label15.Text = "Custom Pants ID";
//
// textBox13
// PantsIDBox
//
this.textBox13.Location = new System.Drawing.Point(3, 195);
this.textBox13.Name = "textBox13";
this.textBox13.Size = new System.Drawing.Size(100, 20);
this.textBox13.TabIndex = 75;
this.textBox13.TextChanged += new System.EventHandler(this.textBox13_TextChanged);
this.PantsIDBox.Location = new System.Drawing.Point(3, 195);
this.PantsIDBox.Name = "PantsIDBox";
this.PantsIDBox.Size = new System.Drawing.Size(100, 20);
this.PantsIDBox.TabIndex = 75;
this.PantsIDBox.TextChanged += new System.EventHandler(this.PantsIDBox_TextChanged);
//
// textBox9
//
@ -1898,49 +1937,7 @@ namespace NovetusLauncher
this.button81.UseVisualStyleBackColor = true;
this.button81.Click += new System.EventHandler(this.button81_Click);
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox1.SelectedItem = "Roblox";
this.comboBox1.Location = new System.Drawing.Point(3, 221);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(194, 21);
this.comboBox1.TabIndex = 77;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox2.SelectedItem = "Roblox";
this.comboBox2.Location = new System.Drawing.Point(3, 221);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(194, 21);
this.comboBox2.TabIndex = 78;
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
//
// comboBox3
//
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox3.SelectedItem = "Roblox";
this.comboBox3.Location = new System.Drawing.Point(3, 221);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(194, 21);
this.comboBox3.TabIndex = 78;
this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged);
//
// CharacterCustomization
// CharacterCustomizationExtended
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@ -1952,7 +1949,7 @@ namespace NovetusLauncher
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "CharacterCustomization";
this.Name = "CharacterCustomizationExtended";
this.Text = "Avatar Customization";
this.Closing += new System.ComponentModel.CancelEventHandler(this.CharacterCustomizationClose);
this.Load += new System.EventHandler(this.CharacterCustomizationLoad);
@ -2146,13 +2143,13 @@ namespace NovetusLauncher
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox textBox12;
private System.Windows.Forms.TextBox TShirtsIDBox;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox textBox11;
private System.Windows.Forms.TextBox ShirtsIDBox;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TextBox textBox13;
private System.Windows.Forms.ComboBox comboBox3;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.TextBox PantsIDBox;
private System.Windows.Forms.ComboBox TShirtsTypeBox;
private System.Windows.Forms.ComboBox ShirtsTypeBox;
private System.Windows.Forms.ComboBox PantsTypeBox;
}
}

View File

@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACe
OAAAAk1TRnQBSQFMAgEBAwEAAXwBAAF8AQABQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
OAAAAk1TRnQBSQFMAgEBAwEAAYwBAAGMAQABQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
BAABAQIAAUADAAEBAQABCAYAAUAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View File

@ -92,6 +92,9 @@
<Reference Include="Mono.Nat">
<HintPath>..\packages\Mono.Nat.1.2.24.0\lib\net40\Mono.Nat.dll</HintPath>
</Reference>
<Reference Include="Nini, Version=1.1.0.0, Culture=neutral, PublicKeyToken=691faec150a7fa7b, processorArchitecture=MSIL">
<HintPath>..\packages\Trove.Nini.1.1.0.0\lib\net20\Nini.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
@ -122,6 +125,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Classes\CharCustom\CustomizationFuncs.cs" />
<Compile Include="Classes\Launcher\LauncherFuncs.cs" />
<Compile Include="Classes\SDK\SDKFuncs.cs" />
<Compile Include="Forms\CharacterCustomization\Compact\CharacterCustomizationCompact.cs">

View File

@ -5,4 +5,5 @@
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
<package id="Mono.Nat" version="1.2.24.0" targetFramework="net40" />
<package id="Trove.Nini" version="1.1.0.0" targetFramework="net40" />
</packages>

View File

@ -60,6 +60,9 @@
<HintPath>..\packages\Mono.Nat.1.2.24.0\lib\net40\Mono.Nat.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Nini, Version=1.1.0.0, Culture=neutral, PublicKeyToken=691faec150a7fa7b, processorArchitecture=MSIL">
<HintPath>..\packages\Trove.Nini.1.1.0.0\lib\net20\Nini.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.IO, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">

View File

@ -5,4 +5,5 @@
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
<package id="Mono.Nat" version="1.2.24.0" targetFramework="net40" />
<package id="Trove.Nini" version="1.1.0.0" targetFramework="net40" />
</packages>