diff --git a/source/funkin/editors/ui/UIColorwheel.hx b/source/funkin/editors/ui/UIColorwheel.hx index 0a28e20e..d19db808 100644 --- a/source/funkin/editors/ui/UIColorwheel.hx +++ b/source/funkin/editors/ui/UIColorwheel.hx @@ -87,7 +87,7 @@ class UIColorwheel extends UISliceSprite { for (item in [colorPicker, colorPickerSelector, colorSlider, colorSliderSelector, colorHexTextBox, hexLabel, rgbLabel]) members.push(item); - updateWheel(); + updateWheel(false); } inline function updateColorPickerSelector() @@ -103,7 +103,8 @@ class UIColorwheel extends UISliceSprite { inline function updateColorSliderMouse(mousePos:FlxPoint) hue = (mousePos.y / colorSlider.height) * 360; - public function updateWheel() { + public function updateWheel(checkChanged:Bool = true) { + if(checkChanged) colorChanged = true; colorPickerShader.hset("hue", hue / 360); colorPickerSelector.curColor = color = curColor = FlxColor.fromHSB(hue, saturation, brightness); colorSliderSelector.curColor = FlxColor.fromHSB(hue, 1, 1); @@ -121,7 +122,7 @@ class UIColorwheel extends UISliceSprite { // For Character Editor public var colorChanged:Bool = false; - // Make the colorwhell feel better + // Make the colorwheel feel better static inline var hitBoxExtenstion:Float = 8; public override function update(elapsed:Float) { @@ -138,7 +139,6 @@ class UIColorwheel extends UISliceSprite { if (sprite == colorSlider) updateColorSliderMouse(mousePos); if (sprite == colorPicker) updateColorPickerMouse(mousePos); updateWheel(); - colorChanged = true; spritePos.put(); break;