bright-gpu-74537
11/13/2020, 4:39 PMmost-caravan-45834
11/13/2020, 5:02 PMmost-caravan-45834
11/13/2020, 5:03 PMbright-gpu-74537
11/13/2020, 5:24 PMbright-gpu-74537
11/13/2020, 5:25 PManimationList.dataSource.size might be what you are aftermost-caravan-45834
11/13/2020, 5:28 PMbright-gpu-74537
11/13/2020, 5:28 PMbright-gpu-74537
11/13/2020, 5:48 PMbright-gpu-74537
11/13/2020, 6:15 PMbright-gpu-74537
11/13/2020, 6:18 PMEInvalidAccess(dataSource) locallybright-gpu-74537
11/13/2020, 6:18 PMbright-gpu-74537
11/13/2020, 6:18 PMbright-gpu-74537
11/13/2020, 6:23 PM<button text="Test" onclick="trace(lv1.dataSource.size);trace(lv1.dataSource.size > 0)" />bright-gpu-74537
11/13/2020, 6:23 PMmost-caravan-45834
11/13/2020, 6:49 PMbright-gpu-74537
11/13/2020, 7:36 PMthousands-house-41767
11/13/2020, 8:43 PMbright-gpu-74537
11/13/2020, 9:02 PMthousands-house-41767
11/13/2020, 9:46 PMthousands-house-41767
11/13/2020, 9:46 PMbright-gpu-74537
11/13/2020, 10:17 PMbright-gpu-74537
11/13/2020, 10:19 PMbright-gpu-74537
11/13/2020, 10:21 PMhaxe
Toolkit.init()
Toolkit.init()
Toolkit.init()
Toolkit.init()
Toolkit.init()
Toolkit.init()
Toolkit.init()
but only the first time makes any sense / difference - subsequent calls will basically do nothing (its about loading the modules, the class map, etc)thousands-house-41767
11/14/2020, 12:29 AMmost-caravan-45834
11/14/2020, 4:30 AMCalled from hxcpp::__hxcpp_main
Called from ApplicationMain::main ApplicationMain.hx line 25
Called from ApplicationMain::create ApplicationMain.hx line 130
Called from lime.app.Application::exec lime/app/Application.hx line 150
Called from lime._internal.backend.native.NativeApplication::exec lime/_internal/backend/native/NativeApplication.hx line 146Called from lime._internal.backend.native.NativeApplication::handleMouseEvent lime/_internal/backend/native/NativeApplication.hx line 340
Called from lime.app._Event_Float_Float_Int_Void::dispatch lime/_internal/macros/EventMacro.hx line 91
hx line 178
Called from haxe.ui.backend.ComponentImpl::__onMouseEvent haxe/ui/backend/ComponentImpl.hx line 318
Called from haxe.ui.core.ComponentEvents::_onMappedEvent haxe/ui/core/ComponentEvents.hx line 114
Called from haxe.ui.core.ComponentEvents::dispatch haxe/ui/core/ComponentEvents.hx line 97
Called from haxe.ui.util.EventMap::invoke haxe/ui/util/EventMap.hx line 76
Called from haxe.ui.containers.menus._MenuBar.Events::onButtonClick haxe/ui/containers/menus/MenuBar.hx line 75
Called from haxe.ui.containers.menus._MenuBar.Events::showMenu haxe/ui/containers/menus/MenuBar.hx line 115
Critical Error: Uncatchable Throw: Null Object Reference
after changing my startup to:
haxe
Toolkit.init();
var ui = new AnimationEditorUI();
addChild(ui);
Where AnimationEditorUI is:
haxe
@:build(haxe.ui.macros.ComponentMacros.build("assets/xml/main.xml"))
class AnimationEditorUI extends VBox
And main.xml is:
xml
<vbox width="100%">
<menubar id="menu-bar" width="100%">
<menu text="File">
<menuitem id="load" text="Load" />
<menuitem id="save" text="Save" />
<menuitem id="quit" text="Quit" />
</menu>
</menubar>
...most-caravan-45834
11/14/2020, 4:34 AMhaxe
var top = target.screenTop + (target.actualComponentHeight - Toolkit.scaleY) + componentOffset.y + menu.style.marginTop;
menu.style is null for some reason.bright-gpu-74537
11/14/2020, 10:02 AMbright-gpu-74537
11/14/2020, 10:25 AMbright-gpu-74537
11/14/2020, 10:26 AM