Added SDK launcher.

This commit is contained in:
Bitl 2019-11-09 12:23:43 -07:00
parent cf7bfd8c3f
commit a83895e6ea
10 changed files with 48412 additions and 29 deletions

View File

@ -1136,7 +1136,7 @@ namespace NovetusLauncher
}
else if (string.Compare(command,"sdk",true, CultureInfo.InvariantCulture) == 0)
{
ConsoleHelp(2);
LoadLauncher();
}
else if (string.Compare(command,"sdk clientinfo",true, CultureInfo.InvariantCulture) == 0)
{
@ -1275,8 +1275,15 @@ namespace NovetusLauncher
cie.Show();
ConsolePrint("Novetus Client SDK Loaded.", 4);
}
void ConsoleHelp(int page)
void LoadLauncher()
{
NovetusSDK im = new NovetusSDK();
im.Show();
ConsolePrint("Novetus SDK Launcher Loaded.", 4);
}
void ConsoleHelp(int page)
{
if (page == 1)
{
@ -1290,7 +1297,8 @@ namespace NovetusLauncher
{
ConsolePrint("Help: sdk", 3);
ConsolePrint("-------------------------", 1);
ConsolePrint("= clientinfo | Launches the Novetus Client SDK", 4);
ConsolePrint("-- sdk | Launches the Novetus SDK Launcher", 4);
ConsolePrint("= clientinfo | Launches the Novetus Client SDK", 4);
ConsolePrint("= itemmaker | Launches the Novetus Item SDK", 4);
}
else if (page == 3)
@ -1312,7 +1320,8 @@ namespace NovetusLauncher
ConsolePrint("= studio | Launches Roblox Studio with launcher settings", 3);
ConsolePrint("---------", 1);
ConsolePrint("= sdk", 3);
ConsolePrint("-- clientinfo | Launches the Novetus Client SDK", 4);
ConsolePrint("-- sdk | Launches the Novetus SDK Launcher", 4);
ConsolePrint("-- clientinfo | Launches the Novetus Client SDK", 4);
ConsolePrint("-- itemmaker | Launches the Novetus Item SDK", 4);
ConsolePrint("---------", 1);
ConsolePrint("= config", 3);

View File

@ -106,6 +106,17 @@
<Compile Include="LoaderForm.Designer.cs">
<DependentUpon>LoaderForm.cs</DependentUpon>
</Compile>
<Compile Include="NovetusSDK.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="NovetusSDK.Designer.cs">
<DependentUpon>NovetusSDK.cs</DependentUpon>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="QuickConfigure.cs">
<SubType>Form</SubType>
</Compile>
@ -146,6 +157,13 @@
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="NovetusSDK.resx">
<DependentUpon>NovetusSDK.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="QuickConfigure.resx">
<DependentUpon>QuickConfigure.cs</DependentUpon>
</EmbeddedResource>

View File

@ -0,0 +1,117 @@
namespace NovetusLauncher
{
partial class NovetusSDK
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NovetusSDK));
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.SuspendLayout();
//
// pictureBox2
//
this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage")));
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox2.Location = new System.Drawing.Point(12, 12);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(260, 52);
this.pictureBox2.TabIndex = 8;
this.pictureBox2.TabStop = false;
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 71);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(260, 36);
this.button1.TabIndex = 9;
this.button1.Text = "Item SDK";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(12, 113);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(260, 36);
this.button2.TabIndex = 10;
this.button2.Text = "Client SDK";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(12, 155);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(260, 36);
this.button3.TabIndex = 11;
this.button3.Text = "ClientScript Documentation";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// label1
//
this.label1.Location = new System.Drawing.Point(12, 194);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(260, 16);
this.label1.TabIndex = 12;
this.label1.Text = "v1.0";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// NovetusSDK
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(284, 219);
this.Controls.Add(this.label1);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.pictureBox2);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "NovetusSDK";
this.Text = "Novetus SDK";
this.Load += new System.EventHandler(this.NovetusSDK_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label1;
}
}

View File

