billowy-easter-22196
02/07/2023, 5:34 PMo
too. (only Toolkit.init()
). It seems like its same behaviour for both scenarios.
i understand the logic correct, code above should render button on (100, 200) and not take whole scene.
If i comment whole app.ready call, i become the following error and my scene is back. ofcourse, without any button. so this may help localize the bug, i think, something goes wrong after ready callback is executed.
this._onReady is not a function
at haxe_ui_HaxeUIApp.onHeapsInit (AppImpl.hx:43:9)
at haxe_ui_backend__$AppImpl_HeapsApp.init (AppImpl.hx:12:13)
at App.hx:148:4
at haxe_ui_backend__$AppImpl_HeapsApp.loadAssets (App.hx:176:3)
at haxe_ui_backend__$AppImpl_HeapsApp.setup (App.hx:146:3)
at t.run (Timer.hx:144:4)
at Timer.hx:73:39 ........
bright-gpu-74537
02/07/2023, 5:38 PMvbox.addComponent
... also i presume you are using git version of everything ?billowy-easter-22196
02/07/2023, 5:44 PMC:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/AssetsImpl.hx:80: lines 80-83 : { name : String, data : hxd.res.BitmapFont } has extra field name
C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/AssetsImpl.hx:80: lines 80-83 : ... For function argument ''
C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/TextDisplayImpl.hx:43: characters 57-61 : haxe.ui.assets.FontInfo has no field name
C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/AppImpl.hx:27: characters 9-27 : Unknown identifier : _autoHandlePreload
C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/AppImpl.hx:48: characters 13-25 : Unknown identifier : startPreload
bright-gpu-74537
02/07/2023, 5:45 PMbillowy-easter-22196
02/07/2023, 5:45 PMbright-gpu-74537
02/07/2023, 5:45 PMbillowy-easter-22196
02/07/2023, 5:45 PMbright-gpu-74537
02/07/2023, 5:46 PMbillowy-easter-22196
02/07/2023, 5:46 PMbright-gpu-74537
02/07/2023, 5:49 PMbright-gpu-74537
02/07/2023, 5:50 PMbillowy-easter-22196
02/07/2023, 5:54 PMfull-journalist-82607
02/07/2023, 6:10 PMbright-gpu-74537
02/07/2023, 6:12 PMbright-gpu-74537
02/07/2023, 6:15 PMbillowy-easter-22196
02/07/2023, 6:16 PMclever-yak-82528
02/07/2023, 7:06 PMclever-yak-82528
02/07/2023, 7:06 PMbillowy-easter-22196
02/07/2023, 8:01 PMbright-gpu-74537
02/07/2023, 8:08 PMbillowy-easter-22196
02/07/2023, 8:10 PMbright-gpu-74537
02/07/2023, 8:10 PMhaxe
Toolkit.init({
root: s2d
//manualUpdate: true
});
var vbox = new VBox();
vbox.styleString = "background-color: red;padding: 5px;";
vbox.top = 350;
var btn = new Button();
btn.text = "Click me!";
btn.onClick = (_) -> btn.text = "Thanks!";
vbox.addComponent(btn);
Screen.instance.addComponent(vbox);
bright-gpu-74537
02/07/2023, 8:11 PMs2d.add(vbox);
also worksbright-gpu-74537
02/07/2023, 8:12 PMbright-gpu-74537
02/07/2023, 8:12 PMbillowy-easter-22196
02/07/2023, 8:13 PMbillowy-easter-22196
02/07/2023, 8:13 PMbright-gpu-74537
02/07/2023, 8:14 PMbillowy-easter-22196
02/07/2023, 8:14 PM