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

    icy-zebra-52882

    02/06/2023, 2:06 PM
    another question: should changing a dropdown's
    selectedIndex
    trigger its
    onChange
    callback? I have one bound via the
    @:bind
    metadata, but it doesn't trigger when
    selectedIndex
    is changed manually via code
  • a

    ambitious-knife-25690

    02/06/2023, 2:19 PM
    none but ian has said that its possible to add support for others. the xml system is like a "backend"
  • a

    ambitious-knife-25690

    02/06/2023, 2:19 PM
    you can add another one if you wish
  • b

    bumpy-engineer-49082

    02/06/2023, 2:20 PM
    I can't find info about how it's implemented.
  • b

    bumpy-engineer-49082

    02/06/2023, 2:20 PM
    Neither for tink.
  • r

    refined-greece-48002

    02/06/2023, 2:21 PM
    building in some macros to type width="100%"/height= etc has saved me a lot of keystrokes :D
  • a

    ambitious-knife-25690

    02/06/2023, 2:24 PM
    crap i can't recall the term to search for to answer teezex's question 😆
  • b

    bumpy-engineer-49082

    02/06/2023, 2:25 PM
    🥲
  • a

    ambitious-knife-25690

    02/06/2023, 2:29 PM
    out of curiosity what would be the one you would want?
  • f

    full-journalist-82607

    02/06/2023, 2:29 PM
    Yeah there were a few discussions for example around https://discord.com/channels/162395145352904705/565569107701923852/1032393598890676344
  • b

    bumpy-engineer-49082

    02/06/2023, 2:29 PM
    Still html.
  • a

    ambitious-knife-25690

    02/06/2023, 2:30 PM
    that's it!! nice memory yoplala 😄
  • b

    bumpy-engineer-49082

    02/06/2023, 2:30 PM
    I didn't figure out how tink-html should work.
  • a

    ambitious-knife-25690

    02/06/2023, 2:30 PM
    ohhh i see, why not just use haxeui and target the html5 backend?
  • f

    full-journalist-82607

    02/06/2023, 2:31 PM
    in fact if you type in:haxe-ui yaml, you can see there were a few discussions about it since 2019
  • a

    ambitious-knife-25690

    02/06/2023, 2:31 PM
    use haxeui containers to design the page and it'll do the magic of generating the page for you
  • b

    bumpy-engineer-49082

    02/06/2023, 2:31 PM
    I need it for a game.
  • a

    ambitious-knife-25690

    02/06/2023, 2:31 PM
    why is that an issue? 🤔
  • b

    bumpy-engineer-49082

    02/06/2023, 2:40 PM
    It's just a single part of it.
  • b

    bumpy-engineer-49082

    02/06/2023, 2:41 PM
    I want it to make ui easily customizable by user.
  • a

    ambitious-knife-25690

    02/06/2023, 2:53 PM
    you can interface with haxeui from both xml and code
  • b

    bumpy-engineer-49082

    02/06/2023, 3:19 PM
    Do you mean adding components directly through Haxe? var MyButton:Button = new Button()
  • b

    bumpy-engineer-49082

    02/06/2023, 3:22 PM
    It's not what I mean. Xml is not as common as html. I need a parser from a file in the game directory which player can replace with his own.
  • b

    bright-gpu-74537

    02/06/2023, 3:28 PM
    haxeui isnt html though... you might be able to get away with turning the user html into xml but even then there are things that arent going to match up
  • b

    bright-gpu-74537

    02/06/2023, 3:29 PM
    i guess technically, you could create components for , , etc
  • b

    bright-gpu-74537

    02/06/2023, 3:30 PM
    but im not really understanding what the purpose is here, to let the user write html5 and it become a haxeui? Because depending on what they are expecting its not going to work out for them
  • f

    full-journalist-82607

    02/06/2023, 3:31 PM
    Do you have an example of what the file would be like ?
  • b

    bumpy-engineer-49082

    02/06/2023, 3:33 PM
    I've discovered that html can be inserted as a block in xml, but i'm not sure it fits.
  • b

    bumpy-engineer-49082

    02/06/2023, 3:35 PM
    Um, just a common html page providing navbar and modals. It should have some links to in-game sections and support both internal and external css.
  • b

    bright-gpu-74537

    02/06/2023, 3:37 PM
    haxeui doesnt (and cant) parse html though... it can parse xml, and yeah, you can add other formats, but html5 is a very different thing its not a "format" really, its a document model
1...146814691470...1687Latest