@ -0,0 +1,41 @@
using System;
using System.IO;
using System.Windows.Forms;
namespace NovetusLauncher
{
public partial class NovetusSDK : Form
{
public NovetusSDK()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
ItemMaker im = new ItemMaker();
im.Show();
}
private void button2_Click(object sender, EventArgs e)
{
ClientinfoEditor cie = new ClientinfoEditor();
cie.Show();
}
private void button3_Click(object sender, EventArgs e)
{
ClientScriptDocumentation csd = new ClientScriptDocumentation();
csd.Show();
}
private void NovetusSDK_Load(object sender, EventArgs e)
{
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
string version = lines[0];
Text = "Novetus SDK " + version;
label1.Text = version;
GlobalVars.Version = version;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -41,23 +41,11 @@ namespace NovetusLauncher
GlobalVars.SharedArgs = ProcessInput(s);
}
if (GlobalVars.SharedArgs.Equals("-itemmaker"))
{
Application.Run(new ItemMaker());
}
else if (GlobalVars.SharedArgs.Equals("-clientinfo"))
{
Application.Run(new ClientinfoEditor());
}
else if (GlobalVars.SharedArgs.Equals("-quickconfigure"))
{
Application.Run(new QuickConfigure());
}
else if (GlobalVars.SharedArgs.Equals("-documentation"))
{
Application.Run(new ClientScriptDocumentation());
}
else
if (GlobalVars.SharedArgs.Equals("-sdk"))
{
Application.Run(new NovetusSDK());
}
else
{
Application.Run(new LoaderForm());
}

View File

@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace NovetusLauncher.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NovetusLauncher.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -31,9 +31,16 @@ Name: "quicklaunchicon"; Description: "Create a icon on your Quick Launch Menu";
[Files]
Source: "Novetus\Novetus.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\Novetus.exe.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\NovetusCMD.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\NovetusCMD.exe.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\NovetusSDK.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\discord-rpc.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\Mono.Nat.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\README.TXT"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\changelog.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\info.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\documentation.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\LICENCE.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\novetus_steamartwork.png"; DestDir: "{app}"; Flags: ignoreversion
Source: "Novetus\clients\*"; DestDir: "{app}\clients"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "Novetus\maps\*"; DestDir: "{app}\maps"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "Novetus\models\*"; DestDir: "{app}\models"; Flags: ignoreversion recursesubdirs createallsubdirs
@ -43,17 +50,16 @@ Source: "Novetus\_redist\*"; DestDir: "{app}\_redist"; Flags: ignoreversion recu
[Icons]
Name: "{group}\Novetus {#AppVer}"; Filename: "{app}\Novetus.exe"
Name: "{group}\Utilities\Novetus Client SDK"; Filename: "{app}\Novetus.exe" Parameters: "-clientinfo"
Name: "{group}\Utilities\Novetus Item SDK"; Filename: "{app}\Novetus.exe" Parameters: "-itemmaker"
Name: "{group}\Utilities\Quick Configure"; Filename: "{app}\Novetus.exe" Parameters: "-quickconfigure"
Name: "{group}\Utilities\ClientScript Documentation"; Filename: "{app}\Novetus.exe" Parameters: "-documentation"
Name: "{group}\Utilities\Novetus SDK"; Filename: "{app}\Novetus.exe" Parameters: "-sdk"
Name: "{group}\Uninstall Novetus {#AppVer}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\Novetus {#AppVer}"; Filename: "{app}\Novetus.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Novetus {#AppVer}"; Filename: "{app}\Novetus.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\_redist\netframework40install.exe"; Description: "Install .NET Framework 4.0"; Flags: nowait postinstall skipifsilent
Filename: "{app}\_redist\vcredist2005install32.exe"; Description: "Install Visual C++ 2005 Redistributable (32-bit)"; Flags: nowait postinstall skipifsilent
Filename: "{app}\_redist\dotnetfx45_full_x86_x64.exe"; Description: "Install Microsoft .NET Framework 4.5"; Flags: nowait postinstall skipifsilent
Filename: "{app}\_redist\vcredist2005_x86.exe"; Description: "Install Microsoft Visual C++ 2005 Redistributable (32-bit)"; Flags: nowait postinstall skipifsilent
Filename: "{app}\_redist\vcredist2008_x86.exe"; Description: "Install Microsoft Visual C++ 2008 Redistributable (32-bit)"; Flags: nowait postinstall skipifsilent
Filename: "{app}\Novetus.exe"; Description: "Play Novetus"; Flags: nowait postinstall skipifsilent unchecked
Filename: "{app}\Novetus.exe"; Description: "Open the Novetus SDK"; Parameters: "-sdk"; Flags: nowait postinstall skipifsilent unchecked
Filename: "{app}\README.TXT"; Description: "View the README file"; Flags: postinstall shellexec skipifsilent unchecked
Filename: "{app}\changelog.txt"; Description: "View the changelog"; Flags: postinstall shellexec skipifsilent unchecked