Added AutoSave setting to all file type editors

This commit is contained in:
miku-666
2023-05-15 20:54:00 +02:00
parent b92511f4a0
commit c14aeef833
19 changed files with 2100 additions and 2014 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -7,6 +7,7 @@ using System.Collections.Generic;
using PckStudio.Internal;
using PckStudio.Forms.Additional_Popups;
using PckStudio.Properties;
namespace PckStudio.Forms.Editor
{
@@ -87,6 +88,7 @@ namespace PckStudio.Forms.Editor
anim.SetFlag(item.Value, checkbox.Checked);
});
}
OnCheckboxChanged?.Invoke(anim);
}
internal void ApplyAnim(SkinANIM anim)
@@ -162,6 +164,9 @@ namespace PckStudio.Forms.Editor
public ANIMEditor(string ANIM)
{
InitializeComponent();
saveButton.Visible = !Settings.Default.AutoSaveChanges;
if (!SkinANIM.IsValidANIM(ANIM))
{
DialogResult = DialogResult.Abort;
@@ -215,7 +220,6 @@ namespace PckStudio.Forms.Editor
private void saveButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void copyButton_Click(object sender, EventArgs e)
@@ -244,13 +248,11 @@ namespace PckStudio.Forms.Editor
private void uncheckAllButton_Click(object sender, EventArgs e)
{
ruleset.SetAll(false);
setDisplayAnim(ruleset.Value);
}
private void checkAllButton_Click(object sender, EventArgs e)
{
ruleset.SetAll(true);
setDisplayAnim(ruleset.Value);
}
private void exportButton_Click(object sender, EventArgs e)
@@ -342,5 +344,13 @@ namespace PckStudio.Forms.Editor
templateANIM = ruleset.Value | templateANIM;
ruleset.ApplyAnim(templateANIM);
}
private void ANIMEditor_FormClosing(object sender, FormClosingEventArgs e)
{
if (Settings.Default.AutoSaveChanges)
{
saveButton_Click(sender, EventArgs.Empty);
}
}
}
}

View File

@@ -14,6 +14,7 @@ using OMI.Formats.Pck;
using System.Collections.Generic;
using PckStudio.Models;
using System.Diagnostics;
using PckStudio.Properties;
namespace PckStudio.Forms.Editor
{
@@ -46,6 +47,8 @@ namespace PckStudio.Forms.Editor
exportAsToolStripMenuItem.Enabled =
InterpolationCheckbox.Visible = !IsEditingSpecial;
saveToolStripMenuItem1.Visible = !Settings.Default.AutoSaveChanges;
animationFile = file;
if (file.Size > 0)
@@ -432,6 +435,10 @@ namespace PckStudio.Forms.Editor
{
animationPictureBox.Stop();
}
if (Settings.Default.AutoSaveChanges)
{
saveToolStripMenuItem1_Click(sender, EventArgs.Empty);
}
}
private void importGifToolStripMenuItem_Click(object sender, EventArgs e)

View File

