From 04178c8ea72c782eb2b315488a961232f7940b56 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Sun, 25 Feb 2024 01:09:44 +0100 Subject: [PATCH] CustomSkinEditor - Add Guideline check --- .../Forms/Editor/CustomSkinEditor.Designer.cs | 1 + PCK-Studio/Forms/Editor/CustomSkinEditor.cs | 5 +++ PCK-Studio/Forms/Editor/CustomSkinEditor.resx | 44 +++++++++---------- 3 files changed, 28 insertions(+), 22 deletions(-) diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs b/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs index 1293f6a2..22bdf208 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.Designer.cs @@ -212,6 +212,7 @@ this.checkGuide.Name = "checkGuide"; this.checkGuide.Theme = MetroFramework.MetroThemeStyle.Dark; this.checkGuide.UseSelectable = true; + this.checkGuide.CheckedChanged += new System.EventHandler(this.checkGuide_CheckedChanged); // // checkBoxArmor // diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs index 950a2149..3f759cd3 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs @@ -317,6 +317,11 @@ namespace PckStudio.Forms.Editor renderer3D1.GetThumbnail().Save(saveFileDialog.FileName, ImageFormat.Png); } } + + private void checkGuide_CheckedChanged(object sender, EventArgs e) + { + outlineColorButton.Visible = renderer3D1.ShowGuideLines = checkGuide.Checked; + } } class CSMJObject diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.resx b/PCK-Studio/Forms/Editor/CustomSkinEditor.resx index a1f9eda6..327c7aaa 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.resx +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.resx @@ -490,13 +490,13 @@ 19 - Bottom, Left + Bottom, Right - 301, 558 + 777, 460 - 106, 21 + 100, 21 145 @@ -504,6 +504,9 @@ Set Outline Color + + False + outlineColorButton @@ -517,7 +520,7 @@ 18 - Top, Right + Bottom, Right True @@ -547,7 +550,7 @@ 17 - Top, Right + Bottom, Right True @@ -577,7 +580,7 @@ 16 - Top, Right + Bottom, Right True @@ -823,10 +826,10 @@ 0, 0 - 157, 450 + 153, 446 - 161 + 0 skinPartListBox @@ -841,7 +844,7 @@ 0 - Top, Right + Bottom, Right True @@ -898,7 +901,7 @@ 4 - Top, Right + Bottom, Right True @@ -957,17 +960,11 @@ 2 - - Top, Bottom, Left - - - Center - 4, 38 - 157, 450 + 153, 446 0 @@ -994,7 +991,7 @@ 0, 0 - 157, 450 + 153, 446 0 @@ -1015,13 +1012,13 @@ 4, 38 - 157, 450 + 153, 446 1 - Offsets + Offset skinOffsetsTabPage @@ -1039,10 +1036,10 @@ 23, 59 - 165, 492 + 161, 488 - 166 + 1 metroTabControl1 @@ -1056,6 +1053,9 @@ 1 + + Top, Bottom, Left, Right + 190, 59