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

    clever-yak-82528

    03/05/2023, 6:28 AM
    via hxcpp?
  • e

    elegant-twilight-61392

    03/05/2023, 6:30 AM
    from my understanding, emscripten is basically just a c/cpp compiler but instead of creating code or whatever it creates webassembly
  • e

    elegant-twilight-61392

    03/05/2023, 6:31 AM
    and the haxe compiler/hxcpp outputs cpp source code
  • c

    clever-yak-82528

    03/05/2023, 6:31 AM
    that's a lot worse than just compiling to javascript for this stuff
  • c

    clever-yak-82528

    03/05/2023, 6:31 AM
    haxeui supports html5/js stuff natively
  • c

    clever-yak-82528

    03/05/2023, 6:31 AM
    going through wxwidgets would just make it awful
  • e

    elegant-twilight-61392

    03/05/2023, 6:32 AM
    anyways why do you need rust to compile to wasm to use haxeui
  • c

    clever-yak-82528

    03/05/2023, 6:32 AM
    my current project has most of the functionality implemented in rust
  • c

    clever-yak-82528

    03/05/2023, 6:33 AM
    because writing binary parsers in haxe is significantly less fun
  • c

    clever-yak-82528

    03/05/2023, 6:33 AM
    it's currently all compiled to native but now i might also be able to make a web version
  • e

    elegant-twilight-61392

    03/05/2023, 6:34 AM
    i think its funny how the wikipedia page for emscripten links to the page for haxe lol
  • c

    clever-yak-82528

    03/05/2023, 6:34 AM
    heh
  • e

    elegant-twilight-61392

    03/05/2023, 6:35 AM
    lmao
  • b

    bright-gpu-74537

    03/05/2023, 10:01 AM
    ok, thats done now... so you can use any case in Toolkit.theme (eg "dArK") and also if haxeui cant find the theme, it will fallback to default theme and print out:
    WARNING: theme 'no_exist' not found, falling back to default theme
  • b

    bright-gpu-74537

    03/05/2023, 10:02 AM
    i think it a little more robust and less error prone, so less likely that a new user is going to be confronted by a blank screen and not understand what happened
  • b

    bright-gpu-74537

    03/05/2023, 10:31 AM
    @little-oxygen-79174 - http://haxeui.org/builder/?83b02d9c Am i missing something... this is fine, no?
  • s

    square-angle-35096

    03/05/2023, 1:32 PM
    this doesn't seem to work, is there something wrong with it?
    Copy code
    hx
                        var dialog:OpenFileDialog = new OpenFileDialog({
                                readContents: true,
                                multiple: true, 
                                title: 'Psych Engine Character Files'
                            }
                        );
                        dialog.show();
  • s

    salmon-knife-33932

    03/05/2023, 3:36 PM
    Hi guys, I would like to make an interactive diagram (like in the screenshot below), with thoses feature: - Have blocks that are moveable - Ability to have links between blocks - Be able to extend the diagram in an "infinite" perimeter in a scrollable container With the standard components I would do the blocks and the drag'n'drop but to do the links between the blocks I don't see... Do you have any leads on how to do this as standard so it's portable across different backends? Or is it too difficult and I have to do it in a specific backend (I'm targeting html5 for now), if yes, do you have any ideas for techno (canvas for example?) or an external library? THANKS
  • a

    ambitious-knife-25690

    03/05/2023, 3:42 PM
    html5 has a canvas component so you can make the links through that
  • a

    ambitious-knife-25690

    03/05/2023, 3:42 PM
  • a

    ambitious-knife-25690

    03/05/2023, 3:43 PM
    but, I don't think any other (or maybe 1 other) backend has the canvas api currently mapped
  • a

    ambitious-knife-25690

    03/05/2023, 3:45 PM
    @bright-gpu-74537 you have some kind of leak on that page
  • a

    ambitious-knife-25690

    03/05/2023, 3:45 PM
    If you leave the tab open (at least on my pc) for around 2 mins the tab crashes
  • b

    bright-gpu-74537

    03/05/2023, 3:46 PM
    right, probably the animated graph... ill check it out... im probably not clearing it or something, ill check it out... thanks! 🙂
  • b

    bright-gpu-74537

    03/05/2023, 3:47 PM
    i think the hardest part would be the lines between them... one option, as NotBilly said, would be to use canvases and sort of float them on top, or have one big canvas underneath and draw the lines on that... i did something similar ages ago... ill see if i can fish it out
  • b

    bright-gpu-74537

    03/05/2023, 3:52 PM
    https://twitter.com/IanHarrigan1982/status/1308355969999613957
  • b

    bright-gpu-74537

    03/05/2023, 3:55 PM
    https://community.haxeui.org/t/node-editor-using-haxeui/68
  • s

    salmon-knife-33932

    03/05/2023, 3:56 PM
    Oh that's cool! The idea is to have a big canvas on a layout at the back that reacts to drag / drop and others that redraws the lines where necessary?
  • b

    bright-gpu-74537

    03/05/2023, 3:57 PM
    yeah, pretty sure thats how i did it, although, i dont think canvas existed at the time, so i think that version has a "big 'ol svg" in the background
  • s

    salmon-knife-33932

    03/05/2023, 3:58 PM
    Thank you for the info ! I'm going to try few things now zZz
1...157915801581...1687Latest