diff options
Diffstat (limited to 'editor/editor.cpp')
| -rw-r--r-- | editor/editor.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index 2a53b61..a1b8613 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -1513,6 +1513,16 @@ void RecordImGuiUIEdit() { changed = true; } ImGui::Separator(); + if (ImGui::CheckboxFlags("flag: Visibility Invisible", reinterpret_cast<PKE_UI_BOX_FLAG_T*>(&selected_ui_box->flags), static_cast<PKE_UI_BOX_FLAG_T>(PKE_UI_BOX_FLAG_VISIBILITY_INVISIBLE))) { + changed = true; + } + if (ImGui::CheckboxFlags("flag: Visibility Disabled", reinterpret_cast<PKE_UI_BOX_FLAG_T*>(&selected_ui_box->flags), static_cast<PKE_UI_BOX_FLAG_T>(PKE_UI_BOX_FLAG_VISIBILITY_DISABLED))) { + changed = true; + } + if (ImGui::CheckboxFlags("flag: Visibility Pixel Perfect", reinterpret_cast<PKE_UI_BOX_FLAG_T*>(&selected_ui_box->flags), static_cast<PKE_UI_BOX_FLAG_T>(PKE_UI_BOX_FLAG_VISIBILITY_PIXEL_PERFECT))) { + changed = true; + } + ImGui::Separator(); changed = ImGui::InputScalarN("flags", ImGuiDataType_U64, &selected_ui_box->flags, 1, nullptr, nullptr, nullptr, ImGuiInputTextFlags_ReadOnly) || changed; changed = ImGui::InputScalarN("pos_top_left", ImGuiDataType_Float, &selected_ui_box->pos_top_left, 2, nullptr, nullptr, nullptr, 0) || changed; @@ -1521,6 +1531,7 @@ void RecordImGuiUIEdit() { if (PK_HAS_FLAG(selected_ui_box->flags, PKE_UI_BOX_FLAG_POSITION_TYPE_FLEX)) { changed = ImGui::InputScalarN("flex_weight", ImGuiDataType_Float, &selected_ui_box->flex_weight, 1, nullptr, nullptr, nullptr, 0) || changed; } + changed = ImGui::InputScalarN("flex_padding", ImGuiDataType_Float, &selected_ui_box->flex_padding, 1, nullptr, nullptr, nullptr, 0) || changed; changed = ImGui::InputScalarN("flex_direction", ImGuiDataType_U8, &selected_ui_box->flex_direction, 1, nullptr, nullptr, nullptr, 0) || changed; changed = ImGui::InputScalarN("layer", ImGuiDataType_U8, &selected_ui_box->layer, 1, nullptr, nullptr, nullptr, 0) || changed; if (PK_HAS_FLAG(selected_ui_box->flags, PKE_UI_BOX_FLAG_VISIBILITY_INVISIBLE) == false) { @@ -1528,6 +1539,10 @@ void RecordImGuiUIEdit() { changed = ImGui::ColorEdit4("color_background", &selected_ui_box->color_background[0]) || changed; } + ImGui::Text("Internal:"); + ImGui::Text("px_corner: %0.3f : %0.3f", selected_ui_box->internal.px_corner.x, selected_ui_box->internal.px_corner.y); + ImGui::Text("px_size: %0.3f : %0.3f", selected_ui_box->internal.px_size.x, selected_ui_box->internal.px_size.y); + if (selected_ui_box->type == PKE_UI_BOX_TYPE_TEXT) { assert(selected_ui_box->type_data != NULL); ImGui::Text("Type: Text"); |
