CharterSelection Song Variations

This commit is contained in:
Ralty
2025-08-09 12:16:58 +07:00
parent 14c81ef26d
commit faa0dbb324
10 changed files with 182 additions and 95 deletions
+5 -1
View File
@@ -31,7 +31,6 @@ class UIColorwheel extends UISliceSprite {
hue = curColor.hue; saturation = curColor.saturation; brightness = curColor.brightness;
colorPickerShader = new CustomShader("engine/colorPicker");
colorPickerShader.hset("hue", hue);
colorPicker = new FlxSprite(x + 12.5, (y + 125/2) - (100/2)).makeGraphic(100, 100, FlxColor.TRANSPARENT);
colorPicker.drawRoundRect(0, 0, 100, 100, 10, 10, FlxColor.WHITE);
@@ -91,6 +90,11 @@ class UIColorwheel extends UISliceSprite {
updateWheel(false);
}
public function setColor(color:FlxColor) {
hue = curColor.hue; saturation = curColor.saturation; brightness = curColor.brightness;
updateWheel(false);
}
inline function updateColorPickerSelector()
colorPickerSelector.selector.setPosition(colorPicker.x + (colorPicker.width *saturation) - 8, colorPicker.y + (colorPicker.height + (colorPicker.height * -brightness))- 8);