diff options
author | Fox Caminiti <fox@foxcam.net> | 2023-01-06 10:26:43 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2023-01-06 10:26:43 -0500 |
commit | 1de48570b220acc1ca7063e2a9cda1e89178c0f9 (patch) | |
tree | 1edd38bd7ad7f95f865793a9d0e54c62aa3bf37e /src/imgui_ui_properties.cpp | |
parent | eebbdd012b0d156e9e92369585c6ad82ed3de371 (diff) |
bad shape positioning
Diffstat (limited to 'src/imgui_ui_properties.cpp')
-rw-r--r-- | src/imgui_ui_properties.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/imgui_ui_properties.cpp b/src/imgui_ui_properties.cpp index d89f2f0..6f949c8 100644 --- a/src/imgui_ui_properties.cpp +++ b/src/imgui_ui_properties.cpp @@ -443,6 +443,27 @@ ImGui_PropertiesPanel(project_data *File, project_state *State, ui *UI, memory * } ImGui::EndListBox(); } + char *Names2[3] = { "Butt", "Round", "Square" }; + nvg_line_cap CapVals[3] = { NVG_BUTT, NVG_ROUND, NVG_SQUARE }; + if (ImGui::BeginListBox("Path cap type")) { + for (int i = 0; i < 2; i++) { + if (ImGui::Selectable(Names2[i], (Opt->LineCapType == CapVals[i]))) { + Opt->LineCapType = CapVals[i]; + } + } + ImGui::EndListBox(); + } + char *Names3[3] = { "Miter", "Round", "Bevel" }; + nvg_line_cap JoinVals[3] = { NVG_MITER, NVG_ROUND, NVG_BEVEL }; + if (ImGui::BeginListBox("Path join type")) { + for (int i = 0; i < 2; i++) { + if (ImGui::Selectable(Names3[i], (Opt->LineJoinType == JoinVals[i]))) { + Opt->Visibility = i; + Opt->LineJoinType = JoinVals[i]; + } + } + ImGui::EndListBox(); + } ImGui::ColorEdit4("Fill color", (real32 *)&Opt->FillCol, ImGuiColorEditFlags_Float); ImGui::ColorEdit4("Stroke color", (real32 *)&Opt->StrokeCol, ImGuiColorEditFlags_Float); real32 StrokeWidthMin = 0; |