diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-10 11:41:29 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-10 11:41:29 -0400 |
| commit | a066448effaa9a56c049136067a73ba0156f65d3 (patch) | |
| tree | 7eee2f9db2f23d1847d53f67874d7af0d80732e0 /src/game.cpp | |
| parent | 3fbf01b3466bb94a730cc94fea72ea661ffb9759 (diff) | |
pke: ui box type text cleanup
Diffstat (limited to 'src/game.cpp')
| -rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index b5bb0a0..f00d613 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -190,7 +190,7 @@ void Game_Main(PKEWindowProperties windowProps, const char *executablePath) { // TODO remove me: temp stuff for testing pke_ui_box *ui_box = pke_ui_box_new_root(); - ui_box->flags = PKE_UI_BOX_FLAG_POSITION_TYPE_DYNAMIC; + ui_box->flags |= PKE_UI_BOX_FLAG_POSITION_TYPE_DYNAMIC; ui_box->pos_top_left_x = 0.1; ui_box->pos_top_left_y = 0.1; ui_box->max_width = 0.8; @@ -198,7 +198,7 @@ void Game_Main(PKEWindowProperties windowProps, const char *executablePath) { // TODO remove me: temp stuff for testing pke_ui_box *c_ui_box = pke_ui_box_new_child(ui_box, PKE_UI_BOX_TYPE_TEXT); - c_ui_box->flags = PKE_UI_BOX_FLAG_POSITION_TYPE_STATIC; + c_ui_box->flags |= PKE_UI_BOX_FLAG_POSITION_TYPE_STATIC; c_ui_box->pos_top_left_x = 20; c_ui_box->pos_top_left_y = 20; c_ui_box->max_width = 3000; |
