Skip to content

Commit

Permalink
ah
Browse files Browse the repository at this point in the history
began removing mobile middlescroll
fixed prompt not showing when crash the engine was selected in the debug menu
removed resolution scaling for android players
  • Loading branch information
JordanSantiagoYT committed Nov 11, 2023
1 parent 89a723a commit 4384b4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions source/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ class ClientPrefs { //default settings if it can't find a save file containing y
}
if (FlxG.save.data.resolution != null) {
resolution = FlxG.save.data.resolution;
#if desktop
var resolutionValue = cast(ClientPrefs.resolution, String);

if (resolutionValue != null) {
Expand All @@ -478,6 +479,7 @@ class ClientPrefs { //default settings if it can't find a save file containing y
}
}
}
#end
}
if(FlxG.save.data.pbRControls != null) {
pbRControls = FlxG.save.data.pbRControls;
Expand Down
7 changes: 1 addition & 6 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4520,8 +4520,7 @@ class PlayState extends MusicBeatState
if (player < 1)
{
if(!ClientPrefs.opponentStrums) targetAlpha = 0;
else if(ClientPrefs.middleScroll || ClientPrefs.mobileMidScroll) targetAlpha = ClientPrefs.oppNoteAlpha;
if (ClientPrefs.mobileMidScroll) opponentStrums.members[i].x == FlxG.width - 2; //make it so that you're unable to see the opponent's strums if you have mobile styled middlescroll on
else if(ClientPrefs.middleScroll) targetAlpha = ClientPrefs.oppNoteAlpha;
}

var babyArrow:StrumNote = new StrumNote(ClientPrefs.middleScroll || ClientPrefs.mobileMidScroll ? STRUM_X_MIDDLESCROLL : STRUM_X, strumLine.y, i, player);
Expand Down Expand Up @@ -4552,10 +4551,6 @@ class PlayState extends MusicBeatState
babyArrow.x += FlxG.width / 2 + 25;
}
}
if(ClientPrefs.mobileMidScroll)
{
babyArrow.x += FlxG.width / 2;
}
if (!opponentChart || opponentChart && ClientPrefs.mobileMidScroll || opponentChart && ClientPrefs.mobileMidScroll || !opponentChart && ClientPrefs.mobileMidScroll) opponentStrums.add(babyArrow);
else if (ClientPrefs.mobileMidScroll) insert(members.indexOf(playerStrums), babyArrow);
else playerStrums.add(babyArrow);
Expand Down
1 change: 1 addition & 0 deletions source/Prompt.hx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class Prompt extends MusicBeatSubstate

override public function create():Void
{
cameras = [FlxG.cameras.list[FlxG.cameras.list.length-1]];
super.create();
if (goAnyway){

Expand Down

0 comments on commit 4384b4c

Please sign in to comment.