@@ -29,304 +29,306 @@ namespace PckStudio.Forms.Editor
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AudioEditor));
this.treeView1 = new System.Windows.Forms.TreeView();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.addCategoryStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeCategoryStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.changeCategoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.catImages = new System.Windows.Forms.ImageList(this.components);
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.deleteUnusedBINKAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openDataFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.bulkReplaceExistingTracksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.organizeTracksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToAddSongsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.whatAreTheCategoriesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToEditCreditsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.optimizeDataFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.bINKACompressionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.treeView2 = new System.Windows.Forms.TreeView();
this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.addEntryMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeEntryMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.verifyFileLocationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.convertToWAVToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.playOverworldInCreative = new MetroFramework.Controls.MetroCheckBox();
this.compressionUpDown = new System.Windows.Forms.NumericUpDown();
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.contextMenuStrip1.SuspendLayout();
this.menuStrip.SuspendLayout();
this.contextMenuStrip2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.compressionUpDown)).BeginInit();
this.SuspendLayout();
//
// treeView1
//
resources.ApplyResources(this.treeView1, "treeView1");
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView1.ContextMenuStrip = this.contextMenuStrip1;
this.treeView1.ForeColor = System.Drawing.Color.White;
this.treeView1.ImageList = this.catImages;
this.treeView1.LabelEdit = true;
this.treeView1.Name = "treeView1";
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
this.treeView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AudioEditor));
this.treeView1 = new System.Windows.Forms.TreeView();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.addCategoryStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeCategoryStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.changeCategoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.catImages = new System.Windows.Forms.ImageList(this.components);
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.deleteUnusedBINKAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openDataFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.bulkReplaceExistingTracksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.organizeTracksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToAddSongsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.whatAreTheCategoriesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToEditCreditsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.optimizeDataFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.bINKACompressionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.treeView2 = new System.Windows.Forms.TreeView();
this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.addEntryMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeEntryMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.verifyFileLocationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.convertToWAVToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.playOverworldInCreative = new MetroFramework.Controls.MetroCheckBox();
this.compressionUpDown = new System.Windows.Forms.NumericUpDown();
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.contextMenuStrip1.SuspendLayout();
this.menuStrip.SuspendLayout();
this.contextMenuStrip2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.compressionUpDown)).BeginInit();
this.SuspendLayout();
//
// treeView1
//
resources.ApplyResources(this.treeView1, "treeView1");
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView1.ContextMenuStrip = this.contextMenuStrip1;
this.treeView1.ForeColor = System.Drawing.Color.White;
this.treeView1.ImageList = this.catImages;
this.treeView1.LabelEdit = true;
this.treeView1.Name = "treeView1";
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
this.treeView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addCategoryStripMenuItem,
this.removeCategoryStripMenuItem,
this.changeCategoryToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
//
// addCategoryStripMenuItem
//
resources.ApplyResources(this.addCategoryStripMenuItem, "addCategoryStripMenuItem");
this.addCategoryStripMenuItem.Name = "addCategoryStripMenuItem";
this.addCategoryStripMenuItem.Click += new System.EventHandler(this.addCategoryStripMenuItem_Click);
//
// removeCategoryStripMenuItem
//
this.removeCategoryStripMenuItem.Name = "removeCategoryStripMenuItem";
resources.ApplyResources(this.removeCategoryStripMenuItem, "removeCategoryStripMenuItem");
this.removeCategoryStripMenuItem.Click += new System.EventHandler(this.removeCategoryStripMenuItem_Click);
//
// changeCategoryToolStripMenuItem
//
this.changeCategoryToolStripMenuItem.Name = "changeCategoryToolStripMenuItem";
resources.ApplyResources(this.changeCategoryToolStripMenuItem, "changeCategoryToolStripMenuItem");
this.changeCategoryToolStripMenuItem.Click += new System.EventHandler(this.setCategoryToolStripMenuItem_Click);
//
// catImages
//
this.catImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("catImages.ImageStream")));
this.catImages.TransparentColor = System.Drawing.Color.Transparent;
this.catImages.Images.SetKeyName(0, "0_overworld.png");
this.catImages.Images.SetKeyName(1, "1_nether.png");
this.catImages.Images.SetKeyName(2, "2_end.png");
this.catImages.Images.SetKeyName(3, "4_creative.png");
this.catImages.Images.SetKeyName(4, "3_menu.png");
this.catImages.Images.SetKeyName(5, "5_mg01.png");
this.catImages.Images.SetKeyName(6, "6_mg02.png");
this.catImages.Images.SetKeyName(7, "7_mg03.png");
this.catImages.Images.SetKeyName(8, "8_unused.png");
//
// menuStrip
//
resources.ApplyResources(this.menuStrip, "menuStrip");
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.contextMenuStrip1.Name = "contextMenuStrip1";
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
//
// addCategoryStripMenuItem
//
resources.ApplyResources(this.addCategoryStripMenuItem, "addCategoryStripMenuItem");
this.addCategoryStripMenuItem.Name = "addCategoryStripMenuItem";
this.addCategoryStripMenuItem.Click += new System.EventHandler(this.addCategoryStripMenuItem_Click);
//
// removeCategoryStripMenuItem
//
this.removeCategoryStripMenuItem.Name = "removeCategoryStripMenuItem";
resources.ApplyResources(this.removeCategoryStripMenuItem, "removeCategoryStripMenuItem");
this.removeCategoryStripMenuItem.Click += new System.EventHandler(this.removeCategoryStripMenuItem_Click);
//
// changeCategoryToolStripMenuItem
//
this.changeCategoryToolStripMenuItem.Name = "changeCategoryToolStripMenuItem";
resources.ApplyResources(this.changeCategoryToolStripMenuItem, "changeCategoryToolStripMenuItem");
this.changeCategoryToolStripMenuItem.Click += new System.EventHandler(this.setCategoryToolStripMenuItem_Click);
//
// catImages
//
this.catImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("catImages.ImageStream")));
this.catImages.TransparentColor = System.Drawing.Color.Transparent;
this.catImages.Images.SetKeyName(0, "0_overworld.png");
this.catImages.Images.SetKeyName(1, "1_nether.png");
this.catImages.Images.SetKeyName(2, "2_end.png");
this.catImages.Images.SetKeyName(3, "4_creative.png");
this.catImages.Images.SetKeyName(4, "3_menu.png");
this.catImages.Images.SetKeyName(5, "5_mg01.png");
this.catImages.Images.SetKeyName(6, "6_mg02.png");
this.catImages.Images.SetKeyName(7, "7_mg03.png");
this.catImages.Images.SetKeyName(8, "8_unused.png");
//
// menuStrip
//
resources.ApplyResources(this.menuStrip, "menuStrip");
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.toolsToolStripMenuItem,
this.helpToolStripMenuItem});
this.menuStrip.Name = "menuStrip";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuStrip.Name = "menuStrip";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.saveToolStripMenuItem1});
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
//
// saveToolStripMenuItem1
//
resources.ApplyResources(this.saveToolStripMenuItem1, "saveToolStripMenuItem1");
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
//
// toolsToolStripMenuItem
//
this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
//
// saveToolStripMenuItem1
//
resources.ApplyResources(this.saveToolStripMenuItem1, "saveToolStripMenuItem1");
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
//
// toolsToolStripMenuItem
//
this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.deleteUnusedBINKAsToolStripMenuItem,
this.openDataFolderToolStripMenuItem,
this.bulkReplaceExistingTracksToolStripMenuItem,
this.organizeTracksToolStripMenuItem});
this.toolsToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
resources.ApplyResources(this.toolsToolStripMenuItem, "toolsToolStripMenuItem");
//
// deleteUnusedBINKAsToolStripMenuItem
//
this.deleteUnusedBINKAsToolStripMenuItem.Name = "deleteUnusedBINKAsToolStripMenuItem";
resources.ApplyResources(this.deleteUnusedBINKAsToolStripMenuItem, "deleteUnusedBINKAsToolStripMenuItem");
this.deleteUnusedBINKAsToolStripMenuItem.Click += new System.EventHandler(this.deleteUnusedBINKAsToolStripMenuItem_Click);
//
// openDataFolderToolStripMenuItem
//
this.openDataFolderToolStripMenuItem.Name = "openDataFolderToolStripMenuItem";
resources.ApplyResources(this.openDataFolderToolStripMenuItem, "openDataFolderToolStripMenuItem");
this.openDataFolderToolStripMenuItem.Click += new System.EventHandler(this.openDataFolderToolStripMenuItem_Click);
//
// bulkReplaceExistingTracksToolStripMenuItem
//
this.bulkReplaceExistingTracksToolStripMenuItem.Name = "bulkReplaceExistingTracksToolStripMenuItem";
resources.ApplyResources(this.bulkReplaceExistingTracksToolStripMenuItem, "bulkReplaceExistingTracksToolStripMenuItem");
this.bulkReplaceExistingTracksToolStripMenuItem.Click += new System.EventHandler(this.bulkReplaceExistingFilesToolStripMenuItem_Click);
//
// organizeTracksToolStripMenuItem
//
this.organizeTracksToolStripMenuItem.Name = "organizeTracksToolStripMenuItem";
resources.ApplyResources(this.organizeTracksToolStripMenuItem, "organizeTracksToolStripMenuItem");
this.organizeTracksToolStripMenuItem.Click += new System.EventHandler(this.organizeTracksToolStripMenuItem_Click);
//
// helpToolStripMenuItem
//
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolsToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
resources.ApplyResources(this.toolsToolStripMenuItem, "toolsToolStripMenuItem");
//
// deleteUnusedBINKAsToolStripMenuItem
//
this.deleteUnusedBINKAsToolStripMenuItem.Name = "deleteUnusedBINKAsToolStripMenuItem";
resources.ApplyResources(this.deleteUnusedBINKAsToolStripMenuItem, "deleteUnusedBINKAsToolStripMenuItem");
this.deleteUnusedBINKAsToolStripMenuItem.Click += new System.EventHandler(this.deleteUnusedBINKAsToolStripMenuItem_Click);
//
// openDataFolderToolStripMenuItem
//
this.openDataFolderToolStripMenuItem.Name = "openDataFolderToolStripMenuItem";
resources.ApplyResources(this.openDataFolderToolStripMenuItem, "openDataFolderToolStripMenuItem");
this.openDataFolderToolStripMenuItem.Click += new System.EventHandler(this.openDataFolderToolStripMenuItem_Click);
//
// bulkReplaceExistingTracksToolStripMenuItem
//
this.bulkReplaceExistingTracksToolStripMenuItem.Name = "bulkReplaceExistingTracksToolStripMenuItem";
resources.ApplyResources(this.bulkReplaceExistingTracksToolStripMenuItem, "bulkReplaceExistingTracksToolStripMenuItem");
this.bulkReplaceExistingTracksToolStripMenuItem.Click += new System.EventHandler(this.bulkReplaceExistingFilesToolStripMenuItem_Click);
//
// organizeTracksToolStripMenuItem
//
this.organizeTracksToolStripMenuItem.Name = "organizeTracksToolStripMenuItem";
resources.ApplyResources(this.organizeTracksToolStripMenuItem, "organizeTracksToolStripMenuItem");
this.organizeTracksToolStripMenuItem.Click += new System.EventHandler(this.organizeTracksToolStripMenuItem_Click);
//
// helpToolStripMenuItem
//
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.howToAddSongsToolStripMenuItem,
this.whatAreTheCategoriesToolStripMenuItem,
this.howToEditCreditsToolStripMenuItem,
this.optimizeDataFolderToolStripMenuItem,
this.bINKACompressionToolStripMenuItem});
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
resources.ApplyResources(this.helpToolStripMenuItem, "helpToolStripMenuItem");
//
// howToAddSongsToolStripMenuItem
//
this.howToAddSongsToolStripMenuItem.Name = "howToAddSongsToolStripMenuItem";
resources.ApplyResources(this.howToAddSongsToolStripMenuItem, "howToAddSongsToolStripMenuItem");
this.howToAddSongsToolStripMenuItem.Click += new System.EventHandler(this.howToAddSongsToolStripMenuItem_Click);
//
// whatAreTheCategoriesToolStripMenuItem
//
this.whatAreTheCategoriesToolStripMenuItem.Name = "whatAreTheCategoriesToolStripMenuItem";
resources.ApplyResources(this.whatAreTheCategoriesToolStripMenuItem, "whatAreTheCategoriesToolStripMenuItem");
this.whatAreTheCategoriesToolStripMenuItem.Click += new System.EventHandler(this.whatAreTheCategoriesToolStripMenuItem_Click);
//
// howToEditCreditsToolStripMenuItem
//
this.howToEditCreditsToolStripMenuItem.Name = "howToEditCreditsToolStripMenuItem";
resources.ApplyResources(this.howToEditCreditsToolStripMenuItem, "howToEditCreditsToolStripMenuItem");
this.howToEditCreditsToolStripMenuItem.Click += new System.EventHandler(this.howToEditCreditsToolStripMenuItem_Click);
//
// optimizeDataFolderToolStripMenuItem
//
this.optimizeDataFolderToolStripMenuItem.Name = "optimizeDataFolderToolStripMenuItem";
resources.ApplyResources(this.optimizeDataFolderToolStripMenuItem, "optimizeDataFolderToolStripMenuItem");
this.optimizeDataFolderToolStripMenuItem.Click += new System.EventHandler(this.optimizeDataFolderToolStripMenuItem_Click);
//
// bINKACompressionToolStripMenuItem
//
this.bINKACompressionToolStripMenuItem.Name = "bINKACompressionToolStripMenuItem";
resources.ApplyResources(this.bINKACompressionToolStripMenuItem, "bINKACompressionToolStripMenuItem");
this.bINKACompressionToolStripMenuItem.Click += new System.EventHandler(this.BINKACompressionToolStripMenuItem_Click);
//
// treeView2
//
this.treeView2.AllowDrop = true;
resources.ApplyResources(this.treeView2, "treeView2");
this.treeView2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView2.ContextMenuStrip = this.contextMenuStrip2;
this.treeView2.ForeColor = System.Drawing.Color.White;
this.treeView2.Name = "treeView2";
this.treeView2.DragDrop += new System.Windows.Forms.DragEventHandler(this.Binka_DragDrop);
this.treeView2.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView2_DragEnter);
this.treeView2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView2_KeyDown);
//
// contextMenuStrip2
//
this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
resources.ApplyResources(this.helpToolStripMenuItem, "helpToolStripMenuItem");
//
// howToAddSongsToolStripMenuItem
//
this.howToAddSongsToolStripMenuItem.Name = "howToAddSongsToolStripMenuItem";
resources.ApplyResources(this.howToAddSongsToolStripMenuItem, "howToAddSongsToolStripMenuItem");
this.howToAddSongsToolStripMenuItem.Click += new System.EventHandler(this.howToAddSongsToolStripMenuItem_Click);
//
// whatAreTheCategoriesToolStripMenuItem
//
this.whatAreTheCategoriesToolStripMenuItem.Name = "whatAreTheCategoriesToolStripMenuItem";
resources.ApplyResources(this.whatAreTheCategoriesToolStripMenuItem, "whatAreTheCategoriesToolStripMenuItem");
this.whatAreTheCategoriesToolStripMenuItem.Click += new System.EventHandler(this.whatAreTheCategoriesToolStripMenuItem_Click);
//
// howToEditCreditsToolStripMenuItem
//
this.howToEditCreditsToolStripMenuItem.Name = "howToEditCreditsToolStripMenuItem";
resources.ApplyResources(this.howToEditCreditsToolStripMenuItem, "howToEditCreditsToolStripMenuItem");
this.howToEditCreditsToolStripMenuItem.Click += new System.EventHandler(this.howToEditCreditsToolStripMenuItem_Click);
//
// optimizeDataFolderToolStripMenuItem
//
this.optimizeDataFolderToolStripMenuItem.Name = "optimizeDataFolderToolStripMenuItem";
resources.ApplyResources(this.optimizeDataFolderToolStripMenuItem, "optimizeDataFolderToolStripMenuItem");
this.optimizeDataFolderToolStripMenuItem.Click += new System.EventHandler(this.optimizeDataFolderToolStripMenuItem_Click);
//
// bINKACompressionToolStripMenuItem
//
this.bINKACompressionToolStripMenuItem.Name = "bINKACompressionToolStripMenuItem";
resources.ApplyResources(this.bINKACompressionToolStripMenuItem, "bINKACompressionToolStripMenuItem");
this.bINKACompressionToolStripMenuItem.Click += new System.EventHandler(this.BINKACompressionToolStripMenuItem_Click);
//
// treeView2
//
this.treeView2.AllowDrop = true;
resources.ApplyResources(this.treeView2, "treeView2");
this.treeView2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView2.ContextMenuStrip = this.contextMenuStrip2;
this.treeView2.ForeColor = System.Drawing.Color.White;
this.treeView2.Name = "treeView2";
this.treeView2.DragDrop += new System.Windows.Forms.DragEventHandler(this.Binka_DragDrop);
this.treeView2.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView2_DragEnter);
this.treeView2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView2_KeyDown);
//
// contextMenuStrip2
//
this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addEntryMenuItem,
this.removeEntryMenuItem,
this.verifyFileLocationToolStripMenuItem,
this.convertToWAVToolStripMenuItem});
this.contextMenuStrip2.Name = "contextMenuStrip1";
resources.ApplyResources(this.contextMenuStrip2, "contextMenuStrip2");
//
// addEntryMenuItem
//
resources.ApplyResources(this.addEntryMenuItem, "addEntryMenuItem");
this.addEntryMenuItem.Name = "addEntryMenuItem";
this.addEntryMenuItem.Click += new System.EventHandler(this.addEntryMenuItem_Click);
//
// removeEntryMenuItem
//
this.removeEntryMenuItem.Name = "removeEntryMenuItem";
resources.ApplyResources(this.removeEntryMenuItem, "removeEntryMenuItem");
this.removeEntryMenuItem.Click += new System.EventHandler(this.removeEntryMenuItem_Click);
//
// verifyFileLocationToolStripMenuItem
//
this.verifyFileLocationToolStripMenuItem.Name = "verifyFileLocationToolStripMenuItem";
resources.ApplyResources(this.verifyFileLocationToolStripMenuItem, "verifyFileLocationToolStripMenuItem");
this.verifyFileLocationToolStripMenuItem.Click += new System.EventHandler(this.verifyFileLocationToolStripMenuItem_Click);
//
// convertToWAVToolStripMenuItem
//
this.convertToWAVToolStripMenuItem.Name = "convertToWAVToolStripMenuItem";
resources.ApplyResources(this.convertToWAVToolStripMenuItem, "convertToWAVToolStripMenuItem");
this.convertToWAVToolStripMenuItem.Click += new System.EventHandler(this.convertToWAVToolStripMenuItem_Click);
//
// playOverworldInCreative
//
resources.ApplyResources(this.playOverworldInCreative, "playOverworldInCreative");
this.playOverworldInCreative.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.playOverworldInCreative.ForeColor = System.Drawing.SystemColors.Window;
this.playOverworldInCreative.Name = "playOverworldInCreative";
this.playOverworldInCreative.Theme = MetroFramework.MetroThemeStyle.Dark;
this.playOverworldInCreative.UseCustomBackColor = true;
this.playOverworldInCreative.UseCustomForeColor = true;
this.playOverworldInCreative.UseSelectable = true;
//
// compressionUpDown
//
this.compressionUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.compressionUpDown.ForeColor = System.Drawing.SystemColors.Window;
resources.ApplyResources(this.compressionUpDown, "compressionUpDown");
this.compressionUpDown.Maximum = new decimal(new int[] {
this.contextMenuStrip2.Name = "contextMenuStrip1";
resources.ApplyResources(this.contextMenuStrip2, "contextMenuStrip2");
//
// addEntryMenuItem
//
resources.ApplyResources(this.addEntryMenuItem, "addEntryMenuItem");
this.addEntryMenuItem.Name = "addEntryMenuItem";
this.addEntryMenuItem.Click += new System.EventHandler(this.addEntryMenuItem_Click);
//
// removeEntryMenuItem
//
this.removeEntryMenuItem.Name = "removeEntryMenuItem";
resources.ApplyResources(this.removeEntryMenuItem, "removeEntryMenuItem");
this.removeEntryMenuItem.Click += new System.EventHandler(this.removeEntryMenuItem_Click);
//
// verifyFileLocationToolStripMenuItem
//
this.verifyFileLocationToolStripMenuItem.Name = "verifyFileLocationToolStripMenuItem";
resources.ApplyResources(this.verifyFileLocationToolStripMenuItem, "verifyFileLocationToolStripMenuItem");
this.verifyFileLocationToolStripMenuItem.Click += new System.EventHandler(this.verifyFileLocationToolStripMenuItem_Click);
//
// convertToWAVToolStripMenuItem
//
this.convertToWAVToolStripMenuItem.Name = "convertToWAVToolStripMenuItem";
resources.ApplyResources(this.convertToWAVToolStripMenuItem, "convertToWAVToolStripMenuItem");
this.convertToWAVToolStripMenuItem.Click += new System.EventHandler(this.convertToWAVToolStripMenuItem_Click);
//
// playOverworldInCreative
//
resources.ApplyResources(this.playOverworldInCreative, "playOverworldInCreative");
this.playOverworldInCreative.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.playOverworldInCreative.ForeColor = System.Drawing.SystemColors.Window;
this.playOverworldInCreative.Name = "playOverworldInCreative";
this.playOverworldInCreative.Theme = MetroFramework.MetroThemeStyle.Dark;
this.playOverworldInCreative.UseCustomBackColor = true;
this.playOverworldInCreative.UseCustomForeColor = true;
this.playOverworldInCreative.UseSelectable = true;
//
// compressionUpDown
//
resources.ApplyResources(this.compressionUpDown, "compressionUpDown");
this.compressionUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.compressionUpDown.ForeColor = System.Drawing.SystemColors.Window;
this.compressionUpDown.Maximum = new decimal(new int[] {
9,
0,
0,
0});
this.compressionUpDown.Minimum = new decimal(new int[] {
this.compressionUpDown.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.compressionUpDown.Name = "compressionUpDown";
this.compressionUpDown.Value = new decimal(new int[] {
this.compressionUpDown.Name = "compressionUpDown";
this.compressionUpDown.Value = new decimal(new int[] {
4,
0,
0,
0});
//
// metroLabel1
//
resources.ApplyResources(this.metroLabel1, "metroLabel1");
this.metroLabel1.Name = "metroLabel1";
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// AudioEditor
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.metroLabel1);
this.Controls.Add(this.compressionUpDown);
this.Controls.Add(this.playOverworldInCreative);
this.Controls.Add(this.treeView1);
this.Controls.Add(this.treeView2);
this.Controls.Add(this.menuStrip);
this.Name = "AudioEditor";
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.AudioEditor_FormClosed);
this.Shown += new System.EventHandler(this.AudioEditor_Shown);
this.contextMenuStrip1.ResumeLayout(false);
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
this.contextMenuStrip2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.compressionUpDown)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
//
// metroLabel1
//
resources.ApplyResources(this.metroLabel1, "metroLabel1");
this.metroLabel1.Name = "metroLabel1";
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// AudioEditor
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.metroLabel1);
this.Controls.Add(this.compressionUpDown);
this.Controls.Add(this.playOverworldInCreative);
this.Controls.Add(this.treeView1);
this.Controls.Add(this.treeView2);
this.Controls.Add(this.menuStrip);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AudioEditor";
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.AudioEditor_FormClosing);
this.Shown += new System.EventHandler(this.AudioEditor_Shown);
this.contextMenuStrip1.ResumeLayout(false);
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
this.contextMenuStrip2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.compressionUpDown)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}

View File

@@ -16,6 +16,7 @@ using PckStudio.Forms.Additional_Popups.Audio;
using OMI.Formats.Languages;
using OMI.Formats.Pck;
using PckStudio.Forms.Additional_Popups;
using PckStudio.Properties;
// Audio Editor by MattNL and Miku-666
@@ -56,7 +57,10 @@ namespace PckStudio.Forms.Editor
public AudioEditor(PckFile.FileData file, bool isLittleEndian)
{
InitializeComponent();
_isLittleEndian = isLittleEndian;
saveToolStripMenuItem1.Visible = !Settings.Default.AutoSaveChanges;
_isLittleEndian = isLittleEndian;
audioPCK = file;
using (var stream = new MemoryStream(file.Data))
@@ -103,12 +107,6 @@ namespace PckStudio.Forms.Editor
treeView1.EndUpdate();
}
private void AudioEditor_FormClosed(object sender, FormClosedEventArgs e)
{
// Clean up is throwing an error of some kind? FreeLibrary maybe??
//BINK.CleanUpBinka();
}
private void verifyFileLocationToolStripMenuItem_Click(object sender, EventArgs e)
{
if (treeView1.SelectedNode == null || treeView2.SelectedNode == null) return;
@@ -624,5 +622,13 @@ namespace PckStudio.Forms.Editor
treeView1.SelectedNode = null;
}
}
}
private void AudioEditor_FormClosing(object sender, FormClosingEventArgs e)
{
if (Settings.Default.AutoSaveChanges)
{
saveToolStripMenuItem1_Click(sender, EventArgs.Empty);
}
}
}
}

View File

@@ -172,7 +172,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADk
MAAAAk1TRnQBSQFMAgEBCQEAAbABAAGwAQABEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
MAAAAk1TRnQBSQFMAgEBCQEAAcABAAHAAQABEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
AwABMAMAAQEBAAEgBgABMBIAAzgB/wM1Af8DNQH/AzMB/wMwAf8DLwH/Ay0B/wMtAf8DJAH/AzsB/wM4
Af8DNQH/Ay0B/wMnAf8DNgH/AzIB/8AAAzgB/wN/Af8DeQH/A3kB/wN5Af8DcQH/A3EB/wN5Af8DeQH/
A3EB/wNxAf8DcQH/A3kB/wN5Af8DfwH/AzIB/8AAAzIB/wN2Af8DsAH/A7AB/wOvAf8DrwH/A68B/wOo
@@ -626,6 +626,9 @@
<data name="&gt;&gt;playOverworldInCreative.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="compressionUpDown.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="compressionUpDown.Location" type="System.Drawing.Point, System.Drawing">
<value>310, 298</value>
</data>
@@ -647,6 +650,9 @@
<data name="&gt;&gt;compressionUpDown.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="metroLabel1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="metroLabel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -686,9 +692,6 @@
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>450, 330</value>
</data>
<data name="$this.MaximumSize" type="System.Drawing.Size, System.Drawing">
<value>450, 330</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>450, 330</value>
</data>

