summaryrefslogtreecommitdiff
path: root/src/imgui_ui_properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imgui_ui_properties.cpp')
-rw-r--r--src/imgui_ui_properties.cpp21
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;