bright-gpu-74537
08/09/2022, 9:25 PMloud-salesclerk-7438
08/09/2022, 9:32 PMbright-gpu-74537
08/09/2022, 9:33 PMloud-salesclerk-7438
08/09/2022, 9:41 PMfindComponentUnderPoint
results, because the order has changed in latest git. so that part is on me. not sure if that explains all the things, but probably some of themloud-salesclerk-7438
08/09/2022, 9:43 PMrefined-cat-44047
08/09/2022, 9:55 PM@:bind
to listen to the click event of a button. I got this from a HaxeUI example somewhere. Here is my code:
@:bind(playBtn, MouseEvent.CLICK)
private function playBtn_onClick(e){
// Play sound
}
But where can I find more information about what "bind" is? The haxe docs just say "Override SWF class declaration. - flash" (https://haxe.org/manual/cr-metadata.html), but that doesn't sound like the full story.
The class where this code is, also has the @:build
for the XML layout, so does that work with bind somehow?best-agent-85158
08/09/2022, 10:36 PMbest-agent-85158
08/09/2022, 10:37 PMloud-salesclerk-7438
08/10/2022, 12:47 AMfindComponentsUnderPoint
the tests work again (with haxeui git versions). and it seems like the TabBar/TabView issue is also gone, so probably a bug in 1.4.0 that was fixed at some point.loud-salesclerk-7438
08/10/2022, 12:47 AMbright-gpu-74537
08/10/2022, 6:30 AMbright-gpu-74537
08/10/2022, 6:30 AMbright-gpu-74537
08/10/2022, 6:32 AMbright-gpu-74537
08/10/2022, 6:35 AMhaxe
@bind(someObject, SomeEventClass.SOME_EVENT)
function onSomeEvent(_) {
}
Will essentually put the following the component constructor:
haxe
someObject.registerEvent(SomeEventClass.SOME_EVENT, onSomeEvent)
Thats about it
Any yeah, @:bind wont work without @:buildrefined-cat-44047
08/10/2022, 6:38 AMbright-gpu-74537
08/10/2022, 6:40 AMbest-agent-85158
08/10/2022, 7:44 AM0x00000000
bg color, which turned the color picker red...bright-gpu-74537
08/10/2022, 7:47 AMbest-agent-85158
08/10/2022, 7:50 AM(get, set)
and just return selectedItem & 0xFF
?best-agent-85158
08/10/2022, 7:52 AMbright-gpu-74537
08/10/2022, 7:55 AMbright-gpu-74537
08/10/2022, 7:56 AMbest-agent-85158
08/10/2022, 8:05 AMhaxe
selectedItem &= 0x00ffffff;
selectedItem|= alpha << 24;
best-agent-85158
08/10/2022, 8:05 AM0xFF......
bright-gpu-74537
08/10/2022, 8:15 AMbright-gpu-74537
08/10/2022, 8:15 AMbest-agent-85158
08/10/2022, 8:30 AMgetRGB
or getARGB
etcbright-gpu-74537
08/10/2022, 8:31 AMbest-agent-85158
08/10/2022, 8:46 AMbest-agent-85158
08/10/2022, 8:46 AM