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

    bright-gpu-74537

    02/03/2023, 9:12 PM
    https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/components/ColorPicker.hx#L291
  • h

    helpful-oxygen-79589

    02/03/2023, 9:13 PM
    yea i see the setPixels function
  • h

    helpful-oxygen-79589

    02/03/2023, 9:13 PM
    ill check componentGraphicsBase to see that
  • b

    bright-gpu-74537

    02/03/2023, 9:14 PM
    if you implement that, colour picker will "just work"
  • h

    helpful-oxygen-79589

    02/03/2023, 9:14 PM
    yea ill try that
  • b

    bright-gpu-74537

    02/03/2023, 9:22 PM
    ... ... ... keep in mind that colour spaces are absurd to me - i never thought they would be as complex as they were, a lesson to the uninitiated.
  • a

    ambitious-knife-25690

    02/04/2023, 12:38 AM
    not 100% but hey, proof of concept 😄
  • a

    ambitious-knife-25690

    02/04/2023, 12:41 AM
    ahhh, i think i want a render texture here 🤔
  • a

    ambitious-knife-25690

    02/04/2023, 1:01 AM
    haxeui-ceramic colour picker 😄
  • b

    brave-kangaroo-30399

    02/04/2023, 1:39 AM
    Gif compression is ruining that lol
  • b

    bright-gpu-74537

    02/04/2023, 10:33 AM
    very cool 🥳
  • h

    helpful-oxygen-79589

    02/04/2023, 10:38 AM
    Oh wow
  • h

    helpful-oxygen-79589

    02/04/2023, 10:39 AM
    This is in Flixel?
  • h

    helpful-oxygen-79589

    02/04/2023, 10:39 AM
    Looks really great
  • a

    ambitious-knife-25690

    02/04/2023, 11:21 AM
    nah ceramic
  • a

    ambitious-knife-25690

    02/04/2023, 11:22 AM
    just didn't realise there was stuff I didn't implement until it was mentioned
  • a

    ambitious-knife-25690

    02/04/2023, 11:23 AM
    I'm not sure if ceramic has curved lines or a circle api
  • a

    ambitious-knife-25690

    02/04/2023, 11:23 AM
    will have to check
  • h

    helpful-oxygen-79589

    02/04/2023, 11:25 AM
    oh oke
  • h

    helpful-oxygen-79589

    02/04/2023, 11:26 AM
    looks amazing though
  • i

    icy-zebra-52882

    02/04/2023, 12:48 PM
    am I being stupid about paths for loading images in haxeui-hxwidgets?
  • i

    icy-zebra-52882

    02/04/2023, 12:48 PM
    I can't get an image to load at all, it just stays blank or black
  • i

    icy-zebra-52882

    02/04/2023, 12:49 PM
    I have this xml:
    Copy code
    xml
    <vbox style="padding: 5px;">
        <hbox>
            <image id="npcPortrait" width="64" height="64" resource="./assets/images/AnsweringMachine.png"/>
            <label id="npcNameLabel" text="NPC Name" />
        </hbox>
    </vbox>
    and despite the output having a subfolder called
    assets
    with those files in it, the image won't load
  • i

    icy-zebra-52882

    02/04/2023, 12:49 PM
    I've tried with and without the leading
    ./
  • b

    bright-gpu-74537

    02/04/2023, 12:50 PM
    you either need to setup a module.xml and compile in the resources, or use
    file://...
  • i

    icy-zebra-52882

    02/04/2023, 12:53 PM
    trying
    resource="file://assets/images/AnsweringMachine.png"
    , still won't load, does it want an absolute path?
  • b

    bright-gpu-74537

    02/04/2023, 12:54 PM
    i think it just passes it to File.getBytes or whatever, ill check - what backend?
  • i

    icy-zebra-52882

    02/04/2023, 12:54 PM
    haxeui-hxwidgets
  • i

    icy-zebra-52882

    02/04/2023, 12:56 PM
    ok that's strange, I tried it in code and it appears in the UI now too, but if I remove the code it doesn't
  • i

    icy-zebra-52882

    02/04/2023, 12:56 PM
    Copy code
    hx
    var testFile = File.getBytes("file://assets/images/AnsweringMachine.png");
    trace(testFile.toString);
    adding that in the code made it fetch the image
1...146114621463...1687Latest