Push layout to parent instead of creating new node

This commit is contained in:
2023-12-21 17:48:06 +01:00
parent 8cbab1bbb8
commit 05782559be
3 changed files with 17 additions and 33 deletions

View File

@@ -19,7 +19,7 @@ void render(float dt, int *game) {
bzUIBegin(ui, GetScreenWidth(), GetScreenHeight());
bzUIPushLayout(ui, *&(BzUILayout) {
bzUISetParentLayout(ui, *&(BzUILayout) {
.type = BZ_UI_LAYOUT_FLEX_BOX,
.flags = BZ_UI_FLEX_DIR_COLUMN | BZ_UI_FLEX_ALIGN_CENTER | BZ_UI_FLEX_JUSTIFY_CENTER,
});