This commit is contained in:
Yoshman29
2022-10-21 22:26:11 +02:00
parent 30acc86065
commit 3c0763edd1
5 changed files with 17 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

+1 -1
View File
@@ -1 +1 @@
693
696
@@ -0,0 +1,12 @@
package funkin.desktop.editors;
class CommandPrompt extends WindowContent {
public function new() {
super("Command Prompt", 100, 100, 960, 480);
}
public override function create() {
super.create();
windowCamera.bgColor = 0xFF000000;
}
}
+3
View File
@@ -38,6 +38,9 @@ class Window extends FlxTypedGroup<FlxBasic> {
public var caption:FlxUIText;
public var icon:FlxSprite;
public var draggable:Bool = true;
public var resizeable:Bool = true;
public function loadIcon(path:String) {
icon.loadGraphic(path);
icon.setUnstretchedGraphicSize(16, 16, false);
@@ -47,7 +47,7 @@ class WindowContent extends FlxTypedGroup<FlxSprite> {
return title;
}
private function set_title(text:String):String {
private function set_icon(text:String):String {
icon = text;
if (parent != null) parent.loadIcon(icon);
return icon;