you can maximize windows now + messageboxes
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package funkin.desktop.sprites;
|
||||
|
||||
import flixel.text.FlxText;
|
||||
import flixel.addons.ui.FlxUIText;
|
||||
import funkin.desktop.theme.Theme.ThemeData;
|
||||
|
||||
class WindowText extends FlxText {
|
||||
// TODO: VISUAL STYLES SHIT
|
||||
public function new(x:Float, y:Float, w:Float, t:String) {
|
||||
super(x, y, w, t);
|
||||
color = 0xFF000000;
|
||||
scrollFactor.set();
|
||||
applyFontSettings(DesktopMain.theme.window);
|
||||
// setFormat(Paths.font(.font))
|
||||
}
|
||||
|
||||
public function applyFontSettings(data:ThemeData) {
|
||||
var fontPath = Paths.font(data.font);
|
||||
if (data.font.startsWith("file://")) {
|
||||
fontPath = data.font.substr(7);
|
||||
while(fontPath.charAt(0) == "/") fontPath = fontPath.substr(1);
|
||||
}
|
||||
setFormat(fontPath, Std.int(data.fontSize), data.textColor);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user