View File

@@ -28,284 +28,285 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BehaviourEditor));
this.treeView1 = new System.Windows.Forms.TreeView();
this.metroContextMenu1 = new MetroFramework.Controls.MetroContextMenu(this.components);
this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addNewEntryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addNewPositionOverrideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.MobIsTamedCheckbox = new MetroFramework.Controls.MetroCheckBox();
this.MobHasSaddleCheckbox = new MetroFramework.Controls.MetroCheckBox();
this.zUpDown = new System.Windows.Forms.NumericUpDown();
this.yUpDown = new System.Windows.Forms.NumericUpDown();
this.zLabel = new MetroFramework.Controls.MetroLabel();
this.yLabel = new MetroFramework.Controls.MetroLabel();
this.xUpDown = new System.Windows.Forms.NumericUpDown();
this.xLabel = new MetroFramework.Controls.MetroLabel();
this.metroContextMenu1.SuspendLayout();
this.menuStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.zUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.yUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xUpDown)).BeginInit();
this.SuspendLayout();
//
// treeView1
//
this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BehaviourEditor));
this.treeView1 = new System.Windows.Forms.TreeView();
this.metroContextMenu1 = new MetroFramework.Controls.MetroContextMenu(this.components);
this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addNewEntryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addNewPositionOverrideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.MobIsTamedCheckbox = new MetroFramework.Controls.MetroCheckBox();
this.MobHasSaddleCheckbox = new MetroFramework.Controls.MetroCheckBox();
this.zUpDown = new System.Windows.Forms.NumericUpDown();
this.yUpDown = new System.Windows.Forms.NumericUpDown();
this.zLabel = new MetroFramework.Controls.MetroLabel();
this.yLabel = new MetroFramework.Controls.MetroLabel();
this.xUpDown = new System.Windows.Forms.NumericUpDown();
this.xLabel = new MetroFramework.Controls.MetroLabel();
this.metroContextMenu1.SuspendLayout();
this.menuStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.zUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.yUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xUpDown)).BeginInit();
this.SuspendLayout();
//
// treeView1
//
this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView1.ContextMenuStrip = this.metroContextMenu1;
this.treeView1.ForeColor = System.Drawing.Color.White;
this.treeView1.Location = new System.Drawing.Point(20, 84);
this.treeView1.Margin = new System.Windows.Forms.Padding(0);
this.treeView1.Name = "treeView1";
this.treeView1.Size = new System.Drawing.Size(186, 176);
this.treeView1.TabIndex = 13;
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
this.treeView1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick);
this.treeView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
this.treeView1.MouseHover += new System.EventHandler(this.treeView1_MouseHover);
//
// metroContextMenu1
//
this.metroContextMenu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView1.ContextMenuStrip = this.metroContextMenu1;
this.treeView1.ForeColor = System.Drawing.Color.White;
this.treeView1.Location = new System.Drawing.Point(20, 84);
this.treeView1.Margin = new System.Windows.Forms.Padding(0);
this.treeView1.Name = "treeView1";
this.treeView1.Size = new System.Drawing.Size(186, 176);
this.treeView1.TabIndex = 13;
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
this.treeView1.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick);
this.treeView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
this.treeView1.MouseHover += new System.EventHandler(this.treeView1_MouseHover);
//
// metroContextMenu1
//
this.metroContextMenu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addToolStripMenuItem,
this.renameToolStripMenuItem,
this.removeToolStripMenuItem});
this.metroContextMenu1.Name = "metroContextMenu1";
this.metroContextMenu1.Size = new System.Drawing.Size(118, 70);
//
// addToolStripMenuItem
//
this.addToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.metroContextMenu1.Name = "metroContextMenu1";
this.metroContextMenu1.Size = new System.Drawing.Size(118, 70);
//
// addToolStripMenuItem
//
this.addToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addNewEntryToolStripMenuItem,
this.addNewPositionOverrideToolStripMenuItem});
this.addToolStripMenuItem.Name = "addToolStripMenuItem";
this.addToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.addToolStripMenuItem.Text = "Add";
//
// addNewEntryToolStripMenuItem
//
this.addNewEntryToolStripMenuItem.Name = "addNewEntryToolStripMenuItem";
this.addNewEntryToolStripMenuItem.Size = new System.Drawing.Size(217, 22);
this.addNewEntryToolStripMenuItem.Text = "Add New Entry";
this.addNewEntryToolStripMenuItem.Click += new System.EventHandler(this.addNewEntryToolStripMenuItem_Click);
//
// addNewPositionOverrideToolStripMenuItem
//
this.addNewPositionOverrideToolStripMenuItem.Name = "addNewPositionOverrideToolStripMenuItem";
this.addNewPositionOverrideToolStripMenuItem.Size = new System.Drawing.Size(217, 22);
this.addNewPositionOverrideToolStripMenuItem.Text = "Add New Position Override";
this.addNewPositionOverrideToolStripMenuItem.Click += new System.EventHandler(this.addNewPositionOverrideToolStripMenuItem_Click);
//
// renameToolStripMenuItem
//
this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
this.renameToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.renameToolStripMenuItem.Text = "Change";
this.renameToolStripMenuItem.Click += new System.EventHandler(this.changeToolStripMenuItem_Click);
//
// removeToolStripMenuItem
//
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
this.removeToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.removeToolStripMenuItem.Text = "Remove";
this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click);
//
// menuStrip
//
this.menuStrip.AutoSize = false;
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addToolStripMenuItem.Name = "addToolStripMenuItem";
this.addToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.addToolStripMenuItem.Text = "Add";
//
// addNewEntryToolStripMenuItem
//
this.addNewEntryToolStripMenuItem.Name = "addNewEntryToolStripMenuItem";
this.addNewEntryToolStripMenuItem.Size = new System.Drawing.Size(217, 22);
this.addNewEntryToolStripMenuItem.Text = "Add New Entry";
this.addNewEntryToolStripMenuItem.Click += new System.EventHandler(this.addNewEntryToolStripMenuItem_Click);
//
// addNewPositionOverrideToolStripMenuItem
//
this.addNewPositionOverrideToolStripMenuItem.Name = "addNewPositionOverrideToolStripMenuItem";
this.addNewPositionOverrideToolStripMenuItem.Size = new System.Drawing.Size(217, 22);
this.addNewPositionOverrideToolStripMenuItem.Text = "Add New Position Override";
this.addNewPositionOverrideToolStripMenuItem.Click += new System.EventHandler(this.addNewPositionOverrideToolStripMenuItem_Click);
//
// renameToolStripMenuItem
//
this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
this.renameToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.renameToolStripMenuItem.Text = "Change";
this.renameToolStripMenuItem.Click += new System.EventHandler(this.changeToolStripMenuItem_Click);
//
// removeToolStripMenuItem
//
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
this.removeToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.removeToolStripMenuItem.Text = "Remove";
this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click);
//
// menuStrip
//
this.menuStrip.AutoSize = false;
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.helpToolStripMenuItem});
this.menuStrip.Location = new System.Drawing.Point(20, 60);
this.menuStrip.Name = "menuStrip";
this.menuStrip.Size = new System.Drawing.Size(309, 24);
this.menuStrip.TabIndex = 14;
this.menuStrip.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuStrip.Location = new System.Drawing.Point(20, 60);
this.menuStrip.Name = "menuStrip";
this.menuStrip.Size = new System.Drawing.Size(309, 24);
this.menuStrip.TabIndex = 14;
this.menuStrip.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.saveToolStripMenuItem1});
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "File";
//
// saveToolStripMenuItem1
//
this.saveToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem1.Image")));
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
this.saveToolStripMenuItem1.Size = new System.Drawing.Size(98, 22);
this.saveToolStripMenuItem1.Text = "Save";
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
//
// helpToolStripMenuItem
//
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
this.helpToolStripMenuItem.Text = "Help";
//
// MobIsTamedCheckbox
//
this.MobIsTamedCheckbox.AutoSize = true;
this.MobIsTamedCheckbox.Enabled = false;
this.MobIsTamedCheckbox.Location = new System.Drawing.Point(221, 104);
this.MobIsTamedCheckbox.Name = "MobIsTamedCheckbox";
this.MobIsTamedCheckbox.Size = new System.Drawing.Size(96, 15);
this.MobIsTamedCheckbox.TabIndex = 22;
this.MobIsTamedCheckbox.Text = "Mob is tamed";
this.MobIsTamedCheckbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.MobIsTamedCheckbox.UseSelectable = true;
this.MobIsTamedCheckbox.CheckedChanged += new System.EventHandler(this.MobIsTamedCheckbox_CheckedChanged);
//
// MobHasSaddleCheckbox
//
this.MobHasSaddleCheckbox.AutoSize = true;
this.MobHasSaddleCheckbox.Enabled = false;
this.MobHasSaddleCheckbox.Location = new System.Drawing.Point(221, 136);
this.MobHasSaddleCheckbox.Name = "MobHasSaddleCheckbox";
this.MobHasSaddleCheckbox.Size = new System.Drawing.Size(106, 15);
this.MobHasSaddleCheckbox.TabIndex = 23;
this.MobHasSaddleCheckbox.Text = "Mob has saddle";
this.MobHasSaddleCheckbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.MobHasSaddleCheckbox.UseSelectable = true;
this.MobHasSaddleCheckbox.CheckedChanged += new System.EventHandler(this.MobHasSaddleCheckbox_CheckedChanged);
//
// zUpDown
//
this.zUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.zUpDown.DecimalPlaces = 3;
this.zUpDown.Enabled = false;
this.zUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.zUpDown.Location = new System.Drawing.Point(254, 220);
this.zUpDown.Maximum = new decimal(new int[] {
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "File";
//
// saveToolStripMenuItem1
//
this.saveToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem1.Image")));
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
this.saveToolStripMenuItem1.Size = new System.Drawing.Size(98, 22);
this.saveToolStripMenuItem1.Text = "Save";
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
//
// helpToolStripMenuItem
//
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
this.helpToolStripMenuItem.Text = "Help";
//
// MobIsTamedCheckbox
//
this.MobIsTamedCheckbox.AutoSize = true;
this.MobIsTamedCheckbox.Enabled = false;
this.MobIsTamedCheckbox.Location = new System.Drawing.Point(221, 104);
this.MobIsTamedCheckbox.Name = "MobIsTamedCheckbox";
this.MobIsTamedCheckbox.Size = new System.Drawing.Size(96, 15);
this.MobIsTamedCheckbox.TabIndex = 22;
this.MobIsTamedCheckbox.Text = "Mob is tamed";
this.MobIsTamedCheckbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.MobIsTamedCheckbox.UseSelectable = true;
this.MobIsTamedCheckbox.CheckedChanged += new System.EventHandler(this.MobIsTamedCheckbox_CheckedChanged);
//
// MobHasSaddleCheckbox
//
this.MobHasSaddleCheckbox.AutoSize = true;
this.MobHasSaddleCheckbox.Enabled = false;
this.MobHasSaddleCheckbox.Location = new System.Drawing.Point(221, 136);
this.MobHasSaddleCheckbox.Name = "MobHasSaddleCheckbox";
this.MobHasSaddleCheckbox.Size = new System.Drawing.Size(106, 15);
this.MobHasSaddleCheckbox.TabIndex = 23;
this.MobHasSaddleCheckbox.Text = "Mob has saddle";
this.MobHasSaddleCheckbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.MobHasSaddleCheckbox.UseSelectable = true;
this.MobHasSaddleCheckbox.CheckedChanged += new System.EventHandler(this.MobHasSaddleCheckbox_CheckedChanged);
//
// zUpDown
//
this.zUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.zUpDown.DecimalPlaces = 3;
this.zUpDown.Enabled = false;
this.zUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.zUpDown.Location = new System.Drawing.Point(254, 220);
this.zUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.zUpDown.Minimum = new decimal(new int[] {
this.zUpDown.Minimum = new decimal(new int[] {
255,
0,
0,
-2147483648});
this.zUpDown.Name = "zUpDown";
this.zUpDown.Size = new System.Drawing.Size(75, 20);
this.zUpDown.TabIndex = 29;
this.zUpDown.ValueChanged += new System.EventHandler(this.zUpDown_ValueChanged);
//
// yUpDown
//
this.yUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.yUpDown.DecimalPlaces = 3;
this.yUpDown.Enabled = false;
this.yUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.yUpDown.Location = new System.Drawing.Point(254, 194);
this.yUpDown.Maximum = new decimal(new int[] {
this.zUpDown.Name = "zUpDown";
this.zUpDown.Size = new System.Drawing.Size(75, 20);
this.zUpDown.TabIndex = 29;
this.zUpDown.ValueChanged += new System.EventHandler(this.zUpDown_ValueChanged);
//
// yUpDown
//
this.yUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.yUpDown.DecimalPlaces = 3;
this.yUpDown.Enabled = false;
this.yUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.yUpDown.Location = new System.Drawing.Point(254, 194);
this.yUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.yUpDown.Minimum = new decimal(new int[] {
this.yUpDown.Minimum = new decimal(new int[] {
255,
0,
0,
-2147483648});
this.yUpDown.Name = "yUpDown";
this.yUpDown.Size = new System.Drawing.Size(75, 20);
this.yUpDown.TabIndex = 28;
this.yUpDown.ValueChanged += new System.EventHandler(this.yUpDown_ValueChanged);
//
// zLabel
//
this.zLabel.AutoSize = true;
this.zLabel.Location = new System.Drawing.Point(221, 220);
this.zLabel.Name = "zLabel";
this.zLabel.Size = new System.Drawing.Size(20, 19);
this.zLabel.TabIndex = 25;
this.zLabel.Text = "Z:";
this.zLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// yLabel
//
this.yLabel.AutoSize = true;
this.yLabel.Location = new System.Drawing.Point(222, 194);
this.yLabel.Name = "yLabel";
this.yLabel.Size = new System.Drawing.Size(20, 19);
this.yLabel.TabIndex = 24;
this.yLabel.Text = "Y:";
this.yLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// xUpDown
//
this.xUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.xUpDown.DecimalPlaces = 3;
this.xUpDown.Enabled = false;
this.xUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.xUpDown.Location = new System.Drawing.Point(254, 168);
this.xUpDown.Maximum = new decimal(new int[] {
this.yUpDown.Name = "yUpDown";
this.yUpDown.Size = new System.Drawing.Size(75, 20);
this.yUpDown.TabIndex = 28;
this.yUpDown.ValueChanged += new System.EventHandler(this.yUpDown_ValueChanged);
//
// zLabel
//
this.zLabel.AutoSize = true;
this.zLabel.Location = new System.Drawing.Point(221, 220);
this.zLabel.Name = "zLabel";
this.zLabel.Size = new System.Drawing.Size(20, 19);
this.zLabel.TabIndex = 25;
this.zLabel.Text = "Z:";
this.zLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// yLabel
//
this.yLabel.AutoSize = true;
this.yLabel.Location = new System.Drawing.Point(222, 194);
this.yLabel.Name = "yLabel";
this.yLabel.Size = new System.Drawing.Size(20, 19);
this.yLabel.TabIndex = 24;
this.yLabel.Text = "Y:";
this.yLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// xUpDown
//
this.xUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.xUpDown.DecimalPlaces = 3;
this.xUpDown.Enabled = false;
this.xUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.xUpDown.Location = new System.Drawing.Point(254, 168);
this.xUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.xUpDown.Minimum = new decimal(new int[] {
this.xUpDown.Minimum = new decimal(new int[] {
255,
0,
0,
-2147483648});
this.xUpDown.Name = "xUpDown";
this.xUpDown.Size = new System.Drawing.Size(75, 20);
this.xUpDown.TabIndex = 31;
this.xUpDown.ValueChanged += new System.EventHandler(this.xUpDown_ValueChanged);
//
// xLabel
//
this.xLabel.AutoSize = true;
this.xLabel.Location = new System.Drawing.Point(222, 168);
this.xLabel.Name = "xLabel";
this.xLabel.Size = new System.Drawing.Size(20, 19);
this.xLabel.TabIndex = 30;
this.xLabel.Text = "X:";
this.xLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// BehaviourEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(349, 280);
this.Controls.Add(this.xUpDown);
this.Controls.Add(this.xLabel);
this.Controls.Add(this.zUpDown);
this.Controls.Add(this.yUpDown);
this.Controls.Add(this.zLabel);
this.Controls.Add(this.yLabel);
this.Controls.Add(this.MobHasSaddleCheckbox);
this.Controls.Add(this.MobIsTamedCheckbox);
this.Controls.Add(this.menuStrip);
this.Controls.Add(this.treeView1);
this.Name = "BehaviourEditor";
this.Resizable = false;
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Text = "Behaviour Editor";
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroContextMenu1.ResumeLayout(false);
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.zUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.yUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xUpDown)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
this.xUpDown.Name = "xUpDown";
this.xUpDown.Size = new System.Drawing.Size(75, 20);
this.xUpDown.TabIndex = 31;
this.xUpDown.ValueChanged += new System.EventHandler(this.xUpDown_ValueChanged);
//
// xLabel
//
this.xLabel.AutoSize = true;
this.xLabel.Location = new System.Drawing.Point(222, 168);
this.xLabel.Name = "xLabel";
this.xLabel.Size = new System.Drawing.Size(20, 19);
this.xLabel.TabIndex = 30;
this.xLabel.Text = "X:";
this.xLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// BehaviourEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(349, 280);
this.Controls.Add(this.xUpDown);
this.Controls.Add(this.xLabel);
this.Controls.Add(this.zUpDown);
this.Controls.Add(this.yUpDown);
this.Controls.Add(this.zLabel);
this.Controls.Add(this.yLabel);
this.Controls.Add(this.MobHasSaddleCheckbox);
this.Controls.Add(this.MobIsTamedCheckbox);
this.Controls.Add(this.menuStrip);
this.Controls.Add(this.treeView1);
this.Name = "BehaviourEditor";
this.Resizable = false;
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Text = "Behaviour Editor";
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.BehaviourEditor_FormClosing);
this.metroContextMenu1.ResumeLayout(false);
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.zUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.yUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xUpDown)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}

View File

@@ -11,6 +11,7 @@ using Newtonsoft.Json.Linq;
using OMI.Formats.Behaviour;
using OMI.Workers.Behaviour;
using OMI.Formats.Pck;
using PckStudio.Properties;
namespace PckStudio.Forms.Editor
{
@@ -61,7 +62,10 @@ namespace PckStudio.Forms.Editor
public BehaviourEditor(PckFile.FileData file)
{
InitializeComponent();
_file = file;
saveToolStripMenuItem1.Visible = !Settings.Default.AutoSaveChanges;
_file = file;
using (var stream = new MemoryStream(file.Data))
{
@@ -277,5 +281,13 @@ namespace PckStudio.Forms.Editor
}
DialogResult = DialogResult.OK;
}
}
private void BehaviourEditor_FormClosing(object sender, FormClosingEventArgs e)
{
if (Settings.Default.AutoSaveChanges)
{
saveToolStripMenuItem1_Click(sender, EventArgs.Empty);
}
}
}
}

View File

@@ -28,75 +28,119 @@
/// </summary>
private void InitializeComponent()
{
MetroFramework.Controls.MetroLabel parentLabel;
MetroFramework.Controls.MetroLabel positionLabel;
MetroFramework.Controls.MetroLabel sizeLabel;
MetroFramework.Controls.MetroLabel uvLabel;
MetroFramework.Controls.MetroLabel inflationLabel;
this.closeButton = new MetroFramework.Controls.MetroButton();
this.toolTip = new MetroFramework.Components.MetroToolTip();
this.parentComboBox = new MetroFramework.Controls.MetroComboBox();
this.PosXUpDown = new System.Windows.Forms.NumericUpDown();
this.PosYUpDown = new System.Windows.Forms.NumericUpDown();
this.PosZUpDown = new System.Windows.Forms.NumericUpDown();
this.SizeZUpDown = new System.Windows.Forms.NumericUpDown();
this.SizeYUpDown = new System.Windows.Forms.NumericUpDown();
this.SizeXUpDown = new System.Windows.Forms.NumericUpDown();
this.uvYUpDown = new System.Windows.Forms.NumericUpDown();
this.uvXUpDown = new System.Windows.Forms.NumericUpDown();
this.armorCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.mirrorCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.inflationUpDown = new System.Windows.Forms.NumericUpDown();
parentLabel = new MetroFramework.Controls.MetroLabel();
positionLabel = new MetroFramework.Controls.MetroLabel();
sizeLabel = new MetroFramework.Controls.MetroLabel();
uvLabel = new MetroFramework.Controls.MetroLabel();
inflationLabel = new MetroFramework.Controls.MetroLabel();
((System.ComponentModel.ISupportInitialize)(this.PosXUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PosYUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PosZUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.SizeZUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.SizeYUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.SizeXUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.uvYUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.uvXUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.inflationUpDown)).BeginInit();
this.SuspendLayout();
//
// closeButton
//
this.closeButton.Location = new System.Drawing.Point(252, 187);
this.closeButton.Name = "closeButton";
this.closeButton.Size = new System.Drawing.Size(126, 23);
this.closeButton.TabIndex = 1;
this.closeButton.Text = "Save";
this.closeButton.Theme = MetroFramework.MetroThemeStyle.Dark;
this.closeButton.UseSelectable = true;
this.closeButton.Click += new System.EventHandler(this.saveButton_Click);
//
// toolTip
//
this.toolTip.StripAmpersands = true;
this.toolTip.Style = MetroFramework.MetroColorStyle.Blue;
this.toolTip.StyleManager = null;
this.toolTip.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// parentLabel
//
parentLabel.AutoSize = true;
parentLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
parentLabel.Location = new System.Drawing.Point(357, 72);
parentLabel.Name = "parentLabel";
parentLabel.Size = new System.Drawing.Size(64, 25);
parentLabel.TabIndex = 2;
parentLabel.Text = "Parent:";
parentLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// parentComboBox
//
this.parentComboBox.FormattingEnabled = true;
this.parentComboBox.ItemHeight = 23;
this.parentComboBox.Items.AddRange(new object[] {
MetroFramework.Controls.MetroLabel parentLabel;
MetroFramework.Controls.MetroLabel positionLabel;
MetroFramework.Controls.MetroLabel sizeLabel;
MetroFramework.Controls.MetroLabel uvLabel;
MetroFramework.Controls.MetroLabel inflationLabel;
this.closeButton = new MetroFramework.Controls.MetroButton();
this.toolTip = new MetroFramework.Components.MetroToolTip();
this.parentComboBox = new MetroFramework.Controls.MetroComboBox();
this.PosXUpDown = new System.Windows.Forms.NumericUpDown();
this.PosYUpDown = new System.Windows.Forms.NumericUpDown();
this.PosZUpDown = new System.Windows.Forms.NumericUpDown();
this.SizeZUpDown = new System.Windows.Forms.NumericUpDown();
this.SizeYUpDown = new System.Windows.Forms.NumericUpDown();
this.SizeXUpDown = new System.Windows.Forms.NumericUpDown();
this.uvYUpDown = new System.Windows.Forms.NumericUpDown();
this.uvXUpDown = new System.Windows.Forms.NumericUpDown();
this.armorCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.mirrorCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.inflationUpDown = new System.Windows.Forms.NumericUpDown();
parentLabel = new MetroFramework.Controls.MetroLabel();
positionLabel = new MetroFramework.Controls.MetroLabel();
sizeLabel = new MetroFramework.Controls.MetroLabel();
uvLabel = new MetroFramework.Controls.MetroLabel();
inflationLabel = new MetroFramework.Controls.MetroLabel();
((System.ComponentModel.ISupportInitialize)(this.PosXUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PosYUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PosZUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.SizeZUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.SizeYUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.SizeXUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.uvYUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.uvXUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.inflationUpDown)).BeginInit();
this.SuspendLayout();
//
// parentLabel
//
parentLabel.AutoSize = true;
parentLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
parentLabel.Location = new System.Drawing.Point(357, 72);
parentLabel.Name = "parentLabel";
parentLabel.Size = new System.Drawing.Size(64, 25);
parentLabel.TabIndex = 2;
parentLabel.Text = "Parent:";
parentLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// positionLabel
//
positionLabel.AutoSize = true;
positionLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
positionLabel.Location = new System.Drawing.Point(33, 72);
positionLabel.Name = "positionLabel";
positionLabel.Size = new System.Drawing.Size(75, 25);
positionLabel.TabIndex = 4;
positionLabel.Text = "Position:";
positionLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// sizeLabel
//
sizeLabel.AutoSize = true;
sizeLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
sizeLabel.Location = new System.Drawing.Point(33, 97);
sizeLabel.Name = "sizeLabel";
sizeLabel.Size = new System.Drawing.Size(46, 25);
sizeLabel.TabIndex = 22;
sizeLabel.Text = "Size:";
sizeLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// uvLabel
//
uvLabel.AutoSize = true;
uvLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
uvLabel.Location = new System.Drawing.Point(33, 123);
uvLabel.Name = "uvLabel";
uvLabel.Size = new System.Drawing.Size(39, 25);
uvLabel.TabIndex = 26;
uvLabel.Text = "UV:";
uvLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// inflationLabel
//
inflationLabel.AutoSize = true;
inflationLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
inflationLabel.Location = new System.Drawing.Point(33, 149);
inflationLabel.Name = "inflationLabel";
inflationLabel.Size = new System.Drawing.Size(55, 25);
inflationLabel.TabIndex = 31;
inflationLabel.Text = "Scale:";
inflationLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// closeButton
//
this.closeButton.Location = new System.Drawing.Point(252, 187);
this.closeButton.Name = "closeButton";
this.closeButton.Size = new System.Drawing.Size(126, 23);
this.closeButton.TabIndex = 1;
this.closeButton.Text = "Save";
this.closeButton.Theme = MetroFramework.MetroThemeStyle.Dark;
this.closeButton.UseSelectable = true;
this.closeButton.Click += new System.EventHandler(this.saveButton_Click);
//
// toolTip
//
this.toolTip.StripAmpersands = true;
this.toolTip.Style = MetroFramework.MetroColorStyle.Blue;
this.toolTip.StyleManager = null;
this.toolTip.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// parentComboBox
//
this.parentComboBox.FormattingEnabled = true;
this.parentComboBox.ItemHeight = 23;
this.parentComboBox.Items.AddRange(new object[] {
"HEAD",
"BODY",
"ARM0",
@@ -120,329 +164,289 @@
"ARMARMOR0",
"BODYARMOR",
"BELT"});
this.parentComboBox.Location = new System.Drawing.Point(417, 72);
this.parentComboBox.Name = "parentComboBox";
this.parentComboBox.Size = new System.Drawing.Size(163, 29);
this.parentComboBox.TabIndex = 3;
this.parentComboBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.parentComboBox.UseSelectable = true;
//
// positionLabel
//
positionLabel.AutoSize = true;
positionLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
positionLabel.Location = new System.Drawing.Point(33, 72);
positionLabel.Name = "positionLabel";
positionLabel.Size = new System.Drawing.Size(75, 25);
positionLabel.TabIndex = 4;
positionLabel.Text = "Position:";
positionLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// PosXUpDown
//
this.PosXUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.PosXUpDown.DecimalPlaces = 3;
this.PosXUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.PosXUpDown.Increment = new decimal(new int[] {
this.parentComboBox.Location = new System.Drawing.Point(417, 72);
this.parentComboBox.Name = "parentComboBox";
this.parentComboBox.Size = new System.Drawing.Size(163, 29);
this.parentComboBox.TabIndex = 3;
this.parentComboBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.parentComboBox.UseSelectable = true;
//
// PosXUpDown
//
this.PosXUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.PosXUpDown.DecimalPlaces = 3;
this.PosXUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.PosXUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.PosXUpDown.Location = new System.Drawing.Point(120, 76);
this.PosXUpDown.Maximum = new decimal(new int[] {
this.PosXUpDown.Location = new System.Drawing.Point(120, 76);
this.PosXUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.PosXUpDown.Minimum = new decimal(new int[] {
this.PosXUpDown.Minimum = new decimal(new int[] {
9999,
0,
0,
-2147483648});
this.PosXUpDown.Name = "PosXUpDown";
this.PosXUpDown.Size = new System.Drawing.Size(73, 20);
this.PosXUpDown.TabIndex = 19;
//
// PosYUpDown
//
this.PosYUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.PosYUpDown.DecimalPlaces = 3;
this.PosYUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.PosYUpDown.Increment = new decimal(new int[] {
this.PosXUpDown.Name = "PosXUpDown";
this.PosXUpDown.Size = new System.Drawing.Size(73, 20);
this.PosXUpDown.TabIndex = 19;
//
// PosYUpDown
//
this.PosYUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.PosYUpDown.DecimalPlaces = 3;
this.PosYUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.PosYUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.PosYUpDown.Location = new System.Drawing.Point(199, 76);
this.PosYUpDown.Maximum = new decimal(new int[] {
this.PosYUpDown.Location = new System.Drawing.Point(199, 76);
this.PosYUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.PosYUpDown.Minimum = new decimal(new int[] {
this.PosYUpDown.Minimum = new decimal(new int[] {
9999,
0,
0,
-2147483648});
this.PosYUpDown.Name = "PosYUpDown";
this.PosYUpDown.Size = new System.Drawing.Size(73, 20);
this.PosYUpDown.TabIndex = 20;
//
// PosZUpDown
//
this.PosZUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.PosZUpDown.DecimalPlaces = 3;
this.PosZUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.PosZUpDown.Increment = new decimal(new int[] {
this.PosYUpDown.Name = "PosYUpDown";
this.PosYUpDown.Size = new System.Drawing.Size(73, 20);
this.PosYUpDown.TabIndex = 20;
//
// PosZUpDown
//
this.PosZUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.PosZUpDown.DecimalPlaces = 3;
this.PosZUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.PosZUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.PosZUpDown.Location = new System.Drawing.Point(278, 76);
this.PosZUpDown.Maximum = new decimal(new int[] {
this.PosZUpDown.Location = new System.Drawing.Point(278, 76);
this.PosZUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.PosZUpDown.Minimum = new decimal(new int[] {
this.PosZUpDown.Minimum = new decimal(new int[] {
9999,
0,
0,
-2147483648});
this.PosZUpDown.Name = "PosZUpDown";
this.PosZUpDown.Size = new System.Drawing.Size(73, 20);
this.PosZUpDown.TabIndex = 21;
//
// SizeZUpDown
//
this.SizeZUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.SizeZUpDown.DecimalPlaces = 3;
this.SizeZUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.SizeZUpDown.Increment = new decimal(new int[] {
this.PosZUpDown.Name = "PosZUpDown";
this.PosZUpDown.Size = new System.Drawing.Size(73, 20);
this.PosZUpDown.TabIndex = 21;
//
// SizeZUpDown
//
this.SizeZUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.SizeZUpDown.DecimalPlaces = 3;
this.SizeZUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.SizeZUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.SizeZUpDown.Location = new System.Drawing.Point(278, 102);
this.SizeZUpDown.Maximum = new decimal(new int[] {
this.SizeZUpDown.Location = new System.Drawing.Point(278, 102);
this.SizeZUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.SizeZUpDown.Name = "SizeZUpDown";
this.SizeZUpDown.Size = new System.Drawing.Size(73, 20);
this.SizeZUpDown.TabIndex = 25;
//
// SizeYUpDown
//
this.SizeYUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.SizeYUpDown.DecimalPlaces = 3;
this.SizeYUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.SizeYUpDown.Increment = new decimal(new int[] {
this.SizeZUpDown.Name = "SizeZUpDown";
this.SizeZUpDown.Size = new System.Drawing.Size(73, 20);
this.SizeZUpDown.TabIndex = 25;
//
// SizeYUpDown
//
this.SizeYUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.SizeYUpDown.DecimalPlaces = 3;
this.SizeYUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.SizeYUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.SizeYUpDown.Location = new System.Drawing.Point(199, 102);
this.SizeYUpDown.Maximum = new decimal(new int[] {
this.SizeYUpDown.Location = new System.Drawing.Point(199, 102);
this.SizeYUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.SizeYUpDown.Name = "SizeYUpDown";
this.SizeYUpDown.Size = new System.Drawing.Size(73, 20);
this.SizeYUpDown.TabIndex = 24;
//
// SizeXUpDown
//
this.SizeXUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.SizeXUpDown.DecimalPlaces = 3;
this.SizeXUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.SizeXUpDown.Increment = new decimal(new int[] {
this.SizeYUpDown.Name = "SizeYUpDown";
this.SizeYUpDown.Size = new System.Drawing.Size(73, 20);
this.SizeYUpDown.TabIndex = 24;
//
// SizeXUpDown
//
this.SizeXUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.SizeXUpDown.DecimalPlaces = 3;
this.SizeXUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.SizeXUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.SizeXUpDown.Location = new System.Drawing.Point(120, 102);
this.SizeXUpDown.Maximum = new decimal(new int[] {
this.SizeXUpDown.Location = new System.Drawing.Point(120, 102);
this.SizeXUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.SizeXUpDown.Name = "SizeXUpDown";
this.SizeXUpDown.Size = new System.Drawing.Size(73, 20);
this.SizeXUpDown.TabIndex = 23;
//
// sizeLabel
//
sizeLabel.AutoSize = true;
sizeLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
sizeLabel.Location = new System.Drawing.Point(33, 97);
sizeLabel.Name = "sizeLabel";
sizeLabel.Size = new System.Drawing.Size(46, 25);
sizeLabel.TabIndex = 22;
sizeLabel.Text = "Size:";
sizeLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// uvYUpDown
//
this.uvYUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.uvYUpDown.DecimalPlaces = 3;
this.uvYUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uvYUpDown.Increment = new decimal(new int[] {
this.SizeXUpDown.Name = "SizeXUpDown";
this.SizeXUpDown.Size = new System.Drawing.Size(73, 20);
this.SizeXUpDown.TabIndex = 23;
//
// uvYUpDown
//
this.uvYUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.uvYUpDown.DecimalPlaces = 3;
this.uvYUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uvYUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.uvYUpDown.Location = new System.Drawing.Point(199, 128);
this.uvYUpDown.Maximum = new decimal(new int[] {
this.uvYUpDown.Location = new System.Drawing.Point(199, 128);
this.uvYUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.uvYUpDown.Minimum = new decimal(new int[] {
this.uvYUpDown.Minimum = new decimal(new int[] {
9999,
0,
0,
-2147483648});
this.uvYUpDown.Name = "uvYUpDown";
this.uvYUpDown.Size = new System.Drawing.Size(73, 20);
this.uvYUpDown.TabIndex = 28;
//
// uvXUpDown
//
this.uvXUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.uvXUpDown.DecimalPlaces = 3;
this.uvXUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uvXUpDown.Increment = new decimal(new int[] {
this.uvYUpDown.Name = "uvYUpDown";
this.uvYUpDown.Size = new System.Drawing.Size(73, 20);
this.uvYUpDown.TabIndex = 28;
//
// uvXUpDown
//
this.uvXUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.uvXUpDown.DecimalPlaces = 3;
this.uvXUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uvXUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.uvXUpDown.Location = new System.Drawing.Point(120, 128);
this.uvXUpDown.Maximum = new decimal(new int[] {
this.uvXUpDown.Location = new System.Drawing.Point(120, 128);
this.uvXUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.uvXUpDown.Minimum = new decimal(new int[] {
this.uvXUpDown.Minimum = new decimal(new int[] {
9999,
0,
0,
-2147483648});
this.uvXUpDown.Name = "uvXUpDown";
this.uvXUpDown.Size = new System.Drawing.Size(73, 20);
this.uvXUpDown.TabIndex = 27;
//
// uvLabel
//
uvLabel.AutoSize = true;
uvLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
uvLabel.Location = new System.Drawing.Point(33, 123);
uvLabel.Name = "uvLabel";
uvLabel.Size = new System.Drawing.Size(39, 25);
uvLabel.TabIndex = 26;
uvLabel.Text = "UV:";
uvLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// armorCheckBox
//
this.armorCheckBox.AutoSize = true;
this.armorCheckBox.FontSize = MetroFramework.MetroCheckBoxSize.Tall;
this.armorCheckBox.FontWeight = MetroFramework.MetroCheckBoxWeight.Light;
this.armorCheckBox.Location = new System.Drawing.Point(363, 101);
this.armorCheckBox.Name = "armorCheckBox";
this.armorCheckBox.Size = new System.Drawing.Size(245, 25);
this.armorCheckBox.TabIndex = 29;
this.armorCheckBox.Text = "Hide when wearing a helmet";
this.armorCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.armorCheckBox.UseSelectable = true;
//
// mirrorCheckBox
//
this.mirrorCheckBox.AutoSize = true;
this.mirrorCheckBox.FontSize = MetroFramework.MetroCheckBoxSize.Tall;
this.mirrorCheckBox.FontWeight = MetroFramework.MetroCheckBoxWeight.Light;
this.mirrorCheckBox.Location = new System.Drawing.Point(363, 130);
this.mirrorCheckBox.Name = "mirrorCheckBox";
this.mirrorCheckBox.Size = new System.Drawing.Size(133, 25);
this.mirrorCheckBox.TabIndex = 30;
this.mirrorCheckBox.Text = "Mirror Texture";
this.mirrorCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.mirrorCheckBox.UseSelectable = true;
//
// inflationUpDown
//
this.inflationUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.inflationUpDown.DecimalPlaces = 3;
this.inflationUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.inflationUpDown.Increment = new decimal(new int[] {
this.uvXUpDown.Name = "uvXUpDown";
this.uvXUpDown.Size = new System.Drawing.Size(73, 20);
this.uvXUpDown.TabIndex = 27;
//
// armorCheckBox
//
this.armorCheckBox.AutoSize = true;
this.armorCheckBox.FontSize = MetroFramework.MetroCheckBoxSize.Tall;
this.armorCheckBox.FontWeight = MetroFramework.MetroCheckBoxWeight.Light;
this.armorCheckBox.Location = new System.Drawing.Point(363, 101);
this.armorCheckBox.Name = "armorCheckBox";
this.armorCheckBox.Size = new System.Drawing.Size(245, 25);
this.armorCheckBox.TabIndex = 29;
this.armorCheckBox.Text = "Hide when wearing a helmet";
this.armorCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.armorCheckBox.UseSelectable = true;
//
// mirrorCheckBox
//
this.mirrorCheckBox.AutoSize = true;
this.mirrorCheckBox.FontSize = MetroFramework.MetroCheckBoxSize.Tall;
this.mirrorCheckBox.FontWeight = MetroFramework.MetroCheckBoxWeight.Light;
this.mirrorCheckBox.Location = new System.Drawing.Point(363, 130);
this.mirrorCheckBox.Name = "mirrorCheckBox";
this.mirrorCheckBox.Size = new System.Drawing.Size(133, 25);
this.mirrorCheckBox.TabIndex = 30;
this.mirrorCheckBox.Text = "Mirror Texture";
this.mirrorCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.mirrorCheckBox.UseSelectable = true;
//
// inflationUpDown
//
this.inflationUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.inflationUpDown.DecimalPlaces = 3;
this.inflationUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.inflationUpDown.Increment = new decimal(new int[] {
1,
0,
0,
65536});
this.inflationUpDown.Location = new System.Drawing.Point(120, 154);
this.inflationUpDown.Maximum = new decimal(new int[] {
this.inflationUpDown.Location = new System.Drawing.Point(120, 154);
this.inflationUpDown.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.inflationUpDown.Name = "inflationUpDown";
this.inflationUpDown.Size = new System.Drawing.Size(73, 20);
this.inflationUpDown.TabIndex = 32;
//
// inflationLabel
//
inflationLabel.AutoSize = true;
inflationLabel.FontSize = MetroFramework.MetroLabelSize.Tall;
inflationLabel.Location = new System.Drawing.Point(33, 149);
inflationLabel.Name = "inflationLabel";
inflationLabel.Size = new System.Drawing.Size(55, 25);
inflationLabel.TabIndex = 31;
inflationLabel.Text = "Scale:";
inflationLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// BoxEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(630, 220);
this.Controls.Add(this.inflationUpDown);
this.Controls.Add(this.uvYUpDown);
this.Controls.Add(this.uvXUpDown);
this.Controls.Add(this.SizeZUpDown);
this.Controls.Add(this.SizeYUpDown);
this.Controls.Add(this.SizeXUpDown);
this.Controls.Add(this.PosZUpDown);
this.Controls.Add(this.PosYUpDown);
this.Controls.Add(this.PosXUpDown);
this.Controls.Add(inflationLabel);
this.Controls.Add(this.parentComboBox);
this.Controls.Add(this.mirrorCheckBox);
this.Controls.Add(this.armorCheckBox);
this.Controls.Add(uvLabel);
this.Controls.Add(sizeLabel);
this.Controls.Add(positionLabel);
this.Controls.Add(parentLabel);
this.Controls.Add(this.closeButton);
this.MaximumSize = new System.Drawing.Size(630, 554);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(630, 220);
this.Name = "BoxEditor";
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Text = "BOX Editor";
this.Theme = MetroFramework.MetroThemeStyle.Dark;
((System.ComponentModel.ISupportInitialize)(this.PosXUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PosYUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PosZUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.SizeZUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.SizeYUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.SizeXUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.uvYUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.uvXUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.inflationUpDown)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
this.inflationUpDown.Name = "inflationUpDown";
this.inflationUpDown.Size = new System.Drawing.Size(73, 20);
this.inflationUpDown.TabIndex = 32;
//
// BoxEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(630, 220);
this.Controls.Add(this.inflationUpDown);
this.Controls.Add(this.uvYUpDown);
this.Controls.Add(this.uvXUpDown);
this.Controls.Add(this.SizeZUpDown);
this.Controls.Add(this.SizeYUpDown);
this.Controls.Add(this.SizeXUpDown);
this.Controls.Add(this.PosZUpDown);
this.Controls.Add(this.PosYUpDown);
this.Controls.Add(this.PosXUpDown);
this.Controls.Add(inflationLabel);
this.Controls.Add(this.parentComboBox);
this.Controls.Add(this.mirrorCheckBox);
this.Controls.Add(this.armorCheckBox);
this.Controls.Add(uvLabel);
this.Controls.Add(sizeLabel);
this.Controls.Add(positionLabel);
this.Controls.Add(parentLabel);
this.Controls.Add(this.closeButton);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(630, 554);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(630, 220);
this.Name = "BoxEditor";
this.Resizable = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Text = "BOX Editor";
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.BoxEditor_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.PosXUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PosYUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PosZUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.SizeZUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.SizeYUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.SizeXUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.uvYUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.uvXUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.inflationUpDown)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}

View File

@@ -1,6 +1,7 @@
using System;
using System.Windows.Forms;
using PckStudio.Internal;
using PckStudio.Properties;
namespace PckStudio.Forms.Editor
{
@@ -12,7 +13,9 @@ namespace PckStudio.Forms.Editor
{
InitializeComponent();
inflationUpDown.Enabled = hasInflation;
closeButton.Visible =!Settings.Default.AutoSaveChanges;
inflationUpDown.Enabled = hasInflation;
var box = SkinBOX.FromString(inBOX);
@@ -46,7 +49,14 @@ namespace PckStudio.Forms.Editor
$"{Convert.ToInt32(mirrorCheckBox.Checked)} " +
$"{inflationUpDown.Value}";
DialogResult = DialogResult.OK;
Close();
}
}
private void BoxEditor_FormClosing(object sender, FormClosingEventArgs e)
{
if (Settings.Default.AutoSaveChanges)
{
saveButton_Click(sender, EventArgs.Empty);
}
}
}
}

View File

@@ -117,9 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="parentLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
@@ -135,4 +132,7 @@
<metadata name="inflationLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -31,282 +31,282 @@ namespace PckStudio.Forms.Editor
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(COLEditor));
this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox();
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
this.setColorBtn = new MetroFramework.Controls.MetroButton();
this.blueUpDown = new System.Windows.Forms.NumericUpDown();
this.greenUpDown = new System.Windows.Forms.NumericUpDown();
this.redUpDown = new System.Windows.Forms.NumericUpDown();
this.alphaUpDown = new System.Windows.Forms.NumericUpDown();
this.alphaLabel = new MetroFramework.Controls.MetroLabel();
this.blueLabel = new MetroFramework.Controls.MetroLabel();
this.greenLabel = new MetroFramework.Controls.MetroLabel();
this.redLabel = new MetroFramework.Controls.MetroLabel();
this.colorTextbox = new MetroFramework.Controls.MetroTextBox();
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.targetUpdateToolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU12ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU13ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU14ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU19ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU31ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU32ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU43ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU46ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU51ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU53ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU54ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU69ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._1_9_1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.waterTab = new System.Windows.Forms.TabPage();
this.waterTreeView = new System.Windows.Forms.TreeView();
this.ColorContextMenu = new MetroFramework.Controls.MetroContextMenu(this.components);
this.restoreOriginalColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.copyColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pasteColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.underwaterTreeView = new System.Windows.Forms.TreeView();
this.fogTreeView = new System.Windows.Forms.TreeView();
this.colorsTab = new System.Windows.Forms.TabPage();
this.colorTreeView = new System.Windows.Forms.TreeView();
this.tabControl = new MetroFramework.Controls.MetroTabControl();
this.underwaterTab = new System.Windows.Forms.TabPage();
this.fogTab = new System.Windows.Forms.TabPage();
this.metroPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.blueUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.greenUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.redUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.alphaUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.menuStrip.SuspendLayout();
this.waterTab.SuspendLayout();
this.ColorContextMenu.SuspendLayout();
this.colorsTab.SuspendLayout();
this.tabControl.SuspendLayout();
this.underwaterTab.SuspendLayout();
this.fogTab.SuspendLayout();
this.SuspendLayout();
//
// metroPanel1
//
this.metroPanel1.Controls.Add(this.metroTextBox1);
this.metroPanel1.Controls.Add(this.metroLabel2);
this.metroPanel1.Controls.Add(this.setColorBtn);
this.metroPanel1.Controls.Add(this.blueUpDown);
this.metroPanel1.Controls.Add(this.greenUpDown);
this.metroPanel1.Controls.Add(this.redUpDown);
this.metroPanel1.Controls.Add(this.alphaUpDown);
this.metroPanel1.Controls.Add(this.alphaLabel);
this.metroPanel1.Controls.Add(this.blueLabel);
this.metroPanel1.Controls.Add(this.greenLabel);
this.metroPanel1.Controls.Add(this.redLabel);
this.metroPanel1.Controls.Add(this.colorTextbox);
this.metroPanel1.Controls.Add(this.metroLabel1);
this.metroPanel1.Controls.Add(this.pictureBox1);
resources.ApplyResources(this.metroPanel1, "metroPanel1");
this.metroPanel1.HorizontalScrollbarBarColor = true;
this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
this.metroPanel1.HorizontalScrollbarSize = 10;
this.metroPanel1.Name = "metroPanel1";
this.metroPanel1.Style = MetroFramework.MetroColorStyle.Silver;
this.metroPanel1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroPanel1.VerticalScrollbarBarColor = true;
this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
this.metroPanel1.VerticalScrollbarSize = 10;
//
// metroTextBox1
//
//
//
//
this.metroTextBox1.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image")));
this.metroTextBox1.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location")));
this.metroTextBox1.CustomButton.Name = "";
this.metroTextBox1.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size")));
this.metroTextBox1.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.metroTextBox1.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex")));
this.metroTextBox1.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.metroTextBox1.CustomButton.UseSelectable = true;
this.metroTextBox1.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible")));
this.metroTextBox1.Lines = new string[0];
resources.ApplyResources(this.metroTextBox1, "metroTextBox1");
this.metroTextBox1.MaxLength = 32767;
this.metroTextBox1.Name = "metroTextBox1";
this.metroTextBox1.PasswordChar = '\0';
this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.metroTextBox1.SelectedText = "";
this.metroTextBox1.SelectionLength = 0;
this.metroTextBox1.SelectionStart = 0;
this.metroTextBox1.ShortcutsEnabled = true;
this.metroTextBox1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroTextBox1.UseSelectable = true;
this.metroTextBox1.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.metroTextBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.metroTextBox1.TextChanged += new System.EventHandler(this.metroTextBox1_TextChanged);
//
// metroLabel2
//
resources.ApplyResources(this.metroLabel2, "metroLabel2");
this.metroLabel2.Name = "metroLabel2";
this.metroLabel2.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// setColorBtn
//
resources.ApplyResources(this.setColorBtn, "setColorBtn");
this.setColorBtn.Name = "setColorBtn";
this.setColorBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.setColorBtn.UseSelectable = true;
this.setColorBtn.Click += new System.EventHandler(this.setColorBtn_Click);
//
// blueUpDown
//
this.blueUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.blueUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.blueUpDown, "blueUpDown");
this.blueUpDown.Maximum = new decimal(new int[] {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(COLEditor));
this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox();
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
this.setColorBtn = new MetroFramework.Controls.MetroButton();
this.blueUpDown = new System.Windows.Forms.NumericUpDown();
this.greenUpDown = new System.Windows.Forms.NumericUpDown();
this.redUpDown = new System.Windows.Forms.NumericUpDown();
this.alphaUpDown = new System.Windows.Forms.NumericUpDown();
this.alphaLabel = new MetroFramework.Controls.MetroLabel();
this.blueLabel = new MetroFramework.Controls.MetroLabel();
this.greenLabel = new MetroFramework.Controls.MetroLabel();
this.redLabel = new MetroFramework.Controls.MetroLabel();
this.colorTextbox = new MetroFramework.Controls.MetroTextBox();
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.targetUpdateToolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU12ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU13ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU14ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU19ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU31ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU32ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU43ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU46ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU51ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU53ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU54ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TU69ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this._1_9_1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.waterTab = new System.Windows.Forms.TabPage();
this.waterTreeView = new System.Windows.Forms.TreeView();
this.ColorContextMenu = new MetroFramework.Controls.MetroContextMenu(this.components);
this.restoreOriginalColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.copyColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pasteColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.underwaterTreeView = new System.Windows.Forms.TreeView();
this.fogTreeView = new System.Windows.Forms.TreeView();
this.colorsTab = new System.Windows.Forms.TabPage();
this.colorTreeView = new System.Windows.Forms.TreeView();
this.tabControl = new MetroFramework.Controls.MetroTabControl();
this.underwaterTab = new System.Windows.Forms.TabPage();
this.fogTab = new System.Windows.Forms.TabPage();
this.metroPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.blueUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.greenUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.redUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.alphaUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.menuStrip.SuspendLayout();
this.waterTab.SuspendLayout();
this.ColorContextMenu.SuspendLayout();
this.colorsTab.SuspendLayout();
this.tabControl.SuspendLayout();
this.underwaterTab.SuspendLayout();
this.fogTab.SuspendLayout();
this.SuspendLayout();
//
// metroPanel1
//
this.metroPanel1.Controls.Add(this.metroTextBox1);
this.metroPanel1.Controls.Add(this.metroLabel2);
this.metroPanel1.Controls.Add(this.setColorBtn);
this.metroPanel1.Controls.Add(this.blueUpDown);
this.metroPanel1.Controls.Add(this.greenUpDown);
this.metroPanel1.Controls.Add(this.redUpDown);
this.metroPanel1.Controls.Add(this.alphaUpDown);
this.metroPanel1.Controls.Add(this.alphaLabel);
this.metroPanel1.Controls.Add(this.blueLabel);
this.metroPanel1.Controls.Add(this.greenLabel);
this.metroPanel1.Controls.Add(this.redLabel);
this.metroPanel1.Controls.Add(this.colorTextbox);
this.metroPanel1.Controls.Add(this.metroLabel1);
this.metroPanel1.Controls.Add(this.pictureBox1);
resources.ApplyResources(this.metroPanel1, "metroPanel1");
this.metroPanel1.HorizontalScrollbarBarColor = true;
this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
this.metroPanel1.HorizontalScrollbarSize = 10;
this.metroPanel1.Name = "metroPanel1";
this.metroPanel1.Style = MetroFramework.MetroColorStyle.Silver;
this.metroPanel1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroPanel1.VerticalScrollbarBarColor = true;
this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
this.metroPanel1.VerticalScrollbarSize = 10;
//
// metroTextBox1
//
//
//
//
this.metroTextBox1.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image")));
this.metroTextBox1.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location")));
this.metroTextBox1.CustomButton.Name = "";
this.metroTextBox1.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size")));
this.metroTextBox1.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.metroTextBox1.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex")));
this.metroTextBox1.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.metroTextBox1.CustomButton.UseSelectable = true;
this.metroTextBox1.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible")));
this.metroTextBox1.Lines = new string[0];
resources.ApplyResources(this.metroTextBox1, "metroTextBox1");
this.metroTextBox1.MaxLength = 32767;
this.metroTextBox1.Name = "metroTextBox1";
this.metroTextBox1.PasswordChar = '\0';
this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.metroTextBox1.SelectedText = "";
this.metroTextBox1.SelectionLength = 0;
this.metroTextBox1.SelectionStart = 0;
this.metroTextBox1.ShortcutsEnabled = true;
this.metroTextBox1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroTextBox1.UseSelectable = true;
this.metroTextBox1.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.metroTextBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.metroTextBox1.TextChanged += new System.EventHandler(this.metroTextBox1_TextChanged);
//
// metroLabel2
//
resources.ApplyResources(this.metroLabel2, "metroLabel2");
this.metroLabel2.Name = "metroLabel2";
this.metroLabel2.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// setColorBtn
//
resources.ApplyResources(this.setColorBtn, "setColorBtn");
this.setColorBtn.Name = "setColorBtn";
this.setColorBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.setColorBtn.UseSelectable = true;
this.setColorBtn.Click += new System.EventHandler(this.setColorBtn_Click);
//
// blueUpDown
//
this.blueUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.blueUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.blueUpDown, "blueUpDown");
this.blueUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.blueUpDown.Name = "blueUpDown";
//
// greenUpDown
//
this.greenUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.greenUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.greenUpDown, "greenUpDown");
this.greenUpDown.Maximum = new decimal(new int[] {
this.blueUpDown.Name = "blueUpDown";
//
// greenUpDown
//
this.greenUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.greenUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.greenUpDown, "greenUpDown");
this.greenUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.greenUpDown.Name = "greenUpDown";
//
// redUpDown
//
this.redUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.redUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.redUpDown, "redUpDown");
this.redUpDown.Maximum = new decimal(new int[] {
this.greenUpDown.Name = "greenUpDown";
//
// redUpDown
//
this.redUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.redUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.redUpDown, "redUpDown");
this.redUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.redUpDown.Name = "redUpDown";
//
// alphaUpDown
//
this.alphaUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.alphaUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.alphaUpDown, "alphaUpDown");
this.alphaUpDown.Maximum = new decimal(new int[] {
this.redUpDown.Name = "redUpDown";
//
// alphaUpDown
//
this.alphaUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.alphaUpDown.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
resources.ApplyResources(this.alphaUpDown, "alphaUpDown");
this.alphaUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.alphaUpDown.Name = "alphaUpDown";
this.alphaUpDown.ValueChanged += new System.EventHandler(this.alpha_ValueChanged);
//
// alphaLabel
//
resources.ApplyResources(this.alphaLabel, "alphaLabel");
this.alphaLabel.Name = "alphaLabel";
this.alphaLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// blueLabel
//
resources.ApplyResources(this.blueLabel, "blueLabel");
this.blueLabel.Name = "blueLabel";
this.blueLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// greenLabel
//
resources.ApplyResources(this.greenLabel, "greenLabel");
this.greenLabel.Name = "greenLabel";
this.greenLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// redLabel
//
resources.ApplyResources(this.redLabel, "redLabel");
this.redLabel.Name = "redLabel";
this.redLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// colorTextbox
//
//
//
//
this.colorTextbox.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image1")));
this.colorTextbox.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode")));
this.colorTextbox.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location1")));
this.colorTextbox.CustomButton.Name = "";
this.colorTextbox.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size1")));
this.colorTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.colorTextbox.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex1")));
this.colorTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.colorTextbox.CustomButton.UseSelectable = true;
this.colorTextbox.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible1")));
this.colorTextbox.Lines = new string[0];
resources.ApplyResources(this.colorTextbox, "colorTextbox");
this.colorTextbox.MaxLength = 32767;
this.colorTextbox.Name = "colorTextbox";
this.colorTextbox.PasswordChar = '\0';
this.colorTextbox.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.colorTextbox.SelectedText = "";
this.colorTextbox.SelectionLength = 0;
this.colorTextbox.SelectionStart = 0;
this.colorTextbox.ShortcutsEnabled = true;
this.colorTextbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.colorTextbox.UseSelectable = true;
this.colorTextbox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.colorTextbox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.colorTextbox.TextChanged += new System.EventHandler(this.colorBox_TextChanged);
//
// metroLabel1
//
resources.ApplyResources(this.metroLabel1, "metroLabel1");
this.metroLabel1.Name = "metroLabel1";
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Gray;
resources.ApplyResources(this.pictureBox1, "pictureBox1");
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.TabStop = false;
//
// menuStrip
//
resources.ApplyResources(this.menuStrip, "menuStrip");
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.alphaUpDown.Name = "alphaUpDown";
this.alphaUpDown.ValueChanged += new System.EventHandler(this.alpha_ValueChanged);
//
// alphaLabel
//
resources.ApplyResources(this.alphaLabel, "alphaLabel");
this.alphaLabel.Name = "alphaLabel";
this.alphaLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// blueLabel
//
resources.ApplyResources(this.blueLabel, "blueLabel");
this.blueLabel.Name = "blueLabel";
this.blueLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// greenLabel
//
resources.ApplyResources(this.greenLabel, "greenLabel");
this.greenLabel.Name = "greenLabel";
this.greenLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// redLabel
//
resources.ApplyResources(this.redLabel, "redLabel");
this.redLabel.Name = "redLabel";
this.redLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// colorTextbox
//
//
//
//
this.colorTextbox.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image1")));
this.colorTextbox.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode")));
this.colorTextbox.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location1")));
this.colorTextbox.CustomButton.Name = "";
this.colorTextbox.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size1")));
this.colorTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.colorTextbox.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex1")));
this.colorTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.colorTextbox.CustomButton.UseSelectable = true;
this.colorTextbox.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible1")));
this.colorTextbox.Lines = new string[0];
resources.ApplyResources(this.colorTextbox, "colorTextbox");
this.colorTextbox.MaxLength = 32767;
this.colorTextbox.Name = "colorTextbox";
this.colorTextbox.PasswordChar = '\0';
this.colorTextbox.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.colorTextbox.SelectedText = "";
this.colorTextbox.SelectionLength = 0;
this.colorTextbox.SelectionStart = 0;
this.colorTextbox.ShortcutsEnabled = true;
this.colorTextbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.colorTextbox.UseSelectable = true;
this.colorTextbox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.colorTextbox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.colorTextbox.TextChanged += new System.EventHandler(this.colorBox_TextChanged);
//
// metroLabel1
//
resources.ApplyResources(this.metroLabel1, "metroLabel1");
this.metroLabel1.Name = "metroLabel1";
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Gray;
resources.ApplyResources(this.pictureBox1, "pictureBox1");
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.TabStop = false;
//
// menuStrip
//
resources.ApplyResources(this.menuStrip, "menuStrip");
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.targetUpdateToolToolStripMenuItem});
this.menuStrip.Name = "menuStrip";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuStrip.Name = "menuStrip";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.saveToolStripMenuItem1});
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
//
// saveToolStripMenuItem1
//
resources.ApplyResources(this.saveToolStripMenuItem1, "saveToolStripMenuItem1");
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
//
// targetUpdateToolToolStripMenuItem
//
this.targetUpdateToolToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
//
// saveToolStripMenuItem1
//
resources.ApplyResources(this.saveToolStripMenuItem1, "saveToolStripMenuItem1");
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
//
// targetUpdateToolToolStripMenuItem
//
this.targetUpdateToolToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.TU12ToolStripMenuItem,
this.TU13ToolStripMenuItem,
this.TU14ToolStripMenuItem,
@@ -320,206 +320,203 @@ namespace PckStudio.Forms.Editor
this.TU54ToolStripMenuItem,
this.TU69ToolStripMenuItem,
this._1_9_1ToolStripMenuItem});
this.targetUpdateToolToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.targetUpdateToolToolStripMenuItem.Name = "targetUpdateToolToolStripMenuItem";
resources.ApplyResources(this.targetUpdateToolToolStripMenuItem, "targetUpdateToolToolStripMenuItem");
//
// TU12ToolStripMenuItem
//
this.TU12ToolStripMenuItem.Name = "TU12ToolStripMenuItem";
resources.ApplyResources(this.TU12ToolStripMenuItem, "TU12ToolStripMenuItem");
//
// TU13ToolStripMenuItem
//
this.TU13ToolStripMenuItem.Name = "TU13ToolStripMenuItem";
resources.ApplyResources(this.TU13ToolStripMenuItem, "TU13ToolStripMenuItem");
//
// TU14ToolStripMenuItem
//
this.TU14ToolStripMenuItem.Name = "TU14ToolStripMenuItem";
resources.ApplyResources(this.TU14ToolStripMenuItem, "TU14ToolStripMenuItem");
//
// TU19ToolStripMenuItem
//
this.TU19ToolStripMenuItem.Name = "TU19ToolStripMenuItem";
resources.ApplyResources(this.TU19ToolStripMenuItem, "TU19ToolStripMenuItem");
//
// TU31ToolStripMenuItem
//
this.TU31ToolStripMenuItem.Name = "TU31ToolStripMenuItem";
resources.ApplyResources(this.TU31ToolStripMenuItem, "TU31ToolStripMenuItem");
//
// TU32ToolStripMenuItem
//
this.TU32ToolStripMenuItem.Name = "TU32ToolStripMenuItem";
resources.ApplyResources(this.TU32ToolStripMenuItem, "TU32ToolStripMenuItem");
//
// TU43ToolStripMenuItem
//
this.TU43ToolStripMenuItem.Name = "TU43ToolStripMenuItem";
resources.ApplyResources(this.TU43ToolStripMenuItem, "TU43ToolStripMenuItem");
//
// TU46ToolStripMenuItem
//
this.TU46ToolStripMenuItem.Name = "TU46ToolStripMenuItem";
resources.ApplyResources(this.TU46ToolStripMenuItem, "TU46ToolStripMenuItem");
//
// TU51ToolStripMenuItem
//
this.TU51ToolStripMenuItem.Name = "TU51ToolStripMenuItem";
resources.ApplyResources(this.TU51ToolStripMenuItem, "TU51ToolStripMenuItem");
//
// TU53ToolStripMenuItem
//
this.TU53ToolStripMenuItem.Name = "TU53ToolStripMenuItem";
resources.ApplyResources(this.TU53ToolStripMenuItem, "TU53ToolStripMenuItem");
//
// TU54ToolStripMenuItem
//
this.TU54ToolStripMenuItem.Name = "TU54ToolStripMenuItem";
resources.ApplyResources(this.TU54ToolStripMenuItem, "TU54ToolStripMenuItem");
//
// TU69ToolStripMenuItem
//
this.TU69ToolStripMenuItem.Name = "TU69ToolStripMenuItem";
resources.ApplyResources(this.TU69ToolStripMenuItem, "TU69ToolStripMenuItem");
//
// _1_9_1ToolStripMenuItem
//
this._1_9_1ToolStripMenuItem.Name = "_1_9_1ToolStripMenuItem";
resources.ApplyResources(this._1_9_1ToolStripMenuItem, "_1_9_1ToolStripMenuItem");
//
// waterTab
//
this.waterTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.waterTab.Controls.Add(this.waterTreeView);
resources.ApplyResources(this.waterTab, "waterTab");
this.waterTab.Name = "waterTab";
//
// waterTreeView
//
this.waterTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.waterTreeView, "waterTreeView");
this.waterTreeView.Name = "waterTreeView";
this.waterTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView2_AfterSelect);
this.waterTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView2_KeyDown);
this.waterTreeView.LabelEdit = false;
//
// ColorContextMenu
//
this.ColorContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.targetUpdateToolToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.targetUpdateToolToolStripMenuItem.Name = "targetUpdateToolToolStripMenuItem";
resources.ApplyResources(this.targetUpdateToolToolStripMenuItem, "targetUpdateToolToolStripMenuItem");
//
// TU12ToolStripMenuItem
//
this.TU12ToolStripMenuItem.Name = "TU12ToolStripMenuItem";
resources.ApplyResources(this.TU12ToolStripMenuItem, "TU12ToolStripMenuItem");
//
// TU13ToolStripMenuItem
//
this.TU13ToolStripMenuItem.Name = "TU13ToolStripMenuItem";
resources.ApplyResources(this.TU13ToolStripMenuItem, "TU13ToolStripMenuItem");
//
// TU14ToolStripMenuItem
//
this.TU14ToolStripMenuItem.Name = "TU14ToolStripMenuItem";
resources.ApplyResources(this.TU14ToolStripMenuItem, "TU14ToolStripMenuItem");
//
// TU19ToolStripMenuItem
//
this.TU19ToolStripMenuItem.Name = "TU19ToolStripMenuItem";
resources.ApplyResources(this.TU19ToolStripMenuItem, "TU19ToolStripMenuItem");
//
// TU31ToolStripMenuItem
//
this.TU31ToolStripMenuItem.Name = "TU31ToolStripMenuItem";
resources.ApplyResources(this.TU31ToolStripMenuItem, "TU31ToolStripMenuItem");
//
// TU32ToolStripMenuItem
//
this.TU32ToolStripMenuItem.Name = "TU32ToolStripMenuItem";
resources.ApplyResources(this.TU32ToolStripMenuItem, "TU32ToolStripMenuItem");
//
// TU43ToolStripMenuItem
//
this.TU43ToolStripMenuItem.Name = "TU43ToolStripMenuItem";
resources.ApplyResources(this.TU43ToolStripMenuItem, "TU43ToolStripMenuItem");
//
// TU46ToolStripMenuItem
//
this.TU46ToolStripMenuItem.Name = "TU46ToolStripMenuItem";
resources.ApplyResources(this.TU46ToolStripMenuItem, "TU46ToolStripMenuItem");
//
// TU51ToolStripMenuItem
//
this.TU51ToolStripMenuItem.Name = "TU51ToolStripMenuItem";
resources.ApplyResources(this.TU51ToolStripMenuItem, "TU51ToolStripMenuItem");
//
// TU53ToolStripMenuItem
//
this.TU53ToolStripMenuItem.Name = "TU53ToolStripMenuItem";
resources.ApplyResources(this.TU53ToolStripMenuItem, "TU53ToolStripMenuItem");
//
// TU54ToolStripMenuItem
//
this.TU54ToolStripMenuItem.Name = "TU54ToolStripMenuItem";
resources.ApplyResources(this.TU54ToolStripMenuItem, "TU54ToolStripMenuItem");
//
// TU69ToolStripMenuItem
//
this.TU69ToolStripMenuItem.Name = "TU69ToolStripMenuItem";
resources.ApplyResources(this.TU69ToolStripMenuItem, "TU69ToolStripMenuItem");
//
// _1_9_1ToolStripMenuItem
//
this._1_9_1ToolStripMenuItem.Name = "_1_9_1ToolStripMenuItem";
resources.ApplyResources(this._1_9_1ToolStripMenuItem, "_1_9_1ToolStripMenuItem");
//
// waterTab
//
this.waterTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.waterTab.Controls.Add(this.waterTreeView);
resources.ApplyResources(this.waterTab, "waterTab");
this.waterTab.Name = "waterTab";
//
// waterTreeView
//
this.waterTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.waterTreeView, "waterTreeView");
this.waterTreeView.Name = "waterTreeView";
this.waterTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView2_AfterSelect);
this.waterTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView2_KeyDown);
//
// ColorContextMenu
//
this.ColorContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.restoreOriginalColorToolStripMenuItem,
this.copyColorToolStripMenuItem,
this.pasteColorToolStripMenuItem});
this.ColorContextMenu.Name = "ColorContextMenu";
resources.ApplyResources(this.ColorContextMenu, "ColorContextMenu");
//
// restoreOriginalColorToolStripMenuItem
//
this.restoreOriginalColorToolStripMenuItem.Name = "restoreOriginalColorToolStripMenuItem";
resources.ApplyResources(this.restoreOriginalColorToolStripMenuItem, "restoreOriginalColorToolStripMenuItem");
this.restoreOriginalColorToolStripMenuItem.Click += new System.EventHandler(this.restoreOriginalColorToolStripMenuItem_Click);
//
// copyColorToolStripMenuItem
//
this.copyColorToolStripMenuItem.Name = "copyColorToolStripMenuItem";
resources.ApplyResources(this.copyColorToolStripMenuItem, "copyColorToolStripMenuItem");
this.copyColorToolStripMenuItem.Click += new System.EventHandler(this.copyColorToolStripMenuItem_Click);
//
// pasteColorToolStripMenuItem
//
this.pasteColorToolStripMenuItem.Name = "pasteColorToolStripMenuItem";
resources.ApplyResources(this.pasteColorToolStripMenuItem, "pasteColorToolStripMenuItem");
this.pasteColorToolStripMenuItem.Click += new System.EventHandler(this.pasteColorToolStripMenuItem_Click);
//
// underwaterTreeView
//
this.underwaterTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.underwaterTreeView, "underwaterTreeView");
this.underwaterTreeView.Name = "underwaterTreeView";
this.underwaterTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView3_AfterSelect);
this.underwaterTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView3_KeyDown);
this.underwaterTreeView.LabelEdit = false;
//
// fogTreeView
//
this.fogTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.fogTreeView, "fogTreeView");
this.fogTreeView.Name = "fogTreeView";
this.fogTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView4_AfterSelect);
this.fogTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView4_KeyDown);
this.fogTreeView.LabelEdit = false;
//
// colorsTab
//
this.colorsTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.colorsTab.Controls.Add(this.colorTreeView);
resources.ApplyResources(this.colorsTab, "colorsTab");
this.colorsTab.Name = "colorsTab";
//
// colorTreeView
//
this.colorTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.colorTreeView, "colorTreeView");
this.colorTreeView.Name = "colorTreeView";
this.colorTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
this.colorTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
this.colorTreeView.LabelEdit = false;
//
// tabControl
//
resources.ApplyResources(this.tabControl, "tabControl");
this.tabControl.Controls.Add(this.colorsTab);
this.tabControl.Controls.Add(this.waterTab);
this.tabControl.Controls.Add(this.underwaterTab);
this.tabControl.Controls.Add(this.fogTab);
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Style = MetroFramework.MetroColorStyle.White;
this.tabControl.Theme = MetroFramework.MetroThemeStyle.Dark;
this.tabControl.UseSelectable = true;
//
// underwaterTab
//
this.underwaterTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.underwaterTab.Controls.Add(this.underwaterTreeView);
resources.ApplyResources(this.underwaterTab, "underwaterTab");
this.underwaterTab.Name = "underwaterTab";
//
// fogTab
//
this.fogTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.fogTab.Controls.Add(this.fogTreeView);
resources.ApplyResources(this.fogTab, "fogTab");
this.fogTab.Name = "fogTab";
//
// COLEditor
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.menuStrip);
this.Controls.Add(this.tabControl);
this.Controls.Add(this.metroPanel1);
this.ForeColor = System.Drawing.SystemColors.ControlText;
this.Name = "COLEditor";
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroPanel1.ResumeLayout(false);
this.metroPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.blueUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.greenUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.redUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.alphaUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
this.waterTab.ResumeLayout(false);
this.ColorContextMenu.ResumeLayout(false);
this.colorsTab.ResumeLayout(false);
this.tabControl.ResumeLayout(false);
this.underwaterTab.ResumeLayout(false);
this.fogTab.ResumeLayout(false);
this.ResumeLayout(false);
this.ColorContextMenu.Name = "ColorContextMenu";
resources.ApplyResources(this.ColorContextMenu, "ColorContextMenu");
//
// restoreOriginalColorToolStripMenuItem
//
this.restoreOriginalColorToolStripMenuItem.Name = "restoreOriginalColorToolStripMenuItem";
resources.ApplyResources(this.restoreOriginalColorToolStripMenuItem, "restoreOriginalColorToolStripMenuItem");
this.restoreOriginalColorToolStripMenuItem.Click += new System.EventHandler(this.restoreOriginalColorToolStripMenuItem_Click);
//
// copyColorToolStripMenuItem
//
this.copyColorToolStripMenuItem.Name = "copyColorToolStripMenuItem";
resources.ApplyResources(this.copyColorToolStripMenuItem, "copyColorToolStripMenuItem");
this.copyColorToolStripMenuItem.Click += new System.EventHandler(this.copyColorToolStripMenuItem_Click);
//
// pasteColorToolStripMenuItem
//
this.pasteColorToolStripMenuItem.Name = "pasteColorToolStripMenuItem";
resources.ApplyResources(this.pasteColorToolStripMenuItem, "pasteColorToolStripMenuItem");
this.pasteColorToolStripMenuItem.Click += new System.EventHandler(this.pasteColorToolStripMenuItem_Click);
//
// underwaterTreeView
//
this.underwaterTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.underwaterTreeView, "underwaterTreeView");
this.underwaterTreeView.Name = "underwaterTreeView";
this.underwaterTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView3_AfterSelect);
this.underwaterTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView3_KeyDown);
//
// fogTreeView
//
this.fogTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.fogTreeView, "fogTreeView");
this.fogTreeView.Name = "fogTreeView";
this.fogTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView4_AfterSelect);
this.fogTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView4_KeyDown);
//
// colorsTab
//
this.colorsTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.colorsTab.Controls.Add(this.colorTreeView);
resources.ApplyResources(this.colorsTab, "colorsTab");
this.colorsTab.Name = "colorsTab";
//
// colorTreeView
//
this.colorTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.colorTreeView, "colorTreeView");
this.colorTreeView.Name = "colorTreeView";
this.colorTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
this.colorTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
//
// tabControl
//
resources.ApplyResources(this.tabControl, "tabControl");
this.tabControl.Controls.Add(this.colorsTab);
this.tabControl.Controls.Add(this.waterTab);
this.tabControl.Controls.Add(this.underwaterTab);
this.tabControl.Controls.Add(this.fogTab);
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Style = MetroFramework.MetroColorStyle.White;
this.tabControl.Theme = MetroFramework.MetroThemeStyle.Dark;
this.tabControl.UseSelectable = true;
//
// underwaterTab
//
this.underwaterTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.underwaterTab.Controls.Add(this.underwaterTreeView);
resources.ApplyResources(this.underwaterTab, "underwaterTab");
this.underwaterTab.Name = "underwaterTab";
//
// fogTab
//
this.fogTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.fogTab.Controls.Add(this.fogTreeView);
resources.ApplyResources(this.fogTab, "fogTab");
this.fogTab.Name = "fogTab";
//
// COLEditor
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.menuStrip);
this.Controls.Add(this.tabControl);
this.Controls.Add(this.metroPanel1);
this.ForeColor = System.Drawing.SystemColors.ControlText;
this.Name = "COLEditor";
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.COLEditor_FormClosing);
this.metroPanel1.ResumeLayout(false);
this.metroPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.blueUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.greenUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.redUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.alphaUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
this.waterTab.ResumeLayout(false);
this.ColorContextMenu.ResumeLayout(false);
this.colorsTab.ResumeLayout(false);
this.tabControl.ResumeLayout(false);
this.underwaterTab.ResumeLayout(false);
this.fogTab.ResumeLayout(false);
this.ResumeLayout(false);
}

View File

@@ -8,6 +8,7 @@ using MetroFramework.Forms;
using OMI.Formats.Color;
using OMI.Formats.Pck;
using OMI.Workers.Color;
using PckStudio.Properties;
namespace PckStudio.Forms.Editor
{
@@ -27,7 +28,10 @@ namespace PckStudio.Forms.Editor
public COLEditor(PckFile.FileData file)
{
InitializeComponent();
_file = file;
saveToolStripMenuItem1.Visible = !Settings.Default.AutoSaveChanges;
_file = file;
using(var stream = new MemoryStream(file.Data))
{
@@ -595,5 +599,13 @@ namespace PckStudio.Forms.Editor
pictureBox1.BackColor = fixed_color;
SetUpValueChanged(true);
}
}
private void COLEditor_FormClosing(object sender, FormClosingEventArgs e)
{
if (Settings.Default.AutoSaveChanges)
{
saveToolStripMenuItem1_Click(sender, EventArgs.Empty);
}
}
}
}

View File

@@ -533,7 +533,7 @@
</value>
</data>
<data name="saveToolStripMenuItem1.Size" type="System.Drawing.Size, System.Drawing">
<value>98, 22</value>
<value>180, 22</value>
</data>
<data name="saveToolStripMenuItem1.Text" xml:space="preserve">
<value>Save</value>

View File

@@ -46,15 +46,15 @@
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.compressionLvlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.levelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.typeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
this.noneToolStripMenuItem = new PckStudio.ToolStripRadioButtonMenuItem();
this.compressedToolStripMenuItem = new PckStudio.ToolStripRadioButtonMenuItem();
this.compressedRLEToolStripMenuItem = new PckStudio.ToolStripRadioButtonMenuItem();
this.compressedRLECRCToolStripMenuItem = new PckStudio.ToolStripRadioButtonMenuItem();
this.typeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.wiiUPSVitaToolStripMenuItem = new PckStudio.ToolStripRadioButtonMenuItem();
this.pS3ToolStripMenuItem = new PckStudio.ToolStripRadioButtonMenuItem();
this.xbox360ToolStripMenuItem = new PckStudio.ToolStripRadioButtonMenuItem();
this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
this.MessageContextMenu.SuspendLayout();
this.DetailContextMenu.SuspendLayout();
this.menuStrip1.SuspendLayout();
@@ -212,40 +212,9 @@
this.compressedRLEToolStripMenuItem,
this.compressedRLECRCToolStripMenuItem});
this.levelToolStripMenuItem.Name = "levelToolStripMenuItem";
this.levelToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.levelToolStripMenuItem.Size = new System.Drawing.Size(101, 22);
this.levelToolStripMenuItem.Text = "Level";
//
// typeToolStripMenuItem
//
this.typeToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.typeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.wiiUPSVitaToolStripMenuItem,
this.pS3ToolStripMenuItem,
this.xbox360ToolStripMenuItem});
this.typeToolStripMenuItem.Name = "typeToolStripMenuItem";
this.typeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.typeToolStripMenuItem.Text = "Type";
//
// metroPanel1
//
this.metroPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.metroPanel1.Controls.Add(this.GrfParametersTreeView);
this.metroPanel1.Controls.Add(this.GrfTreeView);
this.metroPanel1.HorizontalScrollbarBarColor = true;
this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
this.metroPanel1.HorizontalScrollbarSize = 10;
this.metroPanel1.Location = new System.Drawing.Point(25, 110);
this.metroPanel1.Name = "metroPanel1";
this.metroPanel1.Size = new System.Drawing.Size(450, 312);
this.metroPanel1.TabIndex = 4;
this.metroPanel1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroPanel1.VerticalScrollbarBarColor = true;
this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
this.metroPanel1.VerticalScrollbarSize = 10;
this.metroPanel1.Resize += new System.EventHandler(this.metroPanel1_Resize);
//
// noneToolStripMenuItem
//
this.noneToolStripMenuItem.Checked = true;
@@ -280,13 +249,24 @@
this.compressedRLECRCToolStripMenuItem.Text = "Compressed + RLE + CRC";
this.compressedRLECRCToolStripMenuItem.CheckedChanged += new System.EventHandler(this.compressedRLECRCToolStripMenuItem_CheckedChanged);
//
// typeToolStripMenuItem
//
this.typeToolStripMenuItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.typeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.wiiUPSVitaToolStripMenuItem,
this.pS3ToolStripMenuItem,
this.xbox360ToolStripMenuItem});
this.typeToolStripMenuItem.Name = "typeToolStripMenuItem";
this.typeToolStripMenuItem.Size = new System.Drawing.Size(101, 22);
this.typeToolStripMenuItem.Text = "Type";
//
// wiiUPSVitaToolStripMenuItem
//
this.wiiUPSVitaToolStripMenuItem.BackColor = System.Drawing.SystemColors.Window;
this.wiiUPSVitaToolStripMenuItem.CheckOnClick = true;
this.wiiUPSVitaToolStripMenuItem.Name = "wiiUPSVitaToolStripMenuItem";
this.wiiUPSVitaToolStripMenuItem.ShowShortcutKeys = false;
this.wiiUPSVitaToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.wiiUPSVitaToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
this.wiiUPSVitaToolStripMenuItem.Text = "Wii U, PS Vita";
this.wiiUPSVitaToolStripMenuItem.CheckedChanged += new System.EventHandler(this.wiiUPSVitaToolStripMenuItem_CheckedChanged);
//
@@ -296,7 +276,7 @@
this.pS3ToolStripMenuItem.CheckOnClick = true;
this.pS3ToolStripMenuItem.Name = "pS3ToolStripMenuItem";
this.pS3ToolStripMenuItem.ShowShortcutKeys = false;
this.pS3ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.pS3ToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
this.pS3ToolStripMenuItem.Text = "PS3";
this.pS3ToolStripMenuItem.CheckedChanged += new System.EventHandler(this.pS3ToolStripMenuItem_CheckedChanged);
//
@@ -308,10 +288,30 @@
this.xbox360ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.xbox360ToolStripMenuItem.Name = "xbox360ToolStripMenuItem";
this.xbox360ToolStripMenuItem.ShowShortcutKeys = false;
this.xbox360ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.xbox360ToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
this.xbox360ToolStripMenuItem.Text = "Xbox 360";
this.xbox360ToolStripMenuItem.CheckedChanged += new System.EventHandler(this.xbox360ToolStripMenuItem_CheckedChanged);
//
// metroPanel1
//
this.metroPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.metroPanel1.Controls.Add(this.GrfParametersTreeView);
this.metroPanel1.Controls.Add(this.GrfTreeView);
this.metroPanel1.HorizontalScrollbarBarColor = true;
this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
this.metroPanel1.HorizontalScrollbarSize = 10;
this.metroPanel1.Location = new System.Drawing.Point(25, 110);
this.metroPanel1.Name = "metroPanel1";
this.metroPanel1.Size = new System.Drawing.Size(450, 312);
this.metroPanel1.TabIndex = 4;
this.metroPanel1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroPanel1.VerticalScrollbarBarColor = true;
this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
this.metroPanel1.VerticalScrollbarSize = 10;
this.metroPanel1.Resize += new System.EventHandler(this.metroPanel1_Resize);
//
// GameRuleFileEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -331,6 +331,7 @@
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Text = "GRF Editor";
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GameRuleFileEditor_FormClosing);
this.Load += new System.EventHandler(this.OnLoad);
this.MessageContextMenu.ResumeLayout(false);
this.DetailContextMenu.ResumeLayout(false);

View File

@@ -12,6 +12,7 @@ using System.Diagnostics;
using OMI.Formats.Pck;
using PckStudio.Forms.Additional_Popups;
using PckStudio.Models;
using PckStudio.Properties;
namespace PckStudio.Forms.Editor
{
@@ -25,6 +26,7 @@ namespace PckStudio.Forms.Editor
{
InitializeComponent();
PromptForCompressionType();
saveToolStripMenuItem.Visible = !Settings.Default.AutoSaveChanges;
}
private void PromptForCompressionType()
@@ -256,6 +258,7 @@ namespace PckStudio.Forms.Editor
compressionType);
writer.WriteToStream(stream);
_pckfile?.SetData(stream.ToArray());
DialogResult = DialogResult.OK;
MessageBox.Show("Saved!");
}
catch (Exception ex)
@@ -331,5 +334,13 @@ namespace PckStudio.Forms.Editor
if (sender is ToolStripRadioButtonMenuItem radioButton && radioButton.Checked)
compressionType = GameRuleFile.CompressionType.XMem;
}
private void GameRuleFileEditor_FormClosing(object sender, FormClosingEventArgs e)
{
if (Settings.Default.AutoSaveChanges)
{
saveToolStripMenuItem_Click(sender, EventArgs.Empty);
}
}
}
}

View File

@@ -180,6 +180,7 @@
this.Name = "LOCEditor";
this.Style = MetroFramework.MetroColorStyle.Silver;
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LOCEditor_FormClosing);
this.Load += new System.EventHandler(this.LOCEditor_Load);
this.Resize += new System.EventHandler(this.LOCEditor_Resize);
this.contextMenuStrip1.ResumeLayout(false);

View File

@@ -10,6 +10,7 @@ using PckStudio.Forms.Additional_Popups.Loc;
using OMI.Formats.Languages;
using OMI.Workers.Language;
using OMI.Formats.Pck;
using PckStudio.Properties;
namespace PckStudio.Forms.Editor
{
@@ -34,6 +35,8 @@ namespace PckStudio.Forms.Editor
dataGridViewLocEntryData.DataSource = tbl;
DataGridViewColumn column = dataGridViewLocEntryData.Columns[1];
column.Width = dataGridViewLocEntryData.Width;
saveToolStripMenuItem.Visible = !Settings.Default.AutoSaveChanges;
}
private void LOCEditor_Load(object sender, EventArgs e)
@@ -149,5 +152,13 @@ namespace PckStudio.Forms.Editor
}
DialogResult = DialogResult.OK;
}
}
private void LOCEditor_FormClosing(object sender, FormClosingEventArgs e)
{
if (Settings.Default.AutoSaveChanges)
{
saveToolStripMenuItem_Click(sender, EventArgs.Empty);
}
}
}
}

View File

@@ -170,7 +170,7 @@
<value>321, 17</value>
</metadata>
<data name="saveToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>180, 22</value>
<value>98, 22</value>
</data>
<data name="saveToolStripMenuItem.Text" xml:space="preserve">
<value>Save</value>
@@ -325,7 +325,7 @@
<value>locSort</value>
</data>
<data name="&gt;&gt;locSort.Type" xml:space="preserve">
<value>PckStudio.Forms.MyTablePanel, PCK Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;locSort.Parent" xml:space="preserve">
<value>$this</value>
@@ -2070,9 +2070,6 @@
AABJRU5ErkJggg==
</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>900, 667</value>
</data>