Asset Localizer!!
This commit is contained in:
parent
b2af128d2d
commit
c3adb0928d
|
|
@ -24,7 +24,7 @@ public static class RobloxXMLLocalizer
|
|||
Pants
|
||||
}
|
||||
|
||||
public static void LoadRBXFile(string path, DLType type)
|
||||
public static void LoadRBXFile(DLType type)
|
||||
{
|
||||
OpenFileDialog openFileDialog1 = new OpenFileDialog()
|
||||
{
|
||||
|
|
@ -35,6 +35,8 @@ public static class RobloxXMLLocalizer
|
|||
|
||||
if (openFileDialog1.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string path = openFileDialog1.FileName;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case DLType.XML:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,85 @@
|
|||
namespace NovetusLauncher
|
||||
{
|
||||
partial class AssetLocalizer
|
||||
{
|
||||
/// <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(AssetLocalizer));
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(12, 39);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(240, 21);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Browse and Localize Asset";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// comboBox1
|
||||
//
|
||||
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Items.AddRange(new object[] {
|
||||
"RBXL/RBXM",
|
||||
"Hat",
|
||||
"Head",
|
||||
"Face",
|
||||
"Shirt",
|
||||
"T-Shirt",
|
||||
"Pants"});
|
||||
this.comboBox1.Location = new System.Drawing.Point(12, 12);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(240, 21);
|
||||
this.comboBox1.TabIndex = 1;
|
||||
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
||||
//
|
||||
// PlaceLocalizer
|
||||
//
|
||||
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(264, 70);
|
||||
this.Controls.Add(this.comboBox1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "PlaceLocalizer";
|
||||
this.Text = "Novetus Asset Localizer";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.ComboBox comboBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace NovetusLauncher
|
||||
{
|
||||
public partial class AssetLocalizer : Form
|
||||
{
|
||||
private RobloxXMLLocalizer.DLType currentType;
|
||||
|
||||
public AssetLocalizer()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
RobloxXMLLocalizer.LoadRBXFile(currentType);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Error: Unable to localize the asset. " + ex.Message, "Novetus Asset Localizer | Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (comboBox1.SelectedIndex == 0)
|
||||
{
|
||||
currentType = RobloxXMLLocalizer.DLType.XML;
|
||||
}
|
||||
else if (comboBox1.SelectedIndex == 1)
|
||||
{
|
||||
currentType = RobloxXMLLocalizer.DLType.Hat;
|
||||
}
|
||||
else if (comboBox1.SelectedIndex == 2)
|
||||
{
|
||||
currentType = RobloxXMLLocalizer.DLType.Head;
|
||||
}
|
||||
else if (comboBox1.SelectedIndex == 3)
|
||||
{
|
||||
currentType = RobloxXMLLocalizer.DLType.Face;
|
||||
}
|
||||
else if (comboBox1.SelectedIndex == 4)
|
||||
{
|
||||
currentType = RobloxXMLLocalizer.DLType.TShirt;
|
||||
}
|
||||
else if (comboBox1.SelectedIndex == 5)
|
||||
{
|
||||
currentType = RobloxXMLLocalizer.DLType.Shirt;
|
||||
}
|
||||
else if (comboBox1.SelectedIndex == 6)
|
||||
{
|
||||
currentType = RobloxXMLLocalizer.DLType.Pants;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -118,7 +118,7 @@ namespace NovetusLauncher
|
|||
LauncherFuncs.ReadConfigValues(cfgpath);
|
||||
}
|
||||
|
||||
comboBox1.Text = "http://www.roblox.com/";
|
||||
comboBox1.SelectedIndex = 0;
|
||||
isWebSite = false;
|
||||
|
||||
if (GlobalVars.DisabledHelp == true)
|
||||
|
|
|
|||
|
|
@ -117,16 +117,16 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="label9.Text" xml:space="preserve">
|
||||
<value>ROBLOX and the ROBLOX Clients were made by the ROBLOX Corporation. The ROBLOX Corporation does not support or endorse the creation of Novetus. Bitl is not affiliated with the ROBLOX Corporation or its subsidiaries. Bitl does not own any of the content included with Novetus. LUA scripts were used to build a client that can connect to LAN and the Internet. The LUA scripts used were borrowed from the RBXPri client and modified for this project. All credit for the LUA code included with the RBXPri client goes to the RBXPri team. All credit for the LUA code used with "non-modern" clients goes to Scripter John and EnergyCell. All credit for the LUA code used for character customization goes to RBXBanLand.
|
||||
</value>
|
||||
</data>
|
||||
<data name="label4.Text" xml:space="preserve">
|
||||
<value>NOTE:
|
||||
- If you have a problem where you can't see your character, REGENERATE YOUR PLAYER ID THEN REJOIN THE SERVER.
|
||||
- If you tried to connect to the server and you get an error, REJOIN THE SERVER.
|
||||
- To reset your character, type !!!reset into chat.
|
||||
|
||||
</value>
|
||||
</data>
|
||||
<data name="label9.Text" xml:space="preserve">
|
||||
<value>ROBLOX and the ROBLOX Clients were made by the ROBLOX Corporation. The ROBLOX Corporation does not support or endorse the creation of Novetus. Bitl is not affiliated with the ROBLOX Corporation or its subsidiaries. Bitl does not own any of the content included with Novetus. LUA scripts were used to build a client that can connect to LAN and the Internet. The LUA scripts used were borrowed from the RBXPri client and modified for this project. All credit for the LUA code included with the RBXPri client goes to the RBXPri team. All credit for the LUA code used with "non-modern" clients goes to Scripter John and EnergyCell. All credit for the LUA code used for character customization goes to RBXBanLand.
|
||||
</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
|
|
|
|||
|
|
@ -112,6 +112,12 @@
|
|||
<Compile Include="NovetusSDK.Designer.cs">
|
||||
<DependentUpon>NovetusSDK.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AssetLocalizer.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AssetLocalizer.Designer.cs">
|
||||
<DependentUpon>AssetLocalizer.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
|
|
@ -160,6 +166,9 @@
|
|||
<EmbeddedResource Include="NovetusSDK.resx">
|
||||
<DependentUpon>NovetusSDK.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AssetLocalizer.resx">
|
||||
<DependentUpon>AssetLocalizer.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
|
|
|||
|
|
@ -30,10 +30,8 @@
|
|||
{
|
||||
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();
|
||||
this.listBox1 = new System.Windows.Forms.ListBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
|
@ -47,36 +45,6 @@
|
|||
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);
|
||||
|
|
@ -86,16 +54,28 @@
|
|||
this.label1.Text = "v1.0";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// listBox1
|
||||
//
|
||||
this.listBox1.FormattingEnabled = true;
|
||||
this.listBox1.Items.AddRange(new object[] {
|
||||
"Item SDK",
|
||||
"Client SDK",
|
||||
"ClientScript Documentation",
|
||||
"Asset Localizer"});
|
||||
this.listBox1.Location = new System.Drawing.Point(12, 70);
|
||||
this.listBox1.Name = "listBox1";
|
||||
this.listBox1.Size = new System.Drawing.Size(260, 95);
|
||||
this.listBox1.TabIndex = 14;
|
||||
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
|
||||
//
|
||||
// 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.listBox1);
|
||||
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";
|
||||
|
|
@ -109,9 +89,7 @@
|
|||
#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;
|
||||
private System.Windows.Forms.ListBox listBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -37,5 +37,29 @@ namespace NovetusLauncher
|
|||
label1.Text = version;
|
||||
GlobalVars.Version = version;
|
||||
}
|
||||
|
||||
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (listBox1.SelectedIndex == 0)
|
||||
{
|
||||
ItemMaker im = new ItemMaker();
|
||||
im.Show();
|
||||
}
|
||||
else if (listBox1.SelectedIndex == 1)
|
||||
{
|
||||
ClientinfoEditor cie = new ClientinfoEditor();
|
||||
cie.Show();
|
||||
}
|
||||
else if (listBox1.SelectedIndex == 2)
|
||||
{
|
||||
ClientScriptDocumentation csd = new ClientScriptDocumentation();
|
||||
csd.Show();
|
||||
}
|
||||
else if (listBox1.SelectedIndex == 3)
|
||||
{
|
||||
AssetLocalizer al = new AssetLocalizer();
|
||||
al.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue