From 0c2caba81a37ecc0863a6ffcbced97fca4c91b3c Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 19 Nov 2025 21:22:06 +0100 Subject: [PATCH] CustomSkinEditor - Rename const 'cOffsetMaximum' --- PCK-Studio/Forms/Editor/CustomSkinEditor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs index 8b39c40d..41993f64 100644 --- a/PCK-Studio/Forms/Editor/CustomSkinEditor.cs +++ b/PCK-Studio/Forms/Editor/CustomSkinEditor.cs @@ -22,7 +22,7 @@ namespace PckStudio.Forms.Editor { public partial class CustomSkinEditor : EditorForm { - private const float cOffsetMaximum = 100_000f; + private const float MAX_OFFSET = 100_000f; private Random _rng; private bool _inflateOverlayParts; private bool _allowInflate; @@ -386,7 +386,7 @@ namespace PckStudio.Forms.Editor var offsets = renderer3D1.GetOffsets().Select(offset => offset.Type).ToList(); string[] available = SkinPartOffset.ValidModelOffsetTypes.Where(s => !offsets.Contains(s)).ToArray(); using ItemSelectionPopUp typeSelection = new ItemSelectionPopUp(available); - using NumericPrompt valuePrompt = new NumericPrompt(0f, -cOffsetMaximum, cOffsetMaximum); + using NumericPrompt valuePrompt = new NumericPrompt(0f, -MAX_OFFSET, MAX_OFFSET); valuePrompt.DecimalPlaces = 1; valuePrompt.ValueStep = (decimal)0.1f; if (typeSelection.ShowDialog() == DialogResult.OK && valuePrompt.ShowDialog() == DialogResult.OK) @@ -409,7 +409,7 @@ namespace PckStudio.Forms.Editor if (offsetListBox.SelectedItem is not SkinPartOffset offset) return; - using NumericPrompt valuePrompt = new NumericPrompt(offset.Value, -cOffsetMaximum, cOffsetMaximum); + using NumericPrompt valuePrompt = new NumericPrompt(offset.Value, -MAX_OFFSET, MAX_OFFSET); valuePrompt.ToolTipText = "Set new Value for " + offset.Type; valuePrompt.DecimalPlaces = 1; valuePrompt.ValueStep = (decimal)0.1f;