Files
CodenameEngine/source/funkin/editors/ui/UIWindow.hx
T

12 lines
359 B
Haxe

package funkin.editors.ui;
class UIWindow extends UISliceSprite {
public var titleSpr:UIText;
public override function new(x:Float, y:Float, w:Int, h:Int, title:String) {
super(x, y, w, h, "editors/ui/warning-popup");
members.push(titleSpr = new UIText(x + 25, y, bWidth - 50, title, 15, -1));
titleSpr.y = y + ((30 - titleSpr.height) / 2);
}
}