bright-gpu-74537
05/24/2022, 6:36 AMorange-yacht-88551
05/24/2022, 7:15 PM-D resourcesPath=assets (heaps thing) but all the paths to xml include assets/. is there something like that for **haxe-ui **(to declare the root asset path)full-journalist-82607
05/24/2022, 7:52 PMfull-journalist-82607
05/24/2022, 7:52 PMfull-journalist-82607
05/24/2022, 7:56 PMorange-yacht-88551
05/24/2022, 8:03 PMorange-yacht-88551
05/24/2022, 8:14 PMprefix? I get a build error UI markup file "views/main.xml" not found
// the view file
@:build(haxe.ui.ComponentBuilder.build("views/main.xml"))
// module.xml
<module>
<resources>
<resource path="assets/views" prefix="views" />
</resources>
</module>
// structure
<root>
- assets/
- views/
+ main.xml
- src/
+ module.xmlorange-yacht-88551
05/24/2022, 8:17 PMbright-gpu-74537
05/24/2022, 8:19 PM@:build(haxe.ui.ComponentBuilder.build("views/main.xml")) are compile time, they dont really have anything to do with the resources node in the modulebright-gpu-74537
05/24/2022, 8:20 PMbright-gpu-74537
05/24/2022, 8:20 PMorange-yacht-88551
05/24/2022, 8:24 PMorange-yacht-88551
05/24/2022, 10:06 PMmodule). Is there a "debug option" for runtime reload?orange-yacht-88551
05/24/2022, 10:25 PMhaxe.Resource under the hood, and don't think I can do that ... I'll need to be creativebest-agent-85158
05/25/2022, 5:10 AMbest-agent-85158
05/25/2022, 5:11 AMbulky-angle-28618
05/25/2022, 5:13 AMbest-agent-85158
05/25/2022, 5:14 AMbest-agent-85158
05/25/2022, 5:14 AMbest-agent-85158
05/25/2022, 5:15 AMbulky-angle-28618
05/25/2022, 5:15 AMpowerful-morning-89
05/25/2022, 5:19 AMbright-gpu-74537
05/25/2022, 6:26 AMpowerful-morning-89
05/25/2022, 7:47 AMbright-gpu-74537
05/25/2022, 8:06 AMpowerful-morning-89
05/25/2022, 8:30 AM-D hot-reload, launch with hl --hot-reload.
You can set hxd.System.onReload if you want a callback for when reload happens.bright-gpu-74537
05/25/2022, 8:31 AMbright-gpu-74537
05/25/2022, 8:52 AMbright-gpu-74537
05/25/2022, 8:53 AMhaxe
class Main extends hxd.App {
override function init() {
var tf = new h2d.Text(hxd.res.DefaultFont.get(), s2d);
tf.text = "Hello World !";
}
static function main() {
new Main();
}
}