fixed itemmaker
This commit is contained in:
parent
ba1e3a7a54
commit
678a8c8557
|
|
@ -37,31 +37,20 @@ namespace NovetusLauncher
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemMaker));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemMaker));
|
||||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
||||||
this.button1 = new System.Windows.Forms.Button();
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
this.label3 = new System.Windows.Forms.Label();
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||||
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
|
||||||
this.label4 = new System.Windows.Forms.Label();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// textBox1
|
|
||||||
//
|
|
||||||
this.textBox1.Location = new System.Drawing.Point(3, 27);
|
|
||||||
this.textBox1.Name = "textBox1";
|
|
||||||
this.textBox1.Size = new System.Drawing.Size(229, 20);
|
|
||||||
this.textBox1.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// button1
|
// button1
|
||||||
//
|
//
|
||||||
this.button1.Location = new System.Drawing.Point(3, 120);
|
this.button1.Location = new System.Drawing.Point(3, 80);
|
||||||
this.button1.Name = "button1";
|
this.button1.Name = "button1";
|
||||||
this.button1.Size = new System.Drawing.Size(229, 23);
|
this.button1.Size = new System.Drawing.Size(238, 23);
|
||||||
this.button1.TabIndex = 1;
|
this.button1.TabIndex = 1;
|
||||||
this.button1.Text = "Create!";
|
this.button1.Text = "Create!";
|
||||||
this.button1.UseVisualStyleBackColor = true;
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
|
@ -69,34 +58,26 @@ namespace NovetusLauncher
|
||||||
//
|
//
|
||||||
// textBox2
|
// textBox2
|
||||||
//
|
//
|
||||||
this.textBox2.Location = new System.Drawing.Point(3, 67);
|
this.textBox2.Location = new System.Drawing.Point(46, 27);
|
||||||
this.textBox2.Name = "textBox2";
|
this.textBox2.Name = "textBox2";
|
||||||
this.textBox2.Size = new System.Drawing.Size(85, 20);
|
this.textBox2.Size = new System.Drawing.Size(76, 20);
|
||||||
this.textBox2.TabIndex = 2;
|
this.textBox2.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// numericUpDown1
|
// numericUpDown1
|
||||||
//
|
//
|
||||||
this.numericUpDown1.Location = new System.Drawing.Point(97, 66);
|
this.numericUpDown1.Location = new System.Drawing.Point(161, 27);
|
||||||
this.numericUpDown1.Maximum = new decimal(new int[] {
|
this.numericUpDown1.Maximum = new decimal(new int[] {
|
||||||
3,
|
3,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.numericUpDown1.Name = "numericUpDown1";
|
this.numericUpDown1.Name = "numericUpDown1";
|
||||||
this.numericUpDown1.Size = new System.Drawing.Size(39, 20);
|
this.numericUpDown1.Size = new System.Drawing.Size(36, 20);
|
||||||
this.numericUpDown1.TabIndex = 3;
|
this.numericUpDown1.TabIndex = 3;
|
||||||
//
|
//
|
||||||
// label1
|
|
||||||
//
|
|
||||||
this.label1.Location = new System.Drawing.Point(59, 10);
|
|
||||||
this.label1.Name = "label1";
|
|
||||||
this.label1.Size = new System.Drawing.Size(121, 14);
|
|
||||||
this.label1.TabIndex = 5;
|
|
||||||
this.label1.Text = "Item Name (No Spaces)";
|
|
||||||
//
|
|
||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
this.label2.Location = new System.Drawing.Point(21, 50);
|
this.label2.Location = new System.Drawing.Point(63, 10);
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(46, 14);
|
this.label2.Size = new System.Drawing.Size(46, 14);
|
||||||
this.label2.TabIndex = 6;
|
this.label2.TabIndex = 6;
|
||||||
|
|
@ -104,7 +85,7 @@ namespace NovetusLauncher
|
||||||
//
|
//
|
||||||
// label3
|
// label3
|
||||||
//
|
//
|
||||||
this.label3.Location = new System.Drawing.Point(94, 50);
|
this.label3.Location = new System.Drawing.Point(161, 9);
|
||||||
this.label3.Name = "label3";
|
this.label3.Name = "label3";
|
||||||
this.label3.Size = new System.Drawing.Size(42, 14);
|
this.label3.Size = new System.Drawing.Size(42, 14);
|
||||||
this.label3.TabIndex = 7;
|
this.label3.TabIndex = 7;
|
||||||
|
|
@ -116,54 +97,26 @@ namespace NovetusLauncher
|
||||||
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBox1.FormattingEnabled = true;
|
this.comboBox1.FormattingEnabled = true;
|
||||||
this.comboBox1.Items.AddRange(new object[] {
|
this.comboBox1.Items.AddRange(new object[] {
|
||||||
"http://www.roblox.com/",
|
"http://www.roblox.com/",
|
||||||
"http://assetgame.roblox.com/"});
|
"http://assetgame.roblox.com/"});
|
||||||
this.comboBox1.Location = new System.Drawing.Point(3, 93);
|
this.comboBox1.Location = new System.Drawing.Point(3, 53);
|
||||||
this.comboBox1.Name = "comboBox1";
|
this.comboBox1.Name = "comboBox1";
|
||||||
this.comboBox1.Size = new System.Drawing.Size(229, 21);
|
this.comboBox1.Size = new System.Drawing.Size(238, 21);
|
||||||
this.comboBox1.TabIndex = 8;
|
this.comboBox1.TabIndex = 8;
|
||||||
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ComboBox1SelectedIndexChanged);
|
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ComboBox1SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// comboBox2
|
|
||||||
//
|
|
||||||
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
||||||
this.comboBox2.FormattingEnabled = true;
|
|
||||||
this.comboBox2.Items.AddRange(new object[] {
|
|
||||||
"Item (.rbxm)",
|
|
||||||
"Texture (.png)",
|
|
||||||
"Mesh (.mesh)",
|
|
||||||
"Sound (.wav)"});
|
|
||||||
this.comboBox2.Location = new System.Drawing.Point(142, 65);
|
|
||||||
this.comboBox2.Name = "comboBox2";
|
|
||||||
this.comboBox2.Size = new System.Drawing.Size(90, 21);
|
|
||||||
this.comboBox2.TabIndex = 9;
|
|
||||||
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.ComboBox2SelectedIndexChanged);
|
|
||||||
//
|
|
||||||
// label4
|
|
||||||
//
|
|
||||||
this.label4.Location = new System.Drawing.Point(142, 50);
|
|
||||||
this.label4.Name = "label4";
|
|
||||||
this.label4.Size = new System.Drawing.Size(90, 14);
|
|
||||||
this.label4.TabIndex = 10;
|
|
||||||
this.label4.Text = "Type";
|
|
||||||
this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
|
||||||
//
|
|
||||||
// ItemMaker
|
// ItemMaker
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
||||||
this.ClientSize = new System.Drawing.Size(236, 152);
|
this.ClientSize = new System.Drawing.Size(244, 114);
|
||||||
this.Controls.Add(this.label4);
|
|
||||||
this.Controls.Add(this.comboBox2);
|
|
||||||
this.Controls.Add(this.comboBox1);
|
this.Controls.Add(this.comboBox1);
|
||||||
this.Controls.Add(this.label3);
|
this.Controls.Add(this.label3);
|
||||||
this.Controls.Add(this.label2);
|
this.Controls.Add(this.label2);
|
||||||
this.Controls.Add(this.label1);
|
|
||||||
this.Controls.Add(this.numericUpDown1);
|
this.Controls.Add(this.numericUpDown1);
|
||||||
this.Controls.Add(this.textBox2);
|
this.Controls.Add(this.textBox2);
|
||||||
this.Controls.Add(this.button1);
|
this.Controls.Add(this.button1);
|
||||||
this.Controls.Add(this.textBox1);
|
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
|
|
@ -173,16 +126,13 @@ namespace NovetusLauncher
|
||||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
private System.Windows.Forms.Label label4;
|
|
||||||
private System.Windows.Forms.ComboBox comboBox2;
|
|
||||||
private System.Windows.Forms.ComboBox comboBox1;
|
private System.Windows.Forms.ComboBox comboBox1;
|
||||||
private System.Windows.Forms.Label label3;
|
private System.Windows.Forms.Label label3;
|
||||||
private System.Windows.Forms.Label label2;
|
private System.Windows.Forms.Label label2;
|
||||||
private System.Windows.Forms.Label label1;
|
|
||||||
private System.Windows.Forms.NumericUpDown numericUpDown1;
|
private System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||||
private System.Windows.Forms.TextBox textBox2;
|
private System.Windows.Forms.TextBox textBox2;
|
||||||
private System.Windows.Forms.TextBox textBox1;
|
|
||||||
private System.Windows.Forms.Button button1;
|
private System.Windows.Forms.Button button1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ namespace NovetusLauncher
|
||||||
public partial class ItemMaker : Form
|
public partial class ItemMaker : Form
|
||||||
{
|
{
|
||||||
private static string url = "http://www.roblox.com/asset?id=";
|
private static string url = "http://www.roblox.com/asset?id=";
|
||||||
private static string type = ".rbxm";
|
|
||||||
|
|
||||||
public ItemMaker()
|
public ItemMaker()
|
||||||
{
|
{
|
||||||
|
|
@ -43,14 +42,9 @@ namespace NovetusLauncher
|
||||||
{
|
{
|
||||||
string version = (numericUpDown1.Value != 0) ? "&version=" + numericUpDown1.Value : "";
|
string version = (numericUpDown1.Value != 0) ? "&version=" + numericUpDown1.Value : "";
|
||||||
|
|
||||||
using (WebClient wc = new WebClient())
|
System.Diagnostics.Process.Start(url + textBox2.Text + version);
|
||||||
{
|
|
||||||
var ua = "Roblox/WinInet";
|
|
||||||
wc.Headers.Add(HttpRequestHeader.UserAgent, ua);
|
|
||||||
wc.DownloadFileAsync(new System.Uri(url + textBox2.Text + version), GlobalVars.BasePath + "\\" + textBox1.Text + type);
|
|
||||||
}
|
|
||||||
|
|
||||||
MessageBox.Show("Item downloaded into your Novetus directory! In order for the item to work in Novetus, you'll need to find an icon for your item (it must be a .png file), then name it the same name as your item.\n\nIf you want to create a local (offline) item, you'll have to download the meshes/textures from the links in the rbxm file, then replace the links in the file pointing to where they are using rbxasset://. Look at the directory in the 'shareddata/charcustom' folder that best suits your item type, then look at the rbxm for any one of the items. If you get a corrupted file, change the URL using the drop down box.","Novetus Item SDK", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show("In order for the item to work in Novetus, you'll need to find an icon for your item (it must be a .png file), then name it the same name as your item.\n\nIf you want to create a local (offline) item, you'll have to download the meshes/textures from the links in the rbxm file, then replace the links in the file pointing to where they are using rbxasset://. Look at the directory in the 'shareddata/charcustom' folder that best suits your item type, then look at the rbxm for any one of the items. If you get a corrupted file, change the URL using the drop down box.\n\nIf you're trying to create a offline item. please use these file extension names when saving your files:\n.rbxm - ROBLOX Model/Item\n.mesh - ROBLOX Mesh\n.png - Texture/Icon\n.wav - Sound","Novetus Item SDK", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
catch(Exception)
|
catch(Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -72,28 +66,7 @@ namespace NovetusLauncher
|
||||||
|
|
||||||
void ItemMakerLoad(object sender, EventArgs e)
|
void ItemMakerLoad(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
comboBox1.Text = "http://www.roblox.com/";
|
comboBox1.Text = "http://www.roblox.com/";
|
||||||
comboBox2.Text = "Item (.rbxm)";
|
|
||||||
}
|
|
||||||
|
|
||||||
void ComboBox2SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (comboBox2.SelectedIndex == 0)
|
|
||||||
{
|
|
||||||
type = ".rbxm";
|
|
||||||
}
|
|
||||||
else if (comboBox2.SelectedIndex == 1)
|
|
||||||
{
|
|
||||||
type = ".png";
|
|
||||||
}
|
|
||||||
else if (comboBox2.SelectedIndex == 2)
|
|
||||||
{
|
|
||||||
type = ".mesh";
|
|
||||||
}
|
|
||||||
else if (comboBox2.SelectedIndex == 3)
|
|
||||||
{
|
|
||||||
type = ".wav";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
NovetusLauncher/packages/ProFileDownloader.4.0.0/ProFileDownloader.4.0.0.nupkg
vendored
Normal file
BIN
NovetusLauncher/packages/ProFileDownloader.4.0.0/ProFileDownloader.4.0.0.nupkg
vendored
Normal file
Binary file not shown.
112
NovetusLauncher/packages/ProFileDownloader.4.0.0/lib/netcoreapp2.1/ProFileDownloader.xml
vendored
Normal file
112
NovetusLauncher/packages/ProFileDownloader.4.0.0/lib/netcoreapp2.1/ProFileDownloader.xml
vendored
Normal file
|
|
@ -0,0 +1,112 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>ProFileDownloader</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="T:ProFileDownloader.FileTransferer.Downloader">
|
||||||
|
<summary>
|
||||||
|
A class which represents a file downloader
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:ProFileDownloader.FileTransferer.Downloader.SuggestedFileName">
|
||||||
|
<summary>
|
||||||
|
Giving a name to overwrite the remote suggested file name.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.Downloader.#ctor(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Initialize the downloader.
|
||||||
|
</summary>
|
||||||
|
<param name="Url">Url of the remote file.</param>
|
||||||
|
<param name="DirectoryPath">Where the local file should be saved at.</param>
|
||||||
|
</member>
|
||||||
|
<member name="P:ProFileDownloader.FileTransferer.Downloader.SizeInReadableFormat">
|
||||||
|
<summary>
|
||||||
|
Giving you a readable format for the remote file size.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.Downloader.LoadRemoteFilePropertiesAsync">
|
||||||
|
<summary>
|
||||||
|
Loads the downloader with the required information about the remote file.
|
||||||
|
</summary>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="P:ProFileDownloader.FileTransferer.Downloader.IsRemoteServerSupportFileSegmentaion">
|
||||||
|
<summary>
|
||||||
|
Indicates if the remote server supports the file segmentation or not
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:ProFileDownloader.FileTransferer.Downloader.IsRemoteServerSupportResuming">
|
||||||
|
<summary>
|
||||||
|
Indicates if the remote server supports the file resuming or not
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.Downloader.UpdateRemoteFilePropertiesForResuming">
|
||||||
|
<summary>
|
||||||
|
Updates the downloader with the new changes that happened to the remote file, to match the least changes to be able to resume downloading the file.
|
||||||
|
</summary>
|
||||||
|
<returns>
|
||||||
|
Updates the remote file properties.
|
||||||
|
</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.Downloader.DownloadFileAsync(System.Action{System.Single},System.Threading.CancellationToken)">
|
||||||
|
<summary>
|
||||||
|
Download the remote file.
|
||||||
|
</summary>
|
||||||
|
<param name="CurrentProgress">Gets the current downloading process</param>
|
||||||
|
<param name="cancellationToken">A token to cancel the downloading process if you want.</param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:ProFileDownloader.FileTransferer.FileSegmentaionDownloader">
|
||||||
|
<summary>
|
||||||
|
A class which represents segments downloader
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.FileSegmentaionDownloader.#ctor(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
Initialize the segment downloader.
|
||||||
|
</summary>
|
||||||
|
<param name="Url">Url of the remote file.</param>
|
||||||
|
<param name="DirectoryPath">Where the local file should be saved at.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.FileSegmentaionDownloader.LoadFileSegmentsAsync">
|
||||||
|
<summary>
|
||||||
|
Load the segments of the remote file.
|
||||||
|
</summary>
|
||||||
|
<returns>List of segments are stored</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.FileSegmentaionDownloader.GetBasicSegmentsInfo">
|
||||||
|
<summary>
|
||||||
|
Gets the segments basic data, to be stored on your own, for later resuming needs.
|
||||||
|
</summary>
|
||||||
|
<returns>Json Content, which is need to be stored in somewhere on your own.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.FileSegmentaionDownloader.LoadFileSegmentsForResumingAsync(System.String)">
|
||||||
|
<summary>
|
||||||
|
Load the Segments data from the JsonContent
|
||||||
|
</summary>
|
||||||
|
<param name="JsonContent">Json Content, which you got from the <see cref="M:ProFileDownloader.FileTransferer.FileSegmentaionDownloader.GetBasicSegmentsInfo"/> </param>
|
||||||
|
<returns>reloaded segments to be able to resumed</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.FileSegmentaionDownloader.DownloadFileSegmensAsync(System.Action{System.Single},System.Threading.CancellationToken)">
|
||||||
|
<summary>
|
||||||
|
Start downloading the segments
|
||||||
|
</summary>
|
||||||
|
<param name="CurrentProgress">Gets the current downloading process</param>
|
||||||
|
<param name="cancellationToken">A token to cancel the downloading process if you want.</param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:ProFileDownloader.FileTransferer.FileSegmentaionDownloader.ReconstructSegmentsAsync">
|
||||||
|
<summary>
|
||||||
|
Reconstract the segments from the temp files that got created.
|
||||||
|
</summary>
|
||||||
|
<returns>A complete file in the directory that you specified in the constructor.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:ProFileDownloader.NetworkFile.FileUtilities">
|
||||||
|
<summary>
|
||||||
|
Provides Utility Methods for dealing with files.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
Loading…
Reference in New Issue