Files
FNF-i486-Engine/source/psychlua/DebugLuaText.hx
Vinegar (Moxie) d7a31ab061 feat: rewrite Lua and HScript to be more modular
* Rewrote Lua by separating most of its classes and such into its own things so other classes can make use of them
* Made HScript better by being able to open multiple instances, and should work better then the old one that was held together by sticks and glue
* Made HScript less reliant on Lua (still needs it to function currently)
* Removed Smokeyys Animate Atlas in favor of FlxAnimate (it used more ram, and could only load 2018 atlases)
* Bump version internally due to breaking changes introduced
* TODO: Add more extensive HScript support and both need thorough testing, and add backwards compatibility
2025-08-07 17:51:11 -04:00

23 lines
672 B
Haxe

package psychlua;
class DebugLuaText extends FlxText
{
public var disableTime:Float = 6;
public var parentGroup:FlxTypedGroup<DebugLuaText>;
public function new(text:String, parentGroup:FlxTypedGroup<DebugLuaText>, color:FlxColor) {
this.parentGroup = parentGroup;
super(10, 10, 0, text, 16);
setFormat(Paths.font("comic.ttf"), 16, color, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
scrollFactor.set();
borderSize = 1;
}
override function update(elapsed:Float) {
super.update(elapsed);
disableTime -= elapsed;
if(disableTime < 0) disableTime = 0;
if(disableTime < 1) alpha = disableTime;
if(alpha == 0 || y >= FlxG.height) kill();
}
}