fixed 3 github issues in a row holy shit

This commit is contained in:
Yoshman29
2023-02-23 21:11:24 +01:00
parent 9ad993002a
commit 1397fa42e3
8 changed files with 16 additions and 21 deletions
@@ -55,7 +55,7 @@ class DialogueBox extends FunkinSprite {
textNode.has.width ? Std.parseInt(textNode.att.width).getDefault(FlxG.width) : FlxG.width, "");
text.color = textNode.getAtt("color").getColorFromDynamic().getDefault(0xFF000000);
text.size = Std.parseInt(textNode.att.size).getDefault(20);
text.font = Paths.font('${textNode.getAtt("font").getDefault("vcr")}.ttf');
text.font = Paths.font('${textNode.getAtt("font").getDefault("vcr.ttf")}');
text.antialiasing = textNode.getAtt("antialiasing").getDefault("false") == "true";
text.sounds = [FlxG.sound.load(textTypeSFX)];
} catch(e) {
+8
View File
@@ -31,6 +31,14 @@ class SplashHandler extends FlxTypedGroup<FunkinSprite> {
grpMap = null;
}
var _firstDraw:Bool = true;
public override function draw() {
super.draw();
if (_firstDraw != (_firstDraw = false))
for(grp in grpMap)
grp.draw();
}
var __grp:SplashGroup;
public function showSplash(name:String, strum:Strum) {
__grp = getSplashGroup(name);