diff --git a/source/funkin/ui/charSelect/CharSelectSubState.hx b/source/funkin/ui/charSelect/CharSelectSubState.hx index 48a88be33..87f08960c 100644 --- a/source/funkin/ui/charSelect/CharSelectSubState.hx +++ b/source/funkin/ui/charSelect/CharSelectSubState.hx @@ -498,7 +498,7 @@ class CharSelectSubState extends MusicBeatSubState grpIcons.scrollFactor.set(); } - function unLock() + function unLock():Void { var index = nonLocks[0]; diff --git a/source/funkin/ui/charSelect/Nametag.hx b/source/funkin/ui/charSelect/Nametag.hx index b6cedb0c7..5bdb0e7e8 100644 --- a/source/funkin/ui/charSelect/Nametag.hx +++ b/source/funkin/ui/charSelect/Nametag.hx @@ -18,9 +18,6 @@ class Nametag extends FlxSprite shader = mosaicShader; switchChar("bf"); - - FlxG.debugger.addTrackerProfile(new TrackerProfile(Nametag, ["midpointX", "midpointY"])); - FlxG.debugger.track(this, "Nametag"); } public function updatePosition():Void @@ -71,16 +68,12 @@ class Nametag extends FlxSprite } } - function setBlockTimer(frame:Int, ?forceX:Float, ?forceY:Float) + function setBlockTimer(frame:Int, ?forceX:Float, ?forceY:Float):Void { - var daX:Float = 10 * FlxG.random.int(1, 4); - var daY:Float = 10 * FlxG.random.int(1, 4); + var daX:Float = forceX ?? 10 * FlxG.random.int(1, 4); + var daY:Float = forceY ?? 10 * FlxG.random.int(1, 4); - if (forceX != null) daX = forceX; - - if (forceY != null) daY = forceY; - - new FlxTimer().start(frame / 30, _ -> { + FlxTimer.wait(frame / 30, () -> { mosaicShader.setBlockSize(daX, daY); }); }