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

    early-butcher-76809

    02/26/2023, 2:38 PM
    But with EKeyDown / EKeyUp in the switch, as Skrpr mentioned
  • e

    early-butcher-76809

    02/26/2023, 2:39 PM
    It will only work for the keyboard, though. Controllers will require some kind of custom event dispatcher to dynamically bind to HaxeUI, I guess
  • b

    bumpy-engineer-49082

    02/26/2023, 2:41 PM
    http://haxeui.org/builder/?85866d53
  • b

    bumpy-engineer-49082

    02/26/2023, 2:41 PM
    As i see, canvas is sort of background.
  • b

    bright-gpu-74537

    02/26/2023, 2:42 PM
    isnt that what you wanted? If you just want an image as a background there are other ways, but i thought you specifically wanted canvas (which doesnt support drawing images into it currently). Are you just looking for a background image?
  • b

    bumpy-engineer-49082

    02/26/2023, 2:43 PM
    At first i also thought that it could give a grid for child elements.
  • b

    bumpy-engineer-49082

    02/26/2023, 2:44 PM
    Yes, for now it's just a background. I don't remember what was wrong when i tried
  • b

    bright-gpu-74537

    02/26/2023, 2:45 PM
    nothing: http://haxeui.org/builder/?4438ef00
  • b

    bright-gpu-74537

    02/26/2023, 2:46 PM
    or: http://haxeui.org/builder/?b3298ca6
  • b

    bumpy-engineer-49082

    02/26/2023, 2:47 PM
    Oh, yes, i needed some icons above the background. But i found out there are icons for that.
  • b

    bumpy-engineer-49082

    02/26/2023, 2:57 PM
    No icon dimensions available?
  • e

    early-butcher-76809

    02/26/2023, 2:58 PM
    Copy code
    .myButtonSyle .icon
    {
        width: 32px;
        height: 32px;
    }
  • e

    early-butcher-76809

    02/26/2023, 2:58 PM
    For a button
  • b

    bright-gpu-74537

    02/26/2023, 3:02 PM
    alright latest haxeui-heaps has basic keyboard support, few things to work out (like the double focus, but that could be a heaps issue)
  • e

    early-butcher-76809

    02/26/2023, 3:02 PM
    Thank you !
  • b

    bright-gpu-74537

    02/26/2023, 3:02 PM
    time to walk el doggos 🙂
  • b

    bright-gpu-74537

    02/26/2023, 4:16 PM
    alright, some more updates in latest haxeui-heaps: alt, shift, ctrl work and i fixed some of the focus issues, so now it works like all the other backends 🥳
  • e

    early-butcher-76809

    02/26/2023, 4:17 PM
    <3
  • a

    ambitious-knife-25690

    02/26/2023, 4:19 PM
    @bright-gpu-74537Do any components load images from bytes by default on the explorer?
  • b

    bright-gpu-74537

    02/26/2023, 4:20 PM
    i mean, yeah, pretty much all of them...
    <image resource="haxeui-core/styles/default/haxeui.png" />
    will be a byte load from the core module
  • a

    ambitious-knife-25690

    02/26/2023, 4:20 PM
    ohhh, is there something i need to do in the backend to trigger that? 🤔
  • a

    ambitious-knife-25690

    02/26/2023, 4:20 PM
    getimagefromhaxeresource is never called for me, hmm...
  • b

    bright-gpu-74537

    02/26/2023, 4:20 PM
    almost certainly 🙂
  • b

    bright-gpu-74537

    02/26/2023, 4:21 PM
    public override function imageFromBytes(bytes:Bytes, callback:ImageInfo->Void)
    is probably what you are after, i cant remember now
  • a

    ambitious-knife-25690

    02/26/2023, 4:21 PM
    ahhh, gotta return
    callback(null);
    in getimageinternal
  • b

    bright-gpu-74537

    02/26/2023, 4:21 PM
    also important yet
  • a

    ambitious-knife-25690

    02/26/2023, 4:22 PM
    there we go 😄
  • b

    bright-gpu-74537

    02/26/2023, 4:22 PM
    it first tries to load things in a "framework" way (whatever that means) and then tries to use bytes internally
  • b

    bright-gpu-74537

    02/26/2023, 4:22 PM
    noice! 🙂
  • b

    bright-gpu-74537

    02/26/2023, 4:23 PM
    i love it when other people link things up... its a nice feeling to just link up a couple of functions or change a tiny bit of code any everything suddenly works, eh? 🙂
1...154015411542...1687Latest