1 Commits

4 changed files with 29 additions and 15 deletions

20
Form1.Designer.cs generated
View File

@@ -38,7 +38,7 @@
this.checkUsername = new System.Windows.Forms.CheckBox();
this.checkUUID = new System.Windows.Forms.CheckBox();
this.btnPlay = new System.Windows.Forms.Button();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.SuspendLayout();
//
// textBoxUsername
@@ -62,9 +62,11 @@
this.labelUUID.AutoSize = true;
this.labelUUID.Location = new System.Drawing.Point(12, 94);
this.labelUUID.Name = "labelUUID";
this.labelUUID.Size = new System.Drawing.Size(42, 13);
this.labelUUID.Size = new System.Drawing.Size(67, 13);
this.labelUUID.TabIndex = 5;
this.labelUUID.Text = "8 Digits";
this.labelUUID.Text = "8 Digit UUID";
this.toolTip1.SetToolTip(this.labelUUID, "This is used to store player inventory data,\r\nas well as the username on servers." +
"\r\nIf it is different than the last one you used\r\nyou wont have your inventory.");
this.labelUUID.Click += new System.EventHandler(this.label2_Click);
//
// textBoxUUID
@@ -117,11 +119,13 @@
this.btnPlay.UseVisualStyleBackColor = true;
this.btnPlay.Click += new System.EventHandler(this.button2_Click);
//
// imageList1
// toolTip1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.toolTip1.AutoPopDelay = 10000;
this.toolTip1.InitialDelay = 200;
this.toolTip1.ReshowDelay = 100;
this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
this.toolTip1.ToolTipTitle = "UUID";
//
// Form1
//
@@ -153,7 +157,7 @@
private System.Windows.Forms.CheckBox checkUsername;
private System.Windows.Forms.CheckBox checkUUID;
private System.Windows.Forms.Button btnPlay;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.ToolTip toolTip1;
}
}

View File

@@ -168,16 +168,23 @@ namespace HelloWorld
string Hytaleappdir = "\\release\\package\\game\\latest";
string HytaleJava = "\\release\\package\\jre\\latest\\bin\\java.exe";
string arguments = " --app-dir "+workingDirectory+Hytaleappdir+" --user-dir "+baseDirectory+"UserData --java-exec "+ workingDirectory + HytaleJava+" --auth-mode offline --uuid 13371337-1337-1337-1337-1337"+textBoxUUID.Text+" --name \"" + textBoxUsername.Text + "\""; // Command-line arguments for the VB app
string GamePath = "\"" + workingDirectory + "\\" + relativeExePath + "\""; //hytale.exe
string AppPath = "\"" + workingDirectory + Hytaleappdir + "\""; // game\latest
string UserdataPath = "\"" + baseDirectory + "UserData"+"\""; // game\latest
string JavaPath = "\"" + workingDirectory + HytaleJava + "\""; // java
string arguments = " --app-dir " +AppPath+ " --user-dir " + UserdataPath + " --java-exec " + JavaPath + " --auth-mode offline --uuid 13371337-1337-1337-1337-1337" + textBoxUUID.Text + " --name \"" + textBoxUsername.Text + "\""; // Command-line arguments for the VB app
ProcessStartInfo startInfo = new ProcessStartInfo
{
FileName = relativeExePath,
FileName = GamePath,
Arguments = arguments,
UseShellExecute = true,
WorkingDirectory = workingDirectory
};
Console.WriteLine("Launching:");
Console.WriteLine(GamePath + arguments);
try
{
Process.Start(startInfo);

View File

@@ -117,8 +117,11 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 10</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>192</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.8.13.0")]
[assembly: AssemblyFileVersion("2.8.13.0")]
[assembly: AssemblyVersion("2.9.7.0")]
[assembly: AssemblyFileVersion("2.9.7.0")]