mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-22 09:59:25 +00:00
options screen menu bg fix
This commit is contained in:
parent
7087b6de6f
commit
e33f14ea5c
|
@ -13,6 +13,7 @@ class HSVShader extends FlxRuntimeShader
|
||||||
public function new()
|
public function new()
|
||||||
{
|
{
|
||||||
super(Assets.getText(Paths.frag('hsv')));
|
super(Assets.getText(Paths.frag('hsv')));
|
||||||
|
FlxG.debugger.addTrackerProfile(new TrackerProfile(HSVShader, ['hue', 'saturation', 'value']));
|
||||||
hue = 1;
|
hue = 1;
|
||||||
saturation = 1;
|
saturation = 1;
|
||||||
value = 1;
|
value = 1;
|
||||||
|
|
|
@ -8,6 +8,7 @@ import flixel.util.FlxSignal;
|
||||||
import funkin.audio.FunkinSound;
|
import funkin.audio.FunkinSound;
|
||||||
import funkin.ui.mainmenu.MainMenuState;
|
import funkin.ui.mainmenu.MainMenuState;
|
||||||
import funkin.ui.MusicBeatState;
|
import funkin.ui.MusicBeatState;
|
||||||
|
import funkin.graphics.shaders.HSVShader;
|
||||||
import funkin.util.WindowUtil;
|
import funkin.util.WindowUtil;
|
||||||
import funkin.audio.FunkinSound;
|
import funkin.audio.FunkinSound;
|
||||||
import funkin.input.Controls;
|
import funkin.input.Controls;
|
||||||
|
@ -18,12 +19,18 @@ class OptionsState extends MusicBeatState
|
||||||
var currentName:PageName = Options;
|
var currentName:PageName = Options;
|
||||||
var currentPage(get, never):Page;
|
var currentPage(get, never):Page;
|
||||||
|
|
||||||
inline function get_currentPage()
|
inline function get_currentPage():Page
|
||||||
return pages[currentName];
|
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.setGraphicSize(Std.int(menuBG.width * 1.1));
|
||||||
menuBG.updateHitbox();
|
menuBG.updateHitbox();
|
||||||
menuBG.screenCenter();
|
menuBG.screenCenter();
|
||||||
|
|
Loading…
Reference in a new issue