From 812691f3b5f51d0d477747fb2bf91f429d742923 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Wed, 31 Jul 2024 22:17:53 +0200 Subject: [PATCH] Cats everywhere --- source/funkin/editors/ui/UIColorwheel.hx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/funkin/editors/ui/UIColorwheel.hx b/source/funkin/editors/ui/UIColorwheel.hx index 80a6041a..76195d25 100644 --- a/source/funkin/editors/ui/UIColorwheel.hx +++ b/source/funkin/editors/ui/UIColorwheel.hx @@ -69,10 +69,11 @@ class UIColorwheel extends UISliceSprite { numStepper.antialiasing = true; numStepper.ID = i; numStepper.onChange = (text:String) -> { @:privateAccess numStepper.__onChange(text); + var val = Std.int(numStepper.value); switch (numStepper.ID) { - default: curColor.red = Std.int(numStepper.value); - case 1: curColor.green = Std.int(numStepper.value); - case 2: curColor.blue = Std.int(numStepper.value); + default: curColor.red = val; + case 1: curColor.green = val; + case 2: curColor.blue = val; } hue = curColor.hue; saturation = curColor.saturation; brightness = curColor.brightness; updateWheel();