Skip to content

Commit

Permalink
Some Android additions from old port
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan2008Git authored May 1, 2023
1 parent 7791e5e commit db3bad8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ClientPrefs {
public static var downScroll:Bool = false;
public static var middleScroll:Bool = false;
public static var opponentStrums:Bool = true;
public static var showFPS:Bool = true;
public static var showFPS:Bool = #if android false #else true #end;
public static var flashing:Bool = true;
public static var globalAntialiasing:Bool = true;
public static var noteSplashes:Bool = true;
Expand Down
12 changes: 12 additions & 0 deletions source/FlashingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,25 @@ class FlashingState extends MusicBeatState
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
add(bg);

#if android
warnText = new FlxText(0, 0, FlxG.width,
"Hey, watch out!\n
Be careful when you touch the phone fast!\n
You can break your phone screen if you do that,also\n
This Mod contains some flashing lights!\n
Press A to disable them now or go to Options Menu.\n
Press B to ignore this message.\n
You've been warned!",
32);
#else
warnText = new FlxText(0, 0, FlxG.width,
"Hey, watch out!\n
This Mod contains some flashing lights!\n
Press ENTER to disable them now or go to Options Menu.\n
Press ESCAPE to ignore this message.\n
You've been warned!",
32);
#end
warnText.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
warnText.screenCenter(Y);
add(warnText);
Expand Down

0 comments on commit db3bad8

Please sign in to comment.