https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    07/30/2020, 6:18 AM
    shows a few ways to do it, building on the previous way
  • b

    bright-gpu-74537

    07/30/2020, 6:19 AM
    cool - lemme know if you get stuck or something doesnt make sense / work 🙂
  • k

    kind-policeman-40412

    07/30/2020, 6:23 AM
    The only thing I could ask is more docs 🙂 I spent a lot of time trying to do basic stuff like adding event listeners. Btw does
    somecomp.registerEvent(UIEvent.CLICK, onClickListener);
    works on components or you just have to refer to methods like
    somecomp.onClick = onClickListener;
    ?
  • f

    fast-rain-20339

    07/30/2020, 6:24 AM
    Afaik, through macros, they're equivalent.
  • k

    kind-policeman-40412

    07/30/2020, 6:24 AM
    yeah but for me registerEvent somehow does not work for neko target
  • b

    bright-gpu-74537

    07/30/2020, 6:25 AM
    onXYZ is a shortcut for registerEvent
  • k

    kind-policeman-40412

    07/30/2020, 6:25 AM
    but it works for linux target
  • k

    kind-policeman-40412

    07/30/2020, 6:25 AM
    ok got it
  • b

    bright-gpu-74537

    07/30/2020, 6:25 AM
    hmmm, strange, might be a bug... onXYZ is using registerEvent under the hood...
  • k

    kind-policeman-40412

    07/30/2020, 6:26 AM
    could be related to lime? as I use lime to build the project
  • b

    bright-gpu-74537

    07/30/2020, 6:26 AM
    if you managed to get a minimal sample of registerEvent not working, and have time, an issue (or on here) would be great
  • k

    kind-policeman-40412

    07/30/2020, 6:26 AM
    i will try to
  • b

    bright-gpu-74537

    07/30/2020, 6:26 AM
    no idea, could be, or could be a haxeui bug - hard to tell
  • b

    bright-gpu-74537

    07/30/2020, 6:30 AM
    and yeah, documentation is... ... ... sparse...
  • b

    bright-gpu-74537

    07/30/2020, 6:30 AM
    i think ive had the same "complaint" or issue since haxeui first started, ie, years
  • b

    bright-gpu-74537

    07/30/2020, 6:30 AM
    :/
  • k

    kind-policeman-40412

    07/30/2020, 6:37 AM
    I know it's hard to do everything. Great project anyway. Hope it will become better with time.
  • b

    bright-gpu-74537

    07/30/2020, 6:39 AM
    > I know it's hard to do everything Yeah, its a big project, especially with the various backends, including native ones (which are arguably the most "taxing")
  • b

    bright-gpu-74537

    07/30/2020, 6:39 AM
    let me know how you get on! 🙂
  • k

    kind-policeman-40412

    07/30/2020, 7:03 AM
    @User https://github.com/slouffka/haxeuidemo
  • k

    kind-policeman-40412

    07/30/2020, 7:04 AM
    this is a sample project which works for linux but not for neko
  • k

    kind-policeman-40412

    07/30/2020, 7:04 AM
    hmm. should also add dependencies with versions maybe ))
  • k

    kind-policeman-40412

    07/30/2020, 7:04 AM
    but actually all current
  • b

    bright-gpu-74537

    07/30/2020, 7:05 AM
    thats fine, ill check it out, i wonder if openfls "ready" works different from haxe target to haxe target
  • b

    bright-gpu-74537

    07/30/2020, 7:05 AM
    ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    07/30/2020, 7:05 AM
    ill check it out, thanks for the minimal test case
  • k

    kind-policeman-40412

    07/30/2020, 7:08 AM
    deps added
  • b

    bright-gpu-74537

    07/30/2020, 7:08 AM
    perfect... thanks
  • k

    kind-policeman-40412

    07/30/2020, 7:39 AM
    @User btw do I even need to use onReady?
  • k

    kind-policeman-40412

    07/30/2020, 7:40 AM
    I was suggested this as a solution to a problem of referring component by id but turns out this is not related...
1...327328329...1687Latest