billowy-waiter-28954
01/25/2023, 11:19 PMambitious-knife-25690
01/25/2023, 11:19 PMambitious-knife-25690
01/25/2023, 11:19 PMambitious-knife-25690
01/25/2023, 11:20 PMambitious-knife-25690
01/25/2023, 11:20 PMbillowy-waiter-28954
01/25/2023, 11:20 PMbillowy-waiter-28954
01/25/2023, 11:20 PMambitious-knife-25690
01/25/2023, 11:21 PMambitious-knife-25690
01/25/2023, 11:22 PMhx
        if (style.backgroundColor != null) {
            var alpha:Int = 0xFF000000;
            var bgcolor = style.backgroundColor;
            _surface.color = (bgcolor);
            if (style.backgroundColorEnd != null && style.backgroundColor != style.backgroundColorEnd) {
                    
                    _surface.colorMapping = VERTICES;     
                    
                    var hend = style.backgroundColorEnd;
                    var start = (bgcolor | alpha);
                    var end = (hend | alpha);
                    var type = "vertical";
                    if (style.backgroundGradientStyle != null) {
                            type = style.backgroundGradientStyle;
                    }
                    switch (type) {
                        case "horizontal":
                            _surface.colors = [start, end, start, end];
                        case "vertical" | _:
                            _surface.colors = [start, start, end, end];
                    }
            } else {
                    _surface.colorMapping = MESH;
                    if (style.backgroundOpacity != null) {
                            _surface.alpha = style.backgroundOpacity;
                    }
            }
        }ambitious-knife-25690
01/25/2023, 11:23 PMalpha intambitious-knife-25690
01/25/2023, 11:23 PMNone or Transparent shouldn't apply anymorebright-gpu-74537
01/25/2023, 11:25 PMambitious-knife-25690
01/25/2023, 11:26 PMambitious-knife-25690
01/25/2023, 11:27 PM.color is fine with rgb gradient mesh .colors wants rgbabright-gpu-74537
01/25/2023, 11:27 PMambitious-knife-25690
01/25/2023, 11:29 PMbright-gpu-74537
01/25/2023, 11:30 PMambitious-knife-25690
01/25/2023, 11:31 PMambitious-knife-25690
01/25/2023, 11:31 PMambitious-knife-25690
01/25/2023, 11:31 PMambitious-knife-25690
01/25/2023, 11:32 PMBottom buttonambitious-knife-25690
01/25/2023, 11:33 PMthis._surface.colors = [AlphaColor.TRANSPARENT];
instead of this._surface.color = Color.NONEambitious-knife-25690
01/25/2023, 11:34 PMNONE seems to translate to white on native so that meant those items that don't set a backgroundcolor just all get a nice big white backgroundbillowy-waiter-28954
01/25/2023, 11:40 PMbillowy-waiter-28954
01/25/2023, 11:40 PMambitious-knife-25690
01/25/2023, 11:41 PMbillowy-waiter-28954
01/25/2023, 11:41 PMbillowy-waiter-28954
01/25/2023, 11:42 PMambitious-knife-25690
01/25/2023, 11:42 PMambitious-knife-25690
01/25/2023, 11:44 PMelectron main.js in the folder