From a590e360b43dd44b1b58f6877de949123230346b Mon Sep 17 00:00:00 2001 From: MayNL Date: Sun, 21 Jun 2026 12:20:35 -0400 Subject: [PATCH] Removed "Fix Skin Decimals" Tool --- .../Controls/Editor/PckEditor.Designer.cs | 9 ---- PCK-Studio/Controls/Editor/PckEditor.cs | 17 ------- PCK-Studio/Controls/Editor/PckEditor.resx | 44 +++++++------------ 3 files changed, 16 insertions(+), 54 deletions(-) diff --git a/PCK-Studio/Controls/Editor/PckEditor.Designer.cs b/PCK-Studio/Controls/Editor/PckEditor.Designer.cs index ff7a30fe..e69f7b97 100644 --- a/PCK-Studio/Controls/Editor/PckEditor.Designer.cs +++ b/PCK-Studio/Controls/Editor/PckEditor.Designer.cs @@ -89,7 +89,6 @@ namespace PckStudio.Controls this.entityMaterialsFileBINToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.viewFileInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.generateMipMapTextureToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.fixSkinDecimalsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.setSubPCKEndiannessToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.bigEndianXbox360PS3WiiUToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.littleEndianPS4PSVitaSwitchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -506,7 +505,6 @@ namespace PckStudio.Controls this.setFileTypeToolStripMenuItem, this.viewFileInfoToolStripMenuItem, this.generateMipMapTextureToolStripMenuItem1, - this.fixSkinDecimalsToolStripMenuItem, this.setSubPCKEndiannessToolStripMenuItem, this.setModelContainerFormatToolStripMenuItem, this.setSubPCKBOXVersionToolStripMenuItem, @@ -616,12 +614,6 @@ namespace PckStudio.Controls resources.ApplyResources(this.generateMipMapTextureToolStripMenuItem1, "generateMipMapTextureToolStripMenuItem1"); this.generateMipMapTextureToolStripMenuItem1.Click += new System.EventHandler(this.generateMipMapTextureToolStripMenuItem_Click); // - // fixSkinDecimalsToolStripMenuItem - // - this.fixSkinDecimalsToolStripMenuItem.Name = "fixSkinDecimalsToolStripMenuItem"; - resources.ApplyResources(this.fixSkinDecimalsToolStripMenuItem, "fixSkinDecimalsToolStripMenuItem"); - this.fixSkinDecimalsToolStripMenuItem.Click += new System.EventHandler(this.correctSkinDecimalsToolStripMenuItem_Click); - // // setSubPCKEndiannessToolStripMenuItem // this.setSubPCKEndiannessToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -857,7 +849,6 @@ namespace PckStudio.Controls private System.Windows.Forms.ToolStripMenuItem miscFunctionsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem generateMipMapTextureToolStripMenuItem1; private System.Windows.Forms.ToolStripMenuItem viewFileInfoToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem fixSkinDecimalsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem extractToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem cloneFileToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem renameFileToolStripMenuItem; diff --git a/PCK-Studio/Controls/Editor/PckEditor.cs b/PCK-Studio/Controls/Editor/PckEditor.cs index afe118ce..1f78f45b 100644 --- a/PCK-Studio/Controls/Editor/PckEditor.cs +++ b/PCK-Studio/Controls/Editor/PckEditor.cs @@ -1754,21 +1754,6 @@ namespace PckStudio.Controls } } - private void correctSkinDecimalsToolStripMenuItem_Click(object sender, EventArgs e) - { - if (treeViewMain.SelectedNode.TryGetTagData(out PckAsset asset) && - asset.Type == PckAssetType.SkinFile) - { - foreach (KeyValuePair p in asset.GetParameters().ToList()) - { - if (p.Key == "BOX" || p.Key == "OFFSET") - asset.SetParameter(asset.GetParameterIndex(p), new KeyValuePair(p.Key, p.Value.Replace(',', '.'))); - } - ReloadParameterTreeView(); - _wasModified = true; - } - } - private void extractToolStripMenuItem_Click(object sender, EventArgs e) { TreeNode node = treeViewMain.SelectedNode; @@ -2610,7 +2595,6 @@ namespace PckStudio.Controls private void contextMenuPCKEntries_Opening(object sender, System.ComponentModel.CancelEventArgs e) { - fixSkinDecimalsToolStripMenuItem.Visible = false; generateMipMapTextureToolStripMenuItem1.Visible = false; setModelContainerFormatToolStripMenuItem.Visible = false; setSubPCKEndiannessToolStripMenuItem.Visible = false; @@ -2635,7 +2619,6 @@ namespace PckStudio.Controls switch (asset.Type) { case PckAssetType.SkinFile: - fixSkinDecimalsToolStripMenuItem.Visible = true; exportToolStripMenuItem.Visible = true; exportIconToolStripMenuItem.Visible = customSkinIcons; // only enable if setting is true, no point in exporting custom icons otherwise diff --git a/PCK-Studio/Controls/Editor/PckEditor.resx b/PCK-Studio/Controls/Editor/PckEditor.resx index ea5827db..dd926b3a 100644 --- a/PCK-Studio/Controls/Editor/PckEditor.resx +++ b/PCK-Studio/Controls/Editor/PckEditor.resx @@ -912,7 +912,7 @@ True - 76, 69 + 76, 66 0, 0 @@ -957,7 +957,7 @@ False - 215, 39 + 215, 36 146, 20 @@ -1002,7 +1002,7 @@ False - 215, 71 + 215, 68 146, 20 @@ -1026,7 +1026,7 @@ Bottom, Right - 215, 97 + 215, 94 146, 33 @@ -1059,7 +1059,7 @@ True - 138, -38 + 138, -41 0, 0 @@ -1523,20 +1523,14 @@ Generate MipMap Texture - - 223, 22 - - - Fix Skin Decimals - - 100, 22 + 180, 22 Big - 100, 22 + 180, 22 Little @@ -1548,19 +1542,19 @@ Set Endianness - 163, 22 + 180, 22 Models Version 1 - 163, 22 + 180, 22 Models Version 2 - 163, 22 + 180, 22 Models Version 3 @@ -1572,25 +1566,25 @@ Set Model Container version - 147, 22 + 180, 22 BOX Version 0 - 147, 22 + 180, 22 BOX Version 1 - 147, 22 + 180, 22 BOX Version 2 - 147, 22 + 180, 22 BOX Version 3 @@ -1602,13 +1596,13 @@ Set BOX Version - 123, 22 + 180, 22 Full Body - 123, 22 + 180, 22 Cropped @@ -2067,12 +2061,6 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - fixSkinDecimalsToolStripMenuItem - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - setSubPCKEndiannessToolStripMenuItem