From 3c0763edd1dd5f8de8696c68d8f1f9e554fd5dbd Mon Sep 17 00:00:00 2001 From: Yoshman29 Date: Fri, 21 Oct 2022 22:26:11 +0200 Subject: [PATCH] icon --- assets/images/desktop/icons/command.png | Bin 0 -> 174 bytes buildnumber.txt | 2 +- source/funkin/desktop/editors/CommandPrompt.hx | 12 ++++++++++++ source/funkin/desktop/windows/Window.hx | 3 +++ source/funkin/desktop/windows/WindowContent.hx | 2 +- 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 assets/images/desktop/icons/command.png create mode 100644 source/funkin/desktop/editors/CommandPrompt.hx diff --git a/assets/images/desktop/icons/command.png b/assets/images/desktop/icons/command.png new file mode 100644 index 0000000000000000000000000000000000000000..b2bb1913107027b7e91babd4bc7b642aafc657c5 GIT binary patch literal 174 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9F5he4R}c>anMpkRWh zi(^Q|t>i!d|JyUGHcU)nHp{DVnaG*IY?fQ)Gws>u=g%E^K7609e40Udaf+5S19yO% zo7)bh2@*!~%NbvACDv@>bzs}^BqN(a(e7fS$0WuS_vGYc { 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;