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

    orange-van-60470

    02/22/2023, 3:32 PM
    font looks rather light here, but really great stuff
  • c

    clever-yak-82528

    02/22/2023, 6:09 PM
    ugh, i have an annoying bug i need to fix
  • c

    clever-yak-82528

    02/22/2023, 6:09 PM
    feels like it's gonna be awful to find
  • c

    clever-yak-82528

    02/22/2023, 6:09 PM
    my app crashes when you load certain filetypes, sometimes
  • r

    refined-laptop-39041

    02/22/2023, 10:09 PM
    !!!! Did you end up using SDFPainter?
  • o

    orange-van-60470

    02/22/2023, 11:40 PM
    @clever-yak-82528 you need to share specifics, no one can guess the issue from your post.
  • a

    ambitious-knife-25690

    02/22/2023, 11:44 PM
    i believe they were just venting about an impending hard task ๐Ÿ˜„
  • c

    clever-yak-82528

    02/22/2023, 11:46 PM
    i was
  • c

    clever-yak-82528

    02/22/2023, 11:47 PM
    it's also almost certainly not a haxeui issue
  • b

    bright-gpu-74537

    02/23/2023, 6:41 AM
    i did, yeah - bunch of clean up to do now though
  • b

    bright-gpu-74537

    02/23/2023, 11:20 AM
    if found the most annoying wx api call:
    virtual void SetAlignment (int align)
    and
    virtual void SetAlignment (wxAlignment align)=0
  • b

    bright-gpu-74537

    02/23/2023, 11:20 AM
    all good in cpp, but hxcpp hates it
  • b

    bright-gpu-74537

    02/23/2023, 11:33 AM
    works though, thats the important thing i guess
  • b

    bright-gpu-74537

    02/23/2023, 11:46 AM
    thats better ๐Ÿ™‚
  • b

    bright-gpu-74537

    02/23/2023, 11:47 AM
    @full-journalist-82607 -i think you mentioned some issues with tableview, there certainly were a few (latest core and backend should fix)
  • e

    early-butcher-76809

    02/23/2023, 11:57 AM
    Yeah, I'm sad it's not legal in haxe, to be honest, coming from a C++ background :D
  • b

    bright-gpu-74537

    02/23/2023, 12:12 PM
    yeah, defo a pain
  • p

    powerful-morning-89

    02/23/2023, 12:33 PM
    And what's the precise problem? That it's overloaded, or...?
  • b

    bright-gpu-74537

    02/23/2023, 12:54 PM
    no, that enums are ints in cpp, but in hxcpp you need a extern class, which is then incompatible with int
  • b

    bright-gpu-74537

    02/23/2023, 12:54 PM
    or you can make them ints, which are then incompatible with the "wxAlign"
  • b

    bright-gpu-74537

    02/23/2023, 12:55 PM
    i went this route in the end: https://github.com/haxeui/hxWidgets/commit/fec0c5520dfe4134337906b5ceecb9fdccd433dc not ideal, but "alright"
  • p

    powerful-morning-89

    02/23/2023, 1:03 PM
    Copy code
    hx
    extern class NativeWxAlignment {}
    
    abstract WxAlignment(NativeWxAlignment) {
      @:to function toInt():Int return cast this;
    }
    Something like this could help?
  • b

    bright-gpu-74537

    02/23/2023, 1:05 PM
    might do, i think i tried something like that though... ill have a play when i get a moment
  • r

    refined-greece-48002

    02/23/2023, 4:04 PM
    @bright-gpu-74537 https://github.com/haxeui/haxeui-core/commit/1c4243d68008a8d81b607ddd9bd2f88d597f3da7 This commit causes the following behavior for me (heaps backend targeting hashlink): Dropdown components inside a property grid (property-group-header set to display:none) inside a Window close instantly when clicked on. Holding the mouse button down on a dropdown or repeatedly clicking it quickly throws > haxe/ui/core/ComponentValidation.hx:242: The syncValidation returned too many times during validation. This may be an infinite loop. Try to avoid doing anything that calls invalidate() during validation (haxe.ui.containers.ListView#null).
  • b

    bright-gpu-74537

    02/23/2023, 4:07 PM
    hmmm... i might have to revert and #if def that...
  • b

    bright-gpu-74537

    02/23/2023, 4:07 PM
    i was worried it might have a knock on effect somewhere
  • b

    brave-kangaroo-30399

    02/23/2023, 4:09 PM
    @ambitious-knife-25690 https://github.com/MSGhero/HaxeJam2023-Winter/blob/main/source/ui/elements/UI_Plant.hx
  • b

    bright-gpu-74537

    02/23/2023, 4:10 PM
    alright, done - latest haxeui-core
  • b

    brave-kangaroo-30399

    02/23/2023, 4:10 PM
    This is how I settled on UI for now. Thereโ€™s a lot of boilerplate, but the majority is tying spritesheet animations to the components
  • r

    refined-greece-48002

    02/23/2023, 4:11 PM
    That solves it! Thank you very much :)
1...153415351536...1687Latest