Mirror for Friday Night Funkin

tiny little cleans in char select nametag

authored by ninjamuffin99.newgrounds.com and committed by

Kade 745f49ca 78646c46

+5 -12
+1 -1
source/funkin/ui/charSelect/CharSelectSubState.hx
··· 498 498 grpIcons.scrollFactor.set(); 499 499 } 500 500 501 - function unLock() 501 + function unLock():Void 502 502 { 503 503 var index = nonLocks[0]; 504 504
+4 -11
source/funkin/ui/charSelect/Nametag.hx
··· 18 18 shader = mosaicShader; 19 19 20 20 switchChar("bf"); 21 - 22 - FlxG.debugger.addTrackerProfile(new TrackerProfile(Nametag, ["midpointX", "midpointY"])); 23 - FlxG.debugger.track(this, "Nametag"); 24 21 } 25 22 26 23 public function updatePosition():Void ··· 71 68 } 72 69 } 73 70 74 - function setBlockTimer(frame:Int, ?forceX:Float, ?forceY:Float) 71 + function setBlockTimer(frame:Int, ?forceX:Float, ?forceY:Float):Void 75 72 { 76 - var daX:Float = 10 * FlxG.random.int(1, 4); 77 - var daY:Float = 10 * FlxG.random.int(1, 4); 78 - 79 - if (forceX != null) daX = forceX; 80 - 81 - if (forceY != null) daY = forceY; 73 + var daX:Float = forceX ?? 10 * FlxG.random.int(1, 4); 74 + var daY:Float = forceY ?? 10 * FlxG.random.int(1, 4); 82 75 83 - new FlxTimer().start(frame / 30, _ -> { 76 + FlxTimer.wait(frame / 30, () -> { 84 77 mosaicShader.setBlockSize(daX, daY); 85 78 }); 86 79 }