icon
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 174 B |
+1
-1
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -38,6 +38,9 @@ class Window extends FlxTypedGroup<FlxBasic> {
|
|||||||
public var caption:FlxUIText;
|
public var caption:FlxUIText;
|
||||||
public var icon:FlxSprite;
|
public var icon:FlxSprite;
|
||||||
|
|
||||||
|
public var draggable:Bool = true;
|
||||||
|
public var resizeable:Bool = true;
|
||||||
|
|
||||||
public function loadIcon(path:String) {
|
public function loadIcon(path:String) {
|
||||||
icon.loadGraphic(path);
|
icon.loadGraphic(path);
|
||||||
icon.setUnstretchedGraphicSize(16, 16, false);
|
icon.setUnstretchedGraphicSize(16, 16, false);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class WindowContent extends FlxTypedGroup<FlxSprite> {
|
|||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function set_title(text:String):String {
|
private function set_icon(text:String):String {
|
||||||
icon = text;
|
icon = text;
|
||||||
if (parent != null) parent.loadIcon(icon);
|
if (parent != null) parent.loadIcon(icon);
|
||||||
return icon;
|
return icon;
|
||||||
|
|||||||
Reference in New Issue
Block a user