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

    bright-gpu-74537

    02/04/2023, 12:58 PM
    <image resource="file://./images/test.png" />
  • b

    bright-gpu-74537

    02/04/2023, 12:58 PM
    seems fine for me
  • b

    bright-gpu-74537

    02/04/2023, 12:58 PM
    <image resource="file://images/test.png" />
    also worked
  • i

    icy-zebra-52882

    02/04/2023, 12:59 PM
    without the manual
    File.getBytes
  • i

    icy-zebra-52882

    02/04/2023, 12:59 PM
    ah why is it saving as avif
  • b

    bright-gpu-74537

    02/04/2023, 1:00 PM
    ¯\_(ツ)_/¯
  • i

    icy-zebra-52882

    02/04/2023, 1:01 PM
    and with the code
  • b

    bright-gpu-74537

    02/04/2023, 1:01 PM
    does it work outside of vscode? Cant really help much tbh, must be something strange in your setup... nothing much is happening here... its literally just grabbing the file from you hdd
  • i

    icy-zebra-52882

    02/04/2023, 1:02 PM
    this is running in the
    new()
    function of MainView.hx, could that be why?
  • b

    bright-gpu-74537

    02/04/2023, 1:02 PM
    doubt it
  • b

    bright-gpu-74537

    02/04/2023, 1:02 PM
    are you sure there is an image for "penny"
  • b

    bright-gpu-74537

    02/04/2023, 1:02 PM
    what about building and running from command line (outside of vscode).. maybe there is a cache issue or something?
  • i

    icy-zebra-52882

    02/04/2023, 1:03 PM
    same blank image issue outside of VSC
  • i

    icy-zebra-52882

    02/04/2023, 1:04 PM
    I know I had some issues with the VSHaxe compilation server over on #459827960006967325 that seemed to affect haxeUI
  • i

    icy-zebra-52882

    02/04/2023, 1:05 PM
    success!! and I've no idea why, it just started working
  • b

    bright-gpu-74537

    02/04/2023, 1:05 PM
    ¯\_(ツ)_/¯
  • i

    icy-zebra-52882

    02/04/2023, 1:05 PM
    thanks VSC ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    02/04/2023, 1:05 PM
    feels like some cache issue or something
  • i

    icy-zebra-52882

    02/04/2023, 1:09 PM
    who knows what dark magics lurk in caches
  • i

    icy-zebra-52882

    02/04/2023, 1:09 PM
    cheers for the help 👍
  • a

    ambitious-knife-25690

    02/04/2023, 7:06 PM
    ah that's ian's work, all I did was copy how he did it on heaps and made a few tweaks
  • a

    ambitious-knife-25690

    02/04/2023, 7:06 PM
    to get this to work it was only around 10 lines of code lol
  • a

    ambitious-knife-25690

    02/04/2023, 7:07 PM
    you could probably just copy 95% of the openfl implementation, add an flxsprite to the mix and stamp the openfl bitmap to sprite
  • h

    helpful-oxygen-79589

    02/04/2023, 7:08 PM
    oh woah
  • a

    ambitious-knife-25690

    02/04/2023, 7:08 PM
    All i did was add the
    setPixels
    function
  • a

    ambitious-knife-25690

    02/04/2023, 7:09 PM
  • a

    ambitious-knife-25690

    02/04/2023, 7:09 PM
    Here's the openfl's
    setPixels
    function
  • a

    ambitious-knife-25690

    02/04/2023, 7:10 PM
    you can copy that, add a local flxsprite and stamp the openfl's bitmap onto the sprite
  • a

    ambitious-knife-25690

    02/04/2023, 7:10 PM
    don't forget to
    add()
    the sprite to haxeui's internal group or state thing and it should just work
  • h

    helpful-oxygen-79589

    02/04/2023, 7:15 PM
    oh yea
1...146214631464...1687Latest