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

    famous-alarm-22563

    11/28/2022, 1:38 PM
    I have that in my Main.hx
  • f

    famous-alarm-22563

    11/28/2022, 1:38 PM
    Do I need to add it here too?
  • b

    bright-gpu-74537

    11/28/2022, 1:39 PM
    nope, Main.hx sounds fine
  • b

    bright-gpu-74537

    11/28/2022, 1:39 PM
    so the button appears etc?
  • f

    famous-alarm-22563

    11/28/2022, 1:40 PM
    it appears
  • b

    bright-gpu-74537

    11/28/2022, 1:40 PM
    can you zip your project and send it over?
  • b

    bright-gpu-74537

    11/28/2022, 1:40 PM
    weird
  • a

    ambitious-knife-25690

    11/28/2022, 1:40 PM
    does it switch the state?
  • f

    famous-alarm-22563

    11/28/2022, 1:40 PM
    nope
  • b

    bright-gpu-74537

    11/28/2022, 1:40 PM
    i wonder if its the ".screenCenter()", that presumably is a flixel function not a haxeui function...
  • f

    famous-alarm-22563

    11/28/2022, 1:40 PM
    the handler doesn't trigger.
  • b

    bright-gpu-74537

    11/28/2022, 1:41 PM
    i wonder if haxeui thinks its in a different place... i dont really see why that would be the case... ... i dont think... can you zip and send?
  • f

    famous-alarm-22563

    11/28/2022, 1:41 PM
    I inferred from
    supporting diffeerent backends
    that it supports different apis.. my bad
  • f

    famous-alarm-22563

    11/28/2022, 1:41 PM
    Let me remove that and check
  • b

    bright-gpu-74537

    11/28/2022, 1:42 PM
    well, i mean, its not the haxeui api, thats flixel api, but it should support it since its just a flixel sprite at the end of the day, so if that is the cause, i would consider it a bug
  • f

    famous-alarm-22563

    11/28/2022, 1:42 PM
    Yup it was the screen center
  • f

    famous-alarm-22563

    11/28/2022, 1:43 PM
    weird asf
  • b

    bright-gpu-74537

    11/28/2022, 1:43 PM
    cool - ill add it to the list, i would say thats a haxeui-fixel bug
  • b

    bright-gpu-74537

    11/28/2022, 1:43 PM
    well, i guess, for some reason, the haxeui bounds arent being updated when that gets called, so haxeui doesnt think there is anything there
  • f

    famous-alarm-22563

    11/28/2022, 1:44 PM
    sounds like some of the weirdness I was getting with objects not "moving" together
  • b

    bright-gpu-74537

    11/28/2022, 1:45 PM
    possibly, i would imagine that whatever fixes the screenCenter would fix a bunch of other things in the similar domain
  • f

    famous-alarm-22563

    11/28/2022, 1:45 PM
    I. wis you a quick debugging experience.
  • f

    famous-alarm-22563

    11/28/2022, 2:01 PM
    @bright-gpu-74537
    centerOrigin()
    breaks haxeui also.. also button.width returns ... 0?
  • b

    bright-gpu-74537

    11/28/2022, 2:04 PM
    i guess centerOrigin is going to be the same issue as screenCenter. The button might need a frame to have all its values calculated (if its autosized, which im assuming it is). You can use
    syncComponentValidation()
    to force it (
    validateComponentNow()
    should also work, i didnt add this function, but i think they are interchangeable)
  • f

    famous-alarm-22563

    11/28/2022, 2:06 PM
    alright! thanks for the help!
  • f

    famous-alarm-22563

    11/29/2022, 12:28 AM
    Does haxeui support rtl languages? Arabic text is seperated Instead of displaying like this: "ليس" it displays like this: "ل ي س" without the spaceds in between... Any ideas for things to do? I tried setting the direction property with the customstyles.direction property but that doesn't seem to do anything to solve the issue.
  • f

    famous-alarm-22563

    11/29/2022, 12:30 AM
    This is when I build for mac
  • f

    famous-alarm-22563

    11/29/2022, 12:45 AM
    it displays properly when I build for html5. I don't have a linux/windows machine handy so I can't test there. I suspect the same situation will be repeated 🤔
  • a

    ambitious-knife-25690

    11/29/2022, 1:02 AM
    i think this might be a general limitation
  • a

    ambitious-knife-25690

    11/29/2022, 1:03 AM
    mr shahar spent a lot of time working on this iirc
1...130413051306...1687Latest