happy-agent-4114
09/12/2021, 9:40 PMbright-gpu-74537
09/13/2021, 6:16 AMbright-gpu-74537
09/13/2021, 6:16 AMhaxe
function reloadMods(event) {
}
or as you have done (when you dont care about the event):
haxe
function reloadMods(_) {
}bright-gpu-74537
09/13/2021, 6:21 AMhaxe
var mainView = new Absolute();
...bright-gpu-74537
09/13/2021, 6:23 AMhaxe
@:bind( this, MouseEvent.CLICK )
private function onClickEvent( e:MouseEvent ) {
this.moveComponentToFront( );
}
Nice, i always forget you can use this in @:bind 🙂icy-zebra-52882
09/13/2021, 9:17 AMselectedIndex when running my theme change code which correctly sets the right dropdown value, but having trouble figuring out the events part of HaxeUI to run the theme change code when a different value of the dropdown is selectedicy-zebra-52882
09/13/2021, 9:18 AMcurrentThemeDropdown.registerEvent("PROPERTY_CHANGE", (_) ->
{
switchLevelTheme(currentThemeDropdown.value);
});
based on what I readicy-zebra-52882
09/13/2021, 9:22 AMonChange and I was just handing the event wrong the first time I tried it 🤦♂️bright-gpu-74537
09/13/2021, 9:26 AM.onChange or .registerEvent(UIEvent.CHANGE, ...) is what you are aftericy-zebra-52882
09/13/2021, 9:27 AM[....].onChange = { callback: () - > { ... } };bright-gpu-74537
09/13/2021, 9:27 AMbright-gpu-74537
09/13/2021, 9:27 AMicy-zebra-52882
09/13/2021, 9:27 AM.registerEvent(UIEvent.CHANGE, ...)
ah so I wasn't too far offbright-gpu-74537
09/13/2021, 9:28 AMicy-zebra-52882
09/13/2021, 9:29 AMicy-zebra-52882
09/13/2021, 9:29 AMselectedIndex on the dropdown and then the onChange event makes it run againquick-yak-13064
09/13/2021, 10:09 AMhelpful-boots-41914
09/14/2021, 8:03 AMMain target. Is anyone else getting this behavior? Best solution I could come up with that doesn't require flip-flopping between hxml configurations was to make a "fake" hxml setup with all the libraries.bright-gpu-74537
09/14/2021, 9:15 AMbright-gpu-74537
09/14/2021, 9:15 AMhelpful-boots-41914
09/14/2021, 9:53 AM.hxml and not two. But because there are two outputs, that's the problem in general.
Notice: https://github.com/haxeui/haxeui-core/blob/master/cli/templates/electron-shared/electron.hxml
The fake "all-libs.hxml" that I use is:
hx
-lib electron
-lib haxeui-core
-lib haxeui-html5
-cp src
-main Main
-js build/electron/Main.js
Never used for compilation, but used in VSCode as the haxe configuration. I feel like this might be leaning more towards a VSCode problem than anythingbright-gpu-74537
09/14/2021, 9:57 AMhelpful-boots-41914
09/14/2021, 10:00 AMbright-gpu-74537
09/14/2021, 10:01 AMhelpful-boots-41914
09/14/2021, 10:01 AMbright-gpu-74537
09/14/2021, 10:02 AMbright-gpu-74537
09/14/2021, 10:02 AMhelpful-boots-41914
09/14/2021, 10:02 AMbright-gpu-74537
09/14/2021, 10:03 AMbright-gpu-74537
09/14/2021, 10:03 AM