refactoring console ui

This commit is contained in:
2025-01-15 19:45:00 +01:00
committed by andreas
parent 46f2ef5e09
commit 97833fc6d9
16 changed files with 691 additions and 153 deletions
+24
View File
@@ -0,0 +1,24 @@
package game.ui.text;
import openfl.text.TextFormat;
import openfl.Assets;
import assets.Fonts;
class TextFormats{
public static var formats:TextFormats;
public var cInputFmt:TextFormat;
public var cOutputFmt:TextFormat;
public function new(){
cInputFmt = new TextFormat(Assets.getFont("fonts/Terminus.ttf").fontName, 24, 0xffffff);
cOutputFmt = new TextFormat(Assets.getFont("fonts/Terminus.ttf").fontName, 24, 0xffffff);
}
public static function getFormats():TextFormats
{
if(formats == null){
formats = new TextFormats();
}
return formats;
}
}