Skip to content

Commit

Permalink
Update ErrorState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored May 31, 2024
1 parent db9023d commit 23346c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/meta/state/ErrorState.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package states;
package meta.state;

class ErrorState extends MusicBeatState
{
Expand All @@ -17,20 +17,21 @@ class ErrorState extends MusicBeatState

public var errorSine:Float = 0;
public var errorText:FlxText;

override function create()
{
var bg = new FlxSprite().loadGraphic(Paths.image('menuDesat'));
bg.color = FlxColor.GRAY;
bg.antialiasing = ClientPrefs.data.antialiasing;
add(bg);
bg.antialiasing = ClientPrefs.antialiasing;
bg.screenCenter();
add(bg);

errorText = new FlxText(0, 0, FlxG.width - 300, errorMsg, 32);
errorText.setFormat(Paths.font("vcr.ttf"), 32, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
errorText.scrollFactor.set();
errorText.borderSize = 2;
errorText.screenCenter();
add(errorText);

super.create();
}

Expand Down

0 comments on commit 23346c6

Please sign in to comment.