ya
This commit is contained in:
parent
4e08f0de62
commit
02b978ca90
@ -1,12 +1,24 @@
|
|||||||
package engine.tools;
|
package engine.tools;
|
||||||
|
|
||||||
|
import lime.ui.WindowAttributes;
|
||||||
|
import openfl.Lib;
|
||||||
import openfl.display.Sprite;
|
import openfl.display.Sprite;
|
||||||
import openfl.display.Window;
|
import openfl.display.Window;
|
||||||
|
|
||||||
class ToolWindow extends Sprite{
|
class ToolWindow extends Sprite{
|
||||||
public var window:Window;
|
public var window:Window;
|
||||||
|
public var attribs:WindowAttributes;
|
||||||
|
public static var windows:Array<Window> = [];
|
||||||
public function new(){
|
public function new(){
|
||||||
super();
|
super();
|
||||||
|
window = Lib.application.createWindow(attribs);
|
||||||
|
windows.push(window);
|
||||||
|
}
|
||||||
|
public function initStage(spr:Sprite){
|
||||||
|
window.stage.addChild(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function createEditorWindow(){
|
||||||
|
|
||||||
}
|
}
|
||||||
//public function open()
|
//public function open()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user