haxeui-nme
is the NME
backend for HaxeUI.
haxeui-nme
has a dependency tohaxeui-core
, and so that too must be installed.haxeui-nme
also has a dependency to NME, please refer to the installation instructions on their NME.
Eventually all these libs will become haxelibs, however, currently in their alpha form they do not even contain a haxelib.json
file (for dependencies, etc) and therefore can only be used by downloading the source and using the haxelib dev
command or by directly using the git versions using the haxelib git
command (recommended). Eg:
haxelib git haxeui-core https://github.com/haxeui/haxeui-core
haxelib dev haxeui-nme path/to/expanded/source/archive
The simplest method to create a new NME
application that is HaxeUI ready is to use one of the haxeui-templates. These templates will allow you to start a new project rapidly with HaxeUI support baked in.
If however you already have an existing application, then incorporating HaxeUI into that application is straight forward:
Assuming haxeui-core
and haxeui-nme
have been installed, then adding HaxeUI to your existing application is as simple as adding these two lines to your project.nmml
:
<haxelib name="haxeui-core" />
<haxelib name="haxeui-nme" />
Note: Currently you must also include haxeui-core
explicitly during the alpha, eventually haxelib.json
files will exist to take care of this dependency automatically.
Initialising the toolkit requires you to add this single line somewhere before you start to actually use HaxeUI in your application:
Toolkit.init();
Once the toolkit is initialised you can add components using the methods specified here.
As well as using the generic Screen.instance.addComponent
, it is also possible to add components directly to any other NME
sprite (eg: Lib.current.stage.addChild
)
- component-explorer - Browse HaxeUI components
- playground - Write and test HaxeUI layouts in your browser
- component-examples - Various componet examples
- haxeui-api - The HaxeUI api docs.
- haxeui-guides - Set of guides to working with HaxeUI and backends.