Skip to content

Commit

Permalink
tweaking rn
Browse files Browse the repository at this point in the history
also vanilla bgs
  • Loading branch information
Joalor64GH authored Jun 10, 2024
1 parent 1c78daa commit e34e327
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 65 deletions.
Binary file modified assets/images/menuBG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/menuBGBlue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/menuBGMagenta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/menuDesat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion source/backend/Paths.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package backend;

import openfl.utils.AssetType;
import openfl.media.Sound;

using haxe.io.Path;
Expand Down
2 changes: 1 addition & 1 deletion source/debug/FPS.hx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FPS extends TextField
width = 1280;
height = 720;
selectable = false;
defaultTextFormat = new TextFormat(Paths.font((font != null) ? font : 'vcr.ttf'), 18, 0xFFFFFF);
defaultTextFormat = new TextFormat(Paths.font((font != null) ? font : 'vcr.ttf'), 18, color);
alpha = 0.8; // to see things from the back better

addEventListener(openfl.events.Event.ENTER_FRAME, (_) ->
Expand Down
9 changes: 8 additions & 1 deletion source/meta/state/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ class MainMenuState extends MusicBeatState
#end

var selectedSomethin:Bool = false;

override function update(elapsed:Float)
{
if (tipTextScrolling)
Expand Down Expand Up @@ -366,6 +365,14 @@ class MainMenuState extends MusicBeatState

if (controls.RESET && menuJSON.enableReloadKey)
FlxG.resetState();

#if debug
if (FlxG.keys.justPressed.FOUR) {
openSubState(new meta.video.VideoSubState('video', () -> {
FlxG.sound.playMusic(Paths.music('freakyMenu'));
FlxG.resetState();
}));
}
}

super.update(elapsed);
Expand Down
1 change: 0 additions & 1 deletion source/meta/state/ModsMenuState.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package meta.state;

import flixel.ui.FlxButton;
import flixel.input.keyboard.FlxKey;

class ModsMenuState extends MusicBeatState
{
Expand Down
26 changes: 20 additions & 6 deletions source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1201,10 +1201,14 @@ class PlayState extends MusicBeatState
#if LUA_ALLOWED
if(file.toLowerCase().endsWith('.lua'))
luaArray.push(new FunkinLua(folder + file));
#elseif HSCRIPT_ALLOWED
#end

#if HSCRIPT_ALLOWED
if(file.toLowerCase().endsWith('.hscript'))
addHscript(folder + file);
#elseif SCRIPT_EXTENSION
#end

#if SCRIPT_EXTENSION
if(file.toLowerCase().endsWith('.hx'))
scriptArray.push(new FunkinSScript(folder + file));
#end
Expand All @@ -1228,7 +1232,9 @@ class PlayState extends MusicBeatState

if(doPush)
luaArray.push(new FunkinLua(luaFile));
#elseif HSCRIPT_ALLOWED
#end

#if HSCRIPT_ALLOWED
var hscriptFile:String = 'stages/' + curStage + '.hscript';
if(FileSystem.exists(Paths.modFolders(hscriptFile))) {
hscriptFile = Paths.modFolders(hscriptFile);
Expand All @@ -1242,7 +1248,9 @@ class PlayState extends MusicBeatState

if(doPush)
addHscript(hscriptFile);
#elseif SCRIPT_EXTENSION
#end

#if SCRIPT_EXTENSION
var scriptFile:String = 'stages/' + curStage + '.hx';
if(FileSystem.exists(Paths.modFolders(scriptFile))) {
scriptFile = Paths.modFolders(scriptFile);
Expand Down Expand Up @@ -1560,6 +1568,7 @@ class PlayState extends MusicBeatState
#end
}
#end

#if HSCRIPT_ALLOWED
for (notetype in noteTypes)
{
Expand Down Expand Up @@ -1610,6 +1619,7 @@ class PlayState extends MusicBeatState
#end
}
#end

#if SCRIPT_EXTENSION
for (notetype in noteTypes)
{
Expand Down Expand Up @@ -1672,10 +1682,14 @@ class PlayState extends MusicBeatState
#if LUA_ALLOWED
if(file.toLowerCase().endsWith('.lua'))
luaArray.push(new FunkinLua(folder + file));
#elseif HSCRIPT_ALLOWED
#end

#if HSCRIPT_ALLOWED
if(file.toLowerCase().endsWith('.hscript'))
addHscript(folder + file);
#elseif SCRIPT_EXTENSION
#end

#if SCRIPT_EXTENSION
if(file.toLowerCase().endsWith('.hx'))
scriptArray.push(new FunkinSScript(folder + file));
#end
Expand Down
52 changes: 0 additions & 52 deletions source/meta/state/TestState.hx

This file was deleted.

3 changes: 0 additions & 3 deletions source/meta/state/editors/MasterEditorMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ class MasterEditorMenu extends MusicBeatState
FlxG.sound.music.volume = 0;
FreeplayState.destroyFreeplayVocals();
}

if (FlxG.keys.justPressed.T)
MusicBeatState.switchState(new TestState());

for (num => item in grpTexts.members)
{
Expand Down

0 comments on commit e34e327

Please sign in to comment.