Skip to content

Commit

Permalink
gah
Browse files Browse the repository at this point in the history
removed the gameplay changer substate for android (ONLY IN THE PAUSE MENU) because it causes issues when in the pause menu
  • Loading branch information
JordanSantiagoYT committed Oct 26, 2023
1 parent b32c4a7 commit c0c6712
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/GameplayChangersSubstate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import flixel.util.FlxTimer;
import flixel.input.keyboard.FlxKey;
import flixel.graphics.FlxGraphic;
import Controls;
import flixel.FlxState;

using StringTools;

Expand Down Expand Up @@ -379,7 +380,7 @@ class GameplayChangersSubstate extends MusicBeatSubstate
clearHold();
}
}
if(controls.RESET && FlxG.keys.pressed.SHIFT #if android || virtualPad.buttonC.justPressed #end)
if(controls.RESET && FlxG.keys.pressed.SHIFT #if android || virtualPad != null && virtualPad.buttonC.justPressed #end)
{
for (i in 0...optionsArray.length)
{
Expand Down
5 changes: 4 additions & 1 deletion source/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class PauseSubState extends MusicBeatSubstate
{
super();
if(CoolUtil.difficulties.length < 2) menuItemsOG.remove('Change Difficulty'); //No need to change difficulty if there is only one!
#if android
menuItemsOG.remove('Change Gameplay Settings');
#end
if(botplayLockout) menuItemsOG.remove('Toggle Botplay'); //you cant toggle it on MWAHAHAHAHAHA

if(PlayState.chartingMode)
Expand Down Expand Up @@ -311,8 +314,8 @@ class PauseSubState extends MusicBeatSubstate
FlxG.sound.music.time = pauseMusic.time;
}
case "Exit":
if (FlxG.random.int(0, 999) == 10) menuItemsExit = ['Exit To Your Mother'];
menuItems = menuItemsExit;
if (FlxG.random.bool(0.1)) menuItemsExit[0] = 'Exit To Your Mother';
regenMenu();
}
}
Expand Down

0 comments on commit c0c6712

Please sign in to comment.