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

    bright-gpu-74537

    09/11/2022, 9:58 PM
    but also, and probably more importantly, changing the way i draw gradients in heaps
  • b

    bright-gpu-74537

    09/11/2022, 9:59 PM
    so pretty much, i think, as Rob / tizilogic said in the kha discord
  • b

    bright-gpu-74537

    09/11/2022, 9:59 PM
    basically > take a different color per vertex/corner, which at least in my head should result in color gradients if top corners have one fill color and the bottom corners the other
  • b

    bright-gpu-74537

    09/11/2022, 10:00 PM
    also, btw, if you have time, feel free to use "raw kha" with their suggestions and see where you get, saves me having to do so 🙂
  • r

    refined-laptop-39041

    09/11/2022, 10:02 PM
    I'll try that, do you want me to just draw some rectangles with each library? lol
  • b

    bright-gpu-74537

    09/11/2022, 10:03 PM
    if you can give a code sample that reproduces this:
  • b

    bright-gpu-74537

    09/11/2022, 10:03 PM
    (in kha)
  • b

    bright-gpu-74537

    09/11/2022, 10:03 PM
    then, well, its basically done, its just a matter of implementing it in haxeui-kha
  • r

    refined-laptop-39041

    09/11/2022, 10:03 PM
    Yeah, I can try
  • b

    bright-gpu-74537

    09/11/2022, 10:04 PM
    do you have access to the kha discord? I can paste the messages here if not, but it seems like https://github.com/tizilogic/kha-sdf-painter is probably going to work
  • b

    bright-gpu-74537

    09/11/2022, 10:05 PM
    (with some minor modifications)
  • b

    bright-gpu-74537

    09/11/2022, 10:05 PM
    i think ive asked this before, but i can for the life of me remember the answer, but is there an "easy" way to do this using kha graphic2: [8:22 AM] [8:22 AM] ie, thick green rounded border with a gradient fill [8:23 AM] i know without the rounded border its perfectly doable tizilogic — Yesterday at 3:13 PM I don't know of an easy way, but you could use this: https://github.com/tizilogic/kha-sdf-painter and modify/extend the API of the rounded rect to take a different color per vertex/corner, which at least in my head should result in color gradients if top corners have one fill color and the bottom corners the other.. tizilogic — Yesterday at 3:25 PM basically change this to accept different colors per vertex here: https://github.com/tizilogic/kha-sdf-painter/blob/master/Sources/SDFPainter.hx#L143 -> adapt this to do the same: https://github.com/tizilogic/kha-sdf-painter/blob/master/Sources/SDFPainter.hx#L230 -> finally modify this to do the same: https://github.com/tizilogic/kha-sdf-painter/blob/master/Sources/SDFPainter.hx#L638 RobDangerous — Yesterday at 4:57 PM Such things are not included in Kha. Do it yourself or use tizi's stuff or use nanovg. IanHarrigan — Yesterday at 5:30 PM ok, nice one, cheers guys, will have a play (edited)
  • r

    refined-laptop-39041

    09/11/2022, 10:05 PM
    I am on it
  • r

    refined-laptop-39041

    09/11/2022, 10:06 PM
    kha-sdf-painter probably would work best
  • r

    refined-laptop-39041

    09/11/2022, 10:06 PM
    given that it uses graphics2
  • r

    refined-laptop-39041

    09/11/2022, 10:06 PM
    nanovg uses g4
  • b

    bright-gpu-74537

    09/11/2022, 10:06 PM
    seems the most sensible approach, yeah
  • b

    bright-gpu-74537

    09/11/2022, 10:06 PM
    hang on... nanovg is "done" ?
  • i

    icy-zebra-52882

    09/11/2022, 10:06 PM

    https://plzlookat.mystupid.pictures/Code_aXgxJjLmzz.pngâ–¾

    it now compiles!! can't get anything by ID via code for custom components like I can with regular components, but it's at least on screen
  • r

    refined-laptop-39041

    09/11/2022, 10:07 PM
    Not sure, I doubt so? I think it works though?
  • i

    icy-zebra-52882

    09/11/2022, 10:07 PM
    cheers for the fix
  • b

    bright-gpu-74537

    09/11/2022, 10:07 PM
    oh, i didnt know that... maybe haxeui-kha needs a rewrite if thats the case
  • r

    refined-laptop-39041

    09/11/2022, 10:07 PM
    https://discord.com/channels/757530409876717609/757530769315856425/983525877008695346
  • r

    refined-laptop-39041

    09/11/2022, 10:07 PM
    (requires access to kha discord)
  • r

    refined-laptop-39041

    09/11/2022, 10:09 PM
    Probably should stick with the normal Kha implementation for now
  • b

    bright-gpu-74537

    09/11/2022, 10:09 PM
    im off to bed, but can you create a repro of what you mean? The whole "components from xml with no classes" is probably the least tested part of haxeui - so im sure there are subtle bugs when actually using it
  • b

    bright-gpu-74537

    09/11/2022, 10:09 PM
    makes sense... ... for now
  • i

    icy-zebra-52882

    09/11/2022, 10:11 PM
    I meant like for my custom
    characterlist id="grid1
    in
    mainView
    (my parent container), I don't get vs code prompts for trying to do
    mainView.grid1
    like I could for other haxeUI components
  • i

    icy-zebra-52882

    09/11/2022, 10:11 PM
    that's probably not implemented given the very small use case I guess
  • b

    bright-gpu-74537

    09/11/2022, 10:12 PM
    still, it should all end up as a haxe class, so maybe its something really subtle... if you manage to get a minimal repro together, it'd help
1...125712581259...1687Latest