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

    curved-appointment-82072

    12/01/2022, 2:18 PM
    No openfl
  • b

    bright-gpu-74537

    12/01/2022, 2:19 PM
    it can defo do it, because haxeui-html5 does it like that, im not sure how exposed it is to you though, two secs, lemme have a play
  • b

    bright-gpu-74537

    12/01/2022, 2:20 PM
    so, i think you can just do:
    Copy code
    haxe
    Assets.imageFromBytes(..., (imageInfo) -> {
        myImage.resource = imageInfo.data;
    });
  • b

    bright-gpu-74537

    12/01/2022, 2:22 PM
    note, that in haxeui-html5 "ImageData" resolves to "js.html.ImageElement" (https://github.com/haxeui/haxeui-html5/blob/master/haxe/ui/backend/ImageData.hx), so you should actually be able to do:
    myHaxeUIImage.resource = myHtmlImage;
    And load
    myHtmlImage
    however you want
  • c

    curved-appointment-82072

    12/01/2022, 2:22 PM
    Will try
  • b

    bright-gpu-74537

    12/01/2022, 2:22 PM
    note that, ofc, then your app is "linked" to haxeui-html5 (whereas using imageFromBytes it isnt, but you might not care about that)
  • c

    curved-appointment-82072

    12/01/2022, 2:25 PM
    OK thanks I did try MyHaxeuiImage.resource=MyJsImg but maybe not hard enough 😉 will come back with more testing
  • e

    elegant-twilight-61392

    12/01/2022, 2:26 PM
    this is only on windows for some reason
  • b

    bright-gpu-74537

    12/01/2022, 2:26 PM
    http://haxeui.org/builder/?b1fc4663
  • b

    bright-gpu-74537

    12/01/2022, 2:26 PM
    Copy code
    haxe
            var nativeImg = js.Browser.document.createImageElement();
            nativeImg.src = "https://picsum.photos/200";
            nativeImg.onload = function() {
                myImage.resource = nativeImg;
            }
  • b

    bright-gpu-74537

    12/01/2022, 2:28 PM
    it would have been nicer to just do
    myImage.resource = nativeImg;
    without the
    onload
    and i think probably doable, ill make a note to check it out
  • i

    icy-zebra-52882

    12/01/2022, 2:57 PM
    It's available on Firefox for Linux too
  • i

    icy-zebra-52882

    12/01/2022, 2:57 PM
    not on by default but it's there
  • e

    elegant-twilight-61392

    12/01/2022, 2:57 PM
    how
  • i

    icy-zebra-52882

    12/01/2022, 2:58 PM
    in the settings, search for autoscroll
  • i

    icy-zebra-52882

    12/01/2022, 2:58 PM
    not at PC atm
  • f

    famous-alarm-22563

    12/01/2022, 5:02 PM
    the harrigan fixes another bug!
  • f

    famous-alarm-22563

    12/01/2022, 5:02 PM
    thanks for looking into the screencenter thing for me 🙂
  • b

    bright-gpu-74537

    12/01/2022, 5:03 PM
    np - so it works for you now?
  • f

    famous-alarm-22563

    12/01/2022, 8:51 PM
    I haven't tested it yet...
  • r

    refined-cat-44047

    12/01/2022, 9:11 PM
    im on latest haxeui core latest haxeui
  • f

    fierce-soccer-8550

    12/02/2022, 12:03 PM
    Loving this windows manager Ian
  • b

    bright-gpu-74537

    12/02/2022, 12:06 PM
    thanks 🙂
  • b

    bright-gpu-74537

    12/02/2022, 6:06 PM
    forgot about this:

    https://www.youtube.com/watch?v=cijUTbMKMHI&ab_channel=IanHarriganâ–¾

    it is interesting (if i do say so my self 🙂 )
  • b

    bright-gpu-74537

    12/02/2022, 6:06 PM
    ... things have moved so far on since then it might make sense to make a new one 😮
  • o

    orange-van-60470

    12/03/2022, 9:46 AM
    I pm'd you.
  • f

    fierce-soccer-8550

    12/03/2022, 10:25 PM
    Been wrestling with SpeechSynthesis for the past several hours. When I finally got it to speak, well... can't believe it took me that long lol. It appears there are no Haxe examples for SpeechSynthesis. I will get several made to put on git just in case someone else may find them useful.
  • h

    hallowed-ocean-84954

    12/03/2022, 11:01 PM
    possible I might be interested in this soon. Is SpeechSynthesis a package or lib ? gotta a link ?
  • f

    fierce-soccer-8550

    12/03/2022, 11:03 PM
    It's in the haxe API.... here is a quick little example..... of just getting some text spoke.... https://try.haxe.org/#36478d1b
  • h

    hallowed-ocean-84954

    12/03/2022, 11:04 PM
    oh it's web only ?
1...131313141315...1687Latest