diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2020-02-21 16:24:50 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2020-02-21 16:24:50 +0300 |
commit | 53f1a283f32dfcd65b6c501317845da883ce2de6 (patch) | |
tree | 30c98f58d060854ba41990cdc3ff8e2ff77732cb /src/slic3r/GUI | |
parent | 676448581d18c963bbd72cfa587376b1e3b39cea (diff) |
Hollowing gizmo sliders now contain a unit where appropriate
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r-- | src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp b/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp index a6283f80e..827df2a81 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp @@ -756,7 +756,7 @@ RENDER_AGAIN: m_imgui->text(m_desc.at("offset")); ImGui::SameLine(settings_sliders_left); ImGui::PushItemWidth(window_width - settings_sliders_left); - ImGui::SliderFloat(" ", &offset, offset_min, offset_max, "%.1f"); + ImGui::SliderFloat(" ", &offset, offset_min, offset_max, "%.1f mm"); if (ImGui::IsItemHovered()) { ImGui::BeginTooltip(); ImGui::TextUnformatted(_(opts[0].second->tooltip).ToUTF8()); @@ -783,7 +783,7 @@ RENDER_AGAIN: if (current_mode >= closing_d_mode) { m_imgui->text(m_desc.at("closing_distance")); ImGui::SameLine(settings_sliders_left); - ImGui::SliderFloat(" ", &closing_d, closing_d_min, closing_d_max, "%.1f"); + ImGui::SliderFloat(" ", &closing_d, closing_d_min, closing_d_max, "%.1f mm"); if (ImGui::IsItemHovered()) { ImGui::BeginTooltip(); ImGui::TextUnformatted(_(opts[2].second->tooltip).ToUTF8()); @@ -832,7 +832,7 @@ RENDER_AGAIN: ImGui::PushItemWidth(window_width - diameter_slider_left); float diam = 2.f * m_new_hole_radius; - ImGui::SliderFloat("", &diam, 1.f, diameter_upper_cap, "%.1f"); + ImGui::SliderFloat("", &diam, 1.f, diameter_upper_cap, "%.1f mm"); m_new_hole_radius = diam / 2.f; bool clicked = ImGui::IsItemClicked(); bool edited = ImGui::IsItemEdited(); @@ -841,7 +841,7 @@ RENDER_AGAIN: m_imgui->text(m_desc["hole_depth"]); ImGui::SameLine(diameter_slider_left); m_new_hole_height -= m_c->HoleStickOutLength; - ImGui::SliderFloat(" ", &m_new_hole_height, 0.f, 10.f, "%.1f"); + ImGui::SliderFloat(" ", &m_new_hole_height, 0.f, 10.f, "%.1f mm"); m_new_hole_height += m_c->HoleStickOutLength; clicked |= ImGui::IsItemClicked(); |