From e33f14ea5cc52a364c0647c92725ee1cb2e923b5 Mon Sep 17 00:00:00 2001
From: Cameron Taylor <cameron.taylor.ninja@gmail.com>
Date: Wed, 24 Apr 2024 12:11:37 -0400
Subject: [PATCH] options screen menu bg fix

---
 source/funkin/graphics/shaders/HSVShader.hx |  1 +
 source/funkin/ui/options/OptionsState.hx    | 13 ++++++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/source/funkin/graphics/shaders/HSVShader.hx b/source/funkin/graphics/shaders/HSVShader.hx
index 2dfdac2c9..b6d079612 100644
--- a/source/funkin/graphics/shaders/HSVShader.hx
+++ b/source/funkin/graphics/shaders/HSVShader.hx
@@ -13,6 +13,7 @@ class HSVShader extends FlxRuntimeShader
   public function new()
   {
     super(Assets.getText(Paths.frag('hsv')));
+    FlxG.debugger.addTrackerProfile(new TrackerProfile(HSVShader, ['hue', 'saturation', 'value']));
     hue = 1;
     saturation = 1;
     value = 1;
diff --git a/source/funkin/ui/options/OptionsState.hx b/source/funkin/ui/options/OptionsState.hx
index a00b28dbb..da375706b 100644
--- a/source/funkin/ui/options/OptionsState.hx
+++ b/source/funkin/ui/options/OptionsState.hx
@@ -8,6 +8,7 @@ import flixel.util.FlxSignal;
 import funkin.audio.FunkinSound;
 import funkin.ui.mainmenu.MainMenuState;
 import funkin.ui.MusicBeatState;
+import funkin.graphics.shaders.HSVShader;
 import funkin.util.WindowUtil;
 import funkin.audio.FunkinSound;
 import funkin.input.Controls;
@@ -18,12 +19,18 @@ class OptionsState extends MusicBeatState
   var currentName:PageName = Options;
   var currentPage(get, never):Page;
 
-  inline function get_currentPage()
+  inline function get_currentPage():Page
     return pages[currentName];
 
-  override function create()
+  override function create():Void
   {
-    var menuBG = new FlxSprite().loadGraphic(Paths.image('menuBGBlue'));
+    var menuBG = new FlxSprite().loadGraphic(Paths.image('menuBG'));
+    var hsv = new HSVShader();
+    hsv.hue = -0.6;
+    hsv.saturation = 0.9;
+    hsv.value = 3.6;
+    menuBG.shader = hsv;
+    FlxG.debugger.track(hsv);
     menuBG.setGraphicSize(Std.int(menuBG.width * 1.1));
     menuBG.updateHitbox();
     menuBG.screenCenter();