Push layout to parent instead of creating new node
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user