fix alpha check

This commit is contained in:
griffi-gh 2024-02-20 20:31:12 +01:00
parent f95caf37e5
commit 3550c28cc7

View file

@ -128,7 +128,7 @@ impl UiElement for Container {
let mut position = ctx.layout.position;
//background
if self.background.z > 0. {
if self.background.w > 0. {
ctx.draw.add(UiDrawCommand::Rectangle {
position,
size: ctx.measure.size,