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

    clever-yak-82528

    02/24/2023, 1:22 AM
    i think ill mess around with that
  • b

    bumpy-engineer-49082

    02/24/2023, 8:58 AM
    Is there a way to use canvas with background image?
  • b

    bright-gpu-74537

    02/24/2023, 9:07 AM
    currently, no, however, i guess you could kinda "layer" things with a "box": http://haxeui.org/builder/?09c74329
  • b

    bumpy-engineer-49082

    02/24/2023, 11:48 AM
    Thanks.
  • b

    bumpy-engineer-49082

    02/24/2023, 11:49 AM
    What is WebView for HaxeUI?
  • b

    bright-gpu-74537

    02/24/2023, 11:51 AM
    ?
  • b

    bright-gpu-74537

    02/24/2023, 12:22 PM
    do you mean this: https://github.com/ianharrigan/haxeui-webview ?
  • b

    bright-gpu-74537

    02/24/2023, 12:22 PM
    its haxeui v1 (super super old version) it 100% wont work with current haxeui
  • b

    bumpy-engineer-49082

    02/24/2023, 12:36 PM
    Yeah, why was it cancelled?
  • b

    bright-gpu-74537

    02/24/2023, 12:38 PM
    well, its for haxeui1, and cocktail is super super old also
  • b

    bright-gpu-74537

    02/24/2023, 12:38 PM
    it might even be that cocktail is linked to openfl (i cant remember now)... .... ... haxeui1 was an openfl only lib
  • b

    bright-gpu-74537

    02/25/2023, 10:12 AM
    did you manage to figure this out?
  • r

    refined-cat-44047

    02/25/2023, 10:15 AM
    Hey sorry. I have been pretty busy. It is still happening for me, but not on iOS which is my target platform. So that is good, but unfortunately it means I have less urgency to get it fixed. But I should start to have time over the next few weeks. Hopefully that is not too much of a pain for you
  • b

    bright-gpu-74537

    02/25/2023, 10:17 AM
    nope, thats fine with me, it was more for you, to see if you managed to work it out and if theres anything you needed from me 🙂
  • r

    refined-cat-44047

    02/25/2023, 10:19 AM
    oh awesome, thanks for following up. No idea how you keep track of everything haha. I am keen to figure this out, and have actually been diving more into HaxeUI source lately, so am learning my way around. Hopefully I can see for myself what might be going wrong, then ask for help to fix it 😉
  • b

    bright-gpu-74537

    02/25/2023, 10:21 AM
    cool cool - well, let me know if you find anything, or manage to whittle down the issue 🙂
  • o

    orange-van-60470

    02/25/2023, 10:48 AM
    cocktail was silex stuff with openfl ( js? )they moved from haxe to a pure js solution for their web editor tools as far as I remember, there solutions was kind of heavy? I think they mainly moved from Haxe to be compatible with pure js dev's but I might be wrong on that.
  • o

    orange-van-60470

    02/25/2023, 10:54 AM
    silex sponsored/organised some of the early haxe conference ( but controlled perhaps too much ) so haxe foundation moved to self organising, perhaps that is another reason silex moved away form haxe tech. Cocktail was ambitious and I believe it probably got 90% of the way and ironing out details was v.hard. But long time ago so my memory and understanding maybe incorrect.
  • o

    orange-van-60470

    02/25/2023, 10:56 AM
    gui stuff is hard as I am sure Ian knows, browsers already solved many problems so it can be easier than making from scratch so it is not surprising cocktail was abandoned.
  • b

    bright-gpu-74537

    02/25/2023, 11:02 AM
    yeah, i very briefly looked at the code in cocktail, certainly very ambitious - im not surprised it was abandoned either
  • r

    refined-greece-48002

    02/26/2023, 8:09 AM
    Is there a way I'm missing to figure out what component has focus in haxeui? I have a canvas component that is interactive and I want it to receive hotkey events, but I don't want it to react to hotkeys when you're, for example, typing in a textfield in a window
  • b

    bright-gpu-74537

    02/26/2023, 8:15 AM
    i dont think canvas component is interactive is it? I mean, i dont think it can receive focus
  • r

    refined-greece-48002

    02/26/2023, 8:15 AM
    Hmm, can I wrap it in something so that it can receive keyboard events?
  • r

    refined-greece-48002

    02/26/2023, 8:15 AM
    I was receiving them globally with heaps' Window.getInstance().addEventTarget
  • r

    refined-greece-48002

    02/26/2023, 8:16 AM
    but yes, if I use haxeui's registerEvent(KeyboardEvent.KEY_DOWN) on the canvas, it never fires
  • b

    bright-gpu-74537

    02/26/2023, 8:16 AM
    valid point... you could wrap it in an interactive component i guess...
  • b

    bright-gpu-74537

    02/26/2023, 8:17 AM
    im just wondering if Canvas should be interactive... 🤔
  • r

    refined-greece-48002

    02/26/2023, 8:17 AM
    if you imagine a 3d modelling app, my canvas is the view into the world
  • r

    refined-greece-48002

    02/26/2023, 8:17 AM
    so you click on it etc to manipulate the model, which currently works fine
  • b

    bright-gpu-74537

    02/26/2023, 8:17 AM
    haxeui canvas?
1...153615371538...1687Latest