Created
August 21, 2018 08:56
-
-
Save algorev/828e865811d6de9b0872836144a15bff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openfl build neko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//in Source dir | |
package; | |
import openfl.display.Sprite; | |
import haxe.ui.Toolkit; | |
import haxe.ui.core.Screen; | |
import haxe.ui.macros.ComponentMacros; | |
import haxe.ui.containers.Box; | |
import haxe.ui.components.Button; | |
class Main extends Sprite { | |
public function new () { | |
super (); | |
Toolkit.init(); | |
var root = ComponentMacros.buildComponent("assets/UI.xml"); | |
Screen.instance.addComponent(root); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project> | |
<meta title="Test" package="com.algorev.test" version="1.0.0" company="None Inc." /> | |
<app main="Main" path="Export" file="Test" /> | |
<source path="Source" /> | |
<haxelib name="openfl" /> | |
<haxelib name="haxeui-core" /> | |
<haxelib name="haxeui-openfl" /> | |
<assets path="Assets" rename="assets" /> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<!--In assets dir --> | |
<box height="100%" width="100%"> | |
<hbox width="100%"></hbox> | |
<hbox width="100%" height="30px"> | |
<textfield height="100%" width="100%"></textfield> | |
</hbox> | |
</box> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment