1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-27 07:27:12 +00:00

Properly fix the menu background to use the correct line colors. (#493)

This commit is contained in:
Cameron Taylor 2024-04-17 20:06:42 -04:00 committed by GitHub
commit 0f858708c9
3 changed files with 4 additions and 11 deletions

2
assets

@ -1 +1 @@
Subproject commit 1b12b6c6666af6c84addf5aa0795546aa0d04185
Subproject commit f3d6cf30dee60a237a6773d8140bd1661f62bd4e

View file

@ -57,12 +57,7 @@ class MainMenuState extends MusicBeatState
persistentUpdate = false;
persistentDraw = true;
var bg = FunkinSprite.create('menuDesat');
bg.color = 0xFFFDE871;
// This line accounts for the fact that the base color of menuDesat is #EFEFEF.
flixel.util.FlxColorTransformUtil.setOffsets(bg.colorTransform, 30, 27, 13, 0.0);
var bg:FlxSprite = new FlxSprite(Paths.image('menuBG'));
bg.scrollFactor.x = 0;
bg.scrollFactor.y = 0.17;
bg.setGraphicSize(Std.int(bg.width * 1.2));
@ -73,7 +68,7 @@ class MainMenuState extends MusicBeatState
camFollow = new FlxObject(0, 0, 1, 1);
add(camFollow);
magenta = new FlxSprite(Paths.image('menuDesat'));
magenta = new FlxSprite(Paths.image('menuBGMagenta'));
magenta.scrollFactor.x = bg.scrollFactor.x;
magenta.scrollFactor.y = bg.scrollFactor.y;
magenta.setGraphicSize(Std.int(bg.width));
@ -81,7 +76,6 @@ class MainMenuState extends MusicBeatState
magenta.x = bg.x;
magenta.y = bg.y;
magenta.visible = false;
magenta.color = 0xFFfd719b;
// TODO: Why doesn't this line compile I'm going fucking feral

View file

@ -23,8 +23,7 @@ class OptionsState extends MusicBeatState
override function create()
{
var menuBG = new FlxSprite().loadGraphic(Paths.image('menuDesat'));
menuBG.color = 0xFFea71fd;
var menuBG = new FlxSprite().loadGraphic(Paths.image('menuBGBlue'));
menuBG.setGraphicSize(Std.int(menuBG.width * 1.1));
menuBG.updateHitbox();
menuBG.screenCenter();