From 86505b7176718f397c3be62ccf28d6a742676382 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 19 Aug 2025 15:31:43 -0400 Subject: pke: add ui-text test scene --- editor/editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index 42b1c75..4aa2c0c 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -1303,6 +1303,10 @@ void RecordImGuiUITree() { box->flags |= PKE_UI_BOX_FLAG_CENTER_BOTH; box->max_size = glm::vec2(.6, .6); selected_ui_box = box; + if (type == PKE_UI_BOX_TYPE_TEXT) { + FontRenderSettings frs{}; + box->type_data->text.font_render_handle = FontType_AddStringRender(FontTypeIndex(0), std::move(cstring_to_pk_cstr("")), &frs, box); + } is_creating_new_box = false; is_child = false; type = PKE_UI_BOX_TYPE(-1); -- cgit v1.2.3