diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs b/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs index 686829b3..b80b6e51 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs @@ -319,6 +319,7 @@ this.skinPartListBox.Tag = ""; this.skinPartListBox.SelectedIndexChanged += new System.EventHandler(this.skinPartListBox_SelectedIndexChanged); this.skinPartListBox.DoubleClick += new System.EventHandler(this.skinPartListBox_DoubleClick); + this.skinPartListBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.skinPartListBox_KeyUp); // // clampToViewCheckbox // @@ -388,6 +389,7 @@ this.renderer3D1.Name = "renderer3D1"; this.renderer3D1.OutlineColor = System.Drawing.Color.Empty; this.renderer3D1.RefreshRate = 50; + this.renderer3D1.SelectedIndex = -1; this.renderer3D1.ShowArmor = false; this.renderer3D1.ShowGuideLines = false; this.renderer3D1.Texture = null; diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs index fb50c805..67f85296 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs @@ -337,6 +337,12 @@ namespace PckStudio.Forms.Editor { renderer3D1.ShowArmor = showArmorCheckbox.Checked; } + + private void skinPartListBox_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e) + { + if (e.KeyCode == Keys.Delete) + deleteToolStripMenuItem_Click(sender, e); + } } class CSMJObject diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.resx b/PCK-Studio/Forms/Editor/CustomSkinEditor.resx index abd45aa3..5f688342 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.resx +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.resx @@ -128,6 +128,9 @@ True + + False + NoControl @@ -165,6 +168,9 @@ True + + False + NoControl @@ -201,6 +207,9 @@ True + + False + NoControl @@ -267,15 +276,6 @@ 17, 17 - - 152, 108 - - - contextMenuStrip1 - - - System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO @@ -348,6 +348,15 @@ Change Color + + 152, 108 + + + contextMenuStrip1 + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Bottom, Right @@ -612,6 +621,9 @@ Top, Right + + False + 669, 371 @@ -639,6 +651,9 @@ Top, Right + + False + 728, 371 @@ -666,6 +681,9 @@ Top, Right + + False + 787, 371 @@ -693,6 +711,9 @@ Top, Right + + False + 707, 342 @@ -717,6 +738,9 @@ Top, Right + + False + 756, 342 @@ -741,6 +765,9 @@ Top, Right + + False + 787, 403 @@ -768,6 +795,9 @@ Top, Right + + False + 728, 403 @@ -795,6 +825,9 @@ Top, Right + + False + 669, 403 @@ -960,51 +993,6 @@ 2 - - skinPartsTabPage - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - metroTabControl1 - - - 0 - - - skinOffsetsTabPage - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - metroTabControl1 - - - 1 - - - 23, 59 - - - 161, 488 - - - 1 - - - metroTabControl1 - - - MetroFramework.Controls.MetroTabControl, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a - - - $this - - - 1 - 4, 38 @@ -1029,6 +1017,18 @@ 0 + + Fill + + + 0, 0 + + + 153, 446 + + + 0 + offsetListBox @@ -1065,29 +1065,26 @@ 1 - - Fill + + 23, 59 - - 0, 0 + + 161, 488 - - 153, 446 + + 1 - - 0 + + metroTabControl1 - - offsetListBox + + MetroFramework.Controls.MetroTabControl, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a - - System.Windows.Forms.ListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + $this - - skinOffsetsTabPage - - - 0 + + 1 Top, Bottom, Left, Right