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

    bright-gpu-74537

    11/29/2022, 3:20 PM
    for other backends that can target js, like flixel, it would be possible to float an iframe over the top of your app and "fake" a component, but it'll look shitty, have bad integration mostly... and for native windows its gonna be really tough
  • f

    famous-alarm-22563

    11/29/2022, 3:22 PM
    I'll look through the targets and think about it to see what I end up with... Or, I "could" just embed a flixel project inside electron to get the UI.. the question then would be how do I get them to "talk" to each other 🤔
    document.addEventListener()
    🤔
  • b

    bright-gpu-74537

    11/29/2022, 3:23 PM
    > inside electron to get the UI what UI do you mean?
  • b

    bright-gpu-74537

    11/29/2022, 3:23 PM
    haxeui can already target electron (and recently tauri), via its haxeui-html5 backend...
  • b

    bright-gpu-74537

    11/29/2022, 3:24 PM
    i presume you can also embed a flixel / openfl application in flixel? In which case you could use haxeui-flixel and embed it in electron also (ive never dont that, but i would assume its possible)
  • a

    ambitious-knife-25690

    11/29/2022, 3:24 PM
    you should just use something else in haxe if you want to go this route i think
  • a

    ambitious-knife-25690

    11/29/2022, 3:25 PM
    haxe react/reactnative works well in that regard
  • a

    ambitious-knife-25690

    11/29/2022, 3:25 PM
    but haxeui and web ui are different in philosophies
  • f

    famous-alarm-22563

    11/29/2022, 3:25 PM
    I didn't know that haxeui could build to electron. Thanks for pointing it out I just wanted to bounce some ideas off of you guys and you were very helpful I appreciate it 🙂
  • a

    ambitious-knife-25690

    11/29/2022, 3:26 PM
    what framework are you using?
  • f

    famous-alarm-22563

    11/29/2022, 3:26 PM
    haxeui & flixel for my project right now
  • f

    famous-alarm-22563

    11/29/2022, 3:26 PM
    Had some free time so decided to go exploring
  • b

    bright-gpu-74537

    11/29/2022, 3:27 PM
    and you want it to run in a native window?
  • f

    famous-alarm-22563

    11/29/2022, 3:27 PM
    and thats how this convo got sparked.
  • f

    famous-alarm-22563

    11/29/2022, 3:27 PM
    yeah,
  • a

    ambitious-knife-25690

    11/29/2022, 3:27 PM
    so lime (the redering api flixel runs on) can target electron, so you can select it from the list
  • b

    bright-gpu-74537

    11/29/2022, 3:27 PM
    so cant you just build your project using hxcpp? That will result on a native window (or hashlink)
  • a

    ambitious-knife-25690

    11/29/2022, 3:28 PM
    @famous-alarm-22563 #1042896710516613170 I also figured out the config for a pretty comfy lime electron debug workflow
  • f

    famous-alarm-22563

    11/29/2022, 3:28 PM
    that is perfect
  • f

    famous-alarm-22563

    11/29/2022, 3:28 PM
    thanks
  • a

    ambitious-knife-25690

    11/29/2022, 3:28 PM
    or, yeah, use hashlink which is "actual" native
  • f

    famous-alarm-22563

    11/29/2022, 3:29 PM
    I think I'm gonna go dig through some haxeui code ot see how things work.
  • p

    powerful-morning-89

    11/29/2022, 3:31 PM
    > and for native windows its gonna be really tough I don't think it'd be that complicated, except for the part where you have to dig deep into Flixel/OpenFL/Lime's internals. I've only looked at the macOS webview docs though, I have no idea what I'd use on Linux, or for Windows how the WebView2 stuff works
  • a

    ambitious-knife-25690

    11/29/2022, 3:32 PM
    i think the emulated css on native is so much better than actual, embedded webview css 😅
  • b

    bright-gpu-74537

    11/29/2022, 3:32 PM
    dunno, i think creating a native component inside any of the rendering engines isnt going to be a simple task
  • a

    ambitious-knife-25690

    11/29/2022, 3:33 PM
    mostly cause, less electron dependency
  • b

    bright-gpu-74537

    11/29/2022, 3:33 PM
    even creation of webview2 inside a, say, openfl app i doubt is simple, let alone managing that - and i still think you would end up with the "floating" thing
  • a

    ambitious-knife-25690

    11/29/2022, 3:33 PM
    and it also wouldn't be native
  • b

    bright-gpu-74537

    11/29/2022, 3:34 PM
    sure, i mean a native component window (i dont mean a top level frame window, i mean a control window)
  • p

    powerful-morning-89

    11/29/2022, 3:42 PM
    On macOS, I think it'd be as "simple" as making the WKWebView render to a metal/opengl layer, turn that into a texture, and render it. It only becomes complex because eg OpenFL's architecture doesn't lend itself well to that kind of low-level things.
1...130713081309...1687Latest