fixed 3 github issues in a row holy shit
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user