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

    ambitious-knife-25690

    02/06/2023, 3:54 PM
    To explain it simply,
    html
    is a "variation" of
    xml
    but it has a single renderer - the one that is built into your browser.
    haxeui
    uses
    xml
    also, but, has different renderers. Haxeui can't use html because then it limits itself to a single renderer - which isn't the point of haxeui
  • b

    bright-gpu-74537

    02/06/2023, 3:55 PM
    but also, and i think this is what Teez is missing, is haxeui is a UI framework built out of specific components and layouts, and html5 isnt
  • a

    ambitious-knife-25690

    02/06/2023, 3:56 PM
    yeah, maybe it would be easier with a comparison. Haxeui is closer to flutter or react native than html
  • b

    bright-gpu-74537

    02/06/2023, 3:56 PM
    exactly, and if you look at the source of that its a mess of divs, css and scripts... haxeui isnt a browser, its a UI framework... so everything like those tabs are a component...
  • b

    bumpy-engineer-49082

    02/06/2023, 3:56 PM
    Now I got it.
  • b

    bumpy-engineer-49082

    02/06/2023, 3:57 PM
    No. From a file, not from interface.
  • a

    ambitious-knife-25690

    02/06/2023, 3:58 PM
    hmmmm I'm not sure if you can runtime parse haxei xml
  • b

    bright-gpu-74537

    02/06/2023, 3:58 PM
    you can
    RuntimeComponentBuilder
  • b

    bright-gpu-74537

    02/06/2023, 4:00 PM
    http://haxeui.org/api/haxe/ui/runtimecomponentbuilder/
  • a

    ambitious-knife-25690

    02/06/2023, 4:01 PM
    well damn that is actually super cool to know
  • r

    refined-greece-48002

    02/06/2023, 4:10 PM
    Hmm...
  • r

    refined-greece-48002

    02/06/2023, 4:10 PM
    I wonder how hard it'd be to set up your project to hot reload, then
  • r

    refined-greece-48002

    02/06/2023, 4:11 PM
    like #if debug, build all the components from xml at runtime and rebuild when the xml changes
  • r

    refined-greece-48002

    02/06/2023, 4:12 PM
    (and then when not debug just build everything at compile time, obv)
  • r

    refined-greece-48002

    02/06/2023, 4:12 PM
    because that could save a lottt of work when iterating UI tweaks
  • b

    bumpy-engineer-49082

    02/06/2023, 4:15 PM
    No, user writes a file with a renderer, then pastes it into file directory and restarts the game.
  • b

    bright-gpu-74537

    02/06/2023, 4:15 PM
    heh, that might work... and if it was a @:build macro (as it tends to be) then it could all be automagic - im sure theres a gotcha in there somewhere - but its a nice idea
  • r

    refined-greece-48002

    02/06/2023, 4:18 PM
    sorry for the confusion, @bumpy-engineer-49082 , that was a hypothetical "your", rather than an idea for your project specifically
  • a

    ambitious-knife-25690

    02/06/2023, 4:18 PM
    what are you saying no to, there seems to be missing context? 🤔
  • e

    elegant-twilight-61392

    02/06/2023, 4:19 PM
    @bumpy-engineer-49082 if you are dead set on using html, haxeui is not what you are looking for. however, if you are willing to, you can parse an xml file at runtime to get something that works in roughly the same way you want, but itll be xml with haxeui components instead of normal webbrowser html
  • b

    bumpy-engineer-49082

    02/06/2023, 4:20 PM
    Just a misunderstanding. I thought skrpr's message was about my case.
  • b

    bumpy-engineer-49082

    02/06/2023, 4:22 PM
    https://lib.haxe.org/p/HtmlParser/
  • e

    elegant-twilight-61392

    02/06/2023, 4:24 PM
    is there a particular reason you are so insistent on using specifically html?
  • b

    bumpy-engineer-49082

    02/06/2023, 4:26 PM
    No, it's just because html is more popular.
  • e

    elegant-twilight-61392

    02/06/2023, 4:26 PM
    if someone understands html, i dont think it would be too hard for them to figure out xml
  • e

    elegant-twilight-61392

    02/06/2023, 4:27 PM
    especially if you were to give some examples to players
  • b

    bumpy-engineer-49082

    02/06/2023, 4:28 PM
    But If there is nothing stable for It, I can swap to xml.
  • r

    refined-greece-48002

    02/06/2023, 4:28 PM
    I don't think many people really use raw HTML to make UIs by choice any more, @bumpy-engineer-49082 . Everyone is using JSX or other compiles-to-html, UI-specific markup languages and so on.
  • e

    elegant-twilight-61392

    02/06/2023, 4:28 PM
    i use raw html for my websites
  • b

    bumpy-engineer-49082

    02/06/2023, 4:28 PM
    There are a lot of guides and examples for html. Much less for xml.
1...147014711472...1687Latest