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

    bright-gpu-74537

    02/27/2023, 8:25 PM
    (not background-opacity, or any style, just props on the component)
  • a

    ambitious-knife-25690

    02/27/2023, 8:26 PM
    opacity field is ignored 🤔
  • b

    bright-gpu-74537

    02/27/2023, 8:26 PM
    so yeah, opacity for the component as a whole isnt working
  • b

    bright-gpu-74537

    02/27/2023, 8:27 PM
    there are 3 opacity styles:
    style.borderOpacity
    ,
    style.backgroundOpacity
    and
    style.opacity
  • b

    bright-gpu-74537

    02/27/2023, 8:27 PM
    all different, and all have different uses
  • a

    ambitious-knife-25690

    02/27/2023, 8:28 PM
    ahhh i'm just using backgroundOpacity
  • b

    bright-gpu-74537

    02/27/2023, 8:28 PM
    yeah, which is useful, but .opacity means "the whole component" (including children)
  • a

    ambitious-knife-25690

    02/27/2023, 8:29 PM
    hmm, how would i apply "background opacity"? 🤔
  • b

    bright-gpu-74537

    02/27/2023, 8:29 PM
    you've already done background opacity, no?
  • a

    ambitious-knife-25690

    02/27/2023, 8:29 PM
    I think what i'm setting background opacity to
  • a

    ambitious-knife-25690

    02/27/2023, 8:29 PM
    should be what i use .opacity for
  • a

    ambitious-knife-25690

    02/27/2023, 8:30 PM
    Copy code
    hx
                    if (style.backgroundOpacity != null) {
                        visual.alpha = style.backgroundOpacity;
                    }
  • a

    ambitious-knife-25690

    02/27/2023, 8:30 PM
    i think this should be
    style.opacity
    rather than
    backgroundOpacity
  • b

    bright-gpu-74537

    02/27/2023, 8:31 PM
    http://haxeui.org/builder/?dd899846
  • b

    bright-gpu-74537

    02/27/2023, 8:31 PM
    maybe, will it apply to all other child components?
  • b

    bright-gpu-74537

    02/27/2023, 8:31 PM
    you might need to do some recursive "things"
  • a

    ambitious-knife-25690

    02/27/2023, 8:32 PM
    yeah this is the parent visual, so this alpha i believe would apply to all children on the visual
  • a

    ambitious-knife-25690

    02/27/2023, 8:34 PM
    but that leaves what do i apply backgroundopacity to
  • b

    bright-gpu-74537

    02/27/2023, 8:34 PM
    ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    02/27/2023, 8:34 PM
    maybe cermaic supports ARGB / RGBA?
  • a

    ambitious-knife-25690

    02/27/2023, 8:34 PM
    there are some other odd things here
  • b

    bright-gpu-74537

    02/27/2023, 8:35 PM
    yeah, borders look a little off
  • b

    bright-gpu-74537

    02/27/2023, 8:35 PM
    the last 10% takes 90% of the time, eh? 😉
  • a

    ambitious-knife-25690

    02/27/2023, 8:37 PM
    okay, i think i can fix this setup
  • a

    ambitious-knife-25690

    02/27/2023, 8:37 PM
    i'll do that now
  • b

    bright-gpu-74537

    02/27/2023, 9:11 PM
    sparrow player in haxeui-flixel 😉
  • b

    big-angle-82801

    02/27/2023, 9:12 PM
    Been waiting for this!!
  • b

    bright-gpu-74537

    02/27/2023, 9:13 PM
    oh? 🙂
  • f

    full-journalist-82607

    02/27/2023, 9:13 PM
    Yeah, and you've been quite slow Ian !
  • b

    bright-gpu-74537

    02/27/2023, 9:14 PM
    haha 😄
1...154915501551...1687Latest