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

    bright-gpu-74537

    11/29/2022, 3:44 PM
    what about interaction?
  • b

    bright-gpu-74537

    11/29/2022, 3:44 PM
    wouldnt "rendering it to a texture" basically make it static?
  • p

    powerful-morning-89

    11/29/2022, 3:55 PM
    Good point. But thinking about it: is rendering to a texture even needed? On macOS you're in an AppKit environment anyway, so you could just add the view to the appkit rendering hierarchy as you'd do in a true native app, and then you just need to make a virtual haxeui component that repositions the webview as needed.
  • b

    bright-gpu-74537

    11/29/2022, 3:56 PM
    yeah, i think thats how you would have to go... but it wouldnt work "right"... it would be floating over the UI (or whatever, display objects)
  • b

    bright-gpu-74537

    11/29/2022, 3:56 PM
    acceptable maybe, but not "right"
  • p

    powerful-morning-89

    11/29/2022, 3:57 PM
    But that shouldn't be noticeable for the user.
  • r

    refined-laptop-39041

    11/29/2022, 3:57 PM
    I was watching a video of the SerenityOS guy making a QT browser using their engine and they basically did that and just hook in events
  • e

    elegant-twilight-61392

    11/29/2022, 3:57 PM
    a webview element or whatever would be nice to have, but didnt this start as "why not embed electron to just use full css"
  • b

    bright-gpu-74537

    11/29/2022, 3:57 PM
    if things overlap its noticable... i mean, if you make sure things never overlap it can be "alright"
  • p

    powerful-morning-89

    11/29/2022, 3:58 PM
    Unless AppKit is stupid and doesn't let you manually position/constrain elements, that shouldn't be a problem.
  • r

    refined-laptop-39041

    11/29/2022, 3:58 PM

    https://www.youtube.com/watch?v=X38MTKHt3_I▾

  • r

    refined-laptop-39041

    11/29/2022, 3:59 PM
    Serenity has its own browser engine, but might be kinda helpful as a reference?
  • r

    refined-laptop-39041

    11/29/2022, 3:59 PM
    Can probably do something similar with webkit or whatever
  • b

    bright-gpu-74537

    11/29/2022, 3:59 PM
    well, but i mean, say you get it in openfl as an embedded window (or whatever the term is for webkit)... OK, so now you want, lets say, an openfl display object behind it, and an openfl display object in front. That wouldnt be possible (unless im misunderstanding)
  • b

    bright-gpu-74537

    11/29/2022, 4:00 PM
    ie, its not in the openfl display object tree
  • b

    bright-gpu-74537

    11/29/2022, 4:00 PM
    same goes for clip rects and a bunch of other stuff
  • p

    powerful-morning-89

    11/29/2022, 4:02 PM
    Yes, having something on top of the webview wouldn't be possible, since the OpenGL/Metal layer is beneath the regular appkit layer (afaik).
  • b

    bright-gpu-74537

    11/29/2022, 4:03 PM
    yeah, i mean, it may be perfectly acceptable, but its not in the framework display tree, so there are things that dont work well, or at all. Its the same, at that point, as using openfl targeting js and having a floating iframe in the webpage... certainly can work (ive done it) but its certainly less than ideal
  • f

    famous-alarm-22563

    11/29/2022, 8:37 PM
    How do I "run" haxe code within my xml haxeui view and run code on a component from within my haxeui view outside of the xml file?
  • f

    famous-alarm-22563

    11/29/2022, 8:40 PM
    trying to move my display code from code to xml files
  • b

    bright-gpu-74537

    11/29/2022, 9:11 PM
    like this: http://haxeui.org/builder/?2cb95997
  • b

    bright-gpu-74537

    11/29/2022, 9:12 PM
    im not sure thats a great idea, its no "an issue" per se, but one thing that is generally a good idea (at least imo) is to keep presentation and logic seperate... ... that said, its totally your footgun to load 🙂
  • b

    bright-gpu-74537

    11/29/2022, 9:13 PM
    (re-reading im not sure im not sure if any of the above was actually what you were asking)
  • f

    famous-alarm-22563

    11/29/2022, 9:16 PM
    I need to format strings in my hxe then pass those those to my template and update them when game events trigger...
  • b

    bright-gpu-74537

    11/29/2022, 9:18 PM
    ... ... okay... Is there some problem with doing that? In haxe code or haxeui "script"? (which i just haxe code btw)
  • f

    famous-alarm-22563

    11/29/2022, 9:19 PM
    How to I tell my xml that xyz happenned and tell it to update the UI accordingly
  • f

    famous-alarm-22563

    11/29/2022, 9:20 PM
    And I need to import hx_arabic_shaper to display arabic strings in haxeui
  • b

    bright-gpu-74537

    11/29/2022, 9:21 PM
    im not sure what you mean by "tell my xml that xyz happenned"... when you use xml (in haxeui) it literally just builds a bunch of code for you
  • b

    bright-gpu-74537

    11/29/2022, 9:21 PM
    Copy code
    c0 = new Button()
    c1.addComponent(c0)
    type stuff
  • f

    famous-alarm-22563

    11/29/2022, 9:21 PM
    I need to listne to external events.
1...130813091310...1687Latest