Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 407f6ef

Browse files
committed
Fixed bug in Week Editor State and others things
Fixed bug in Week Editor State when you go to the freeplay option Fixed mini error in Linux or MacOS compilation Changed engine version in gitVersion.json
1 parent bbf6ecf commit 407f6ef

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

funkinscsource/slushi/substates/DebugSubState.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ class DebugSubState extends MusicBeatSubState
150150
});
151151
}
152152

153-
if (FlxG.keys.pressed.F3 && FlxG.keys.pressed.C && !Application.current.window.maximized)
153+
if (FlxG.keys.pressed.F3 && FlxG.keys.pressed.C && !Application.current.window.maximized && !Application.current.window.fullscreen)
154154
{
155155
#if windows
156156
CppAPI.centerWindow();
157157
#else
158-
setWinPositionInX(Std.int((getScreenSizeInWidth() - getWindowSizeInWidth()) / 2));
159-
setWinPositionInY(Std.int((getScreenSizeInHeight() - getWindowSizeInHeight()) / 2));
158+
WindowFuncs.setWinPositionInX(Std.int((WindowFuncs.getScreenSizeInWidth() - WindowFuncs.getWindowSizeInWidth()) / 2));
159+
WindowFuncs.setWinPositionInY(Std.int((WindowFuncs.getScreenSizeInHeight() - WindowFuncs.getWindowSizeInHeight()) / 2));
160160
#end
161161
}
162162

funkinscsource/states/editors/WeekEditorState.hx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,16 @@ class WeekEditorFreeplayState extends MusicBeatState implements PsychUIEventHand
810810
else
811811
{
812812
ClientPrefs.toggleVolumeKeys(true);
813-
if (!WeekEditorState.unsavedProgress)
814-
{
815-
MusicBeatState.switchState(new MasterEditorMenu());
816-
FlxG.sound.playMusic(SlushiMain.getSLEPath("Musics/SLE_HackNet_Resonance.ogg"));
813+
if(FlxG.keys.justPressed.ESCAPE) {
814+
if (!WeekEditorState.unsavedProgress)
815+
{
816+
MusicBeatState.switchState(new MasterEditorMenu());
817+
FlxG.sound.playMusic(SlushiMain.getSLEPath("Musics/SLE_HackNet_Resonance.ogg"));
818+
}
819+
else {
820+
openSubState(new ExitConfirmationPrompt());
821+
}
817822
}
818-
else
819-
openSubState(new ExitConfirmationPrompt());
820823

821824
if (controls.UI_UP_P) changeSelection(-1);
822825
if (controls.UI_DOWN_P) changeSelection(1);

gitVersion.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"engineVersion": "0.3.4"
2+
"engineVersion": "0.3.5"
33
}

0 commit comments

Comments
 (0)