diff --git a/UserInterface/FlxTextFormat/source/PlayState.hx b/UserInterface/FlxTextFormat/source/PlayState.hx index 8993493c6..5b553f9ad 100644 --- a/UserInterface/FlxTextFormat/source/PlayState.hx +++ b/UserInterface/FlxTextFormat/source/PlayState.hx @@ -9,7 +9,6 @@ using flixel.util.FlxSpriteUtil; class PlayState extends FlxState { - public var text1:FlxText; public var text2:FlxText; @@ -34,8 +33,8 @@ class PlayState extends FlxState add(text1); text2 = createText(120); - text2.applyMarkup("*Forma*_tted_ $v$^i^!a! apply:Markup():", [ - new FlxTextFormatMarkerPair(format1, "*"), + text2.applyMarkup("Forma_tted_ $v$^i^!a! apply:Markup():", [ + new FlxTextFormatMarkerPair(format1, ""), new FlxTextFormatMarkerPair(format2, "_"), new FlxTextFormatMarkerPair(format3, "$"), new FlxTextFormatMarkerPair(format4, "^"), @@ -44,16 +43,6 @@ class PlayState extends FlxState add(text2); } - public override function update(elapsed:Float):Void - { - super.update(elapsed); - if (FlxG.keys.justPressed.ONE) - { - var b = text1.graphic; - add(new FlxSprite(0, 0, b)); - } - } - function createText(y:Float, ?text:String) { var text = new FlxText(60, y, FlxG.width, text);