diff --git a/assets/images/desktop/icons/command.png b/assets/images/desktop/icons/command.png new file mode 100644 index 00000000..b2bb1913 Binary files /dev/null and b/assets/images/desktop/icons/command.png differ diff --git a/buildnumber.txt b/buildnumber.txt index 89395971..3bcb0b10 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -693 \ No newline at end of file +696 \ No newline at end of file diff --git a/source/funkin/desktop/editors/CommandPrompt.hx b/source/funkin/desktop/editors/CommandPrompt.hx new file mode 100644 index 00000000..362ab6f8 --- /dev/null +++ b/source/funkin/desktop/editors/CommandPrompt.hx @@ -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; + } +} \ No newline at end of file diff --git a/source/funkin/desktop/windows/Window.hx b/source/funkin/desktop/windows/Window.hx index 5404f89e..60e03264 100644 --- a/source/funkin/desktop/windows/Window.hx +++ b/source/funkin/desktop/windows/Window.hx @@ -38,6 +38,9 @@ class Window extends FlxTypedGroup { 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); diff --git a/source/funkin/desktop/windows/WindowContent.hx b/source/funkin/desktop/windows/WindowContent.hx index c12e6c39..3d2696b9 100644 --- a/source/funkin/desktop/windows/WindowContent.hx +++ b/source/funkin/desktop/windows/WindowContent.hx @@ -47,7 +47,7 @@ class WindowContent extends FlxTypedGroup { 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;