mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 14:16:00 +08:00
Swap reflection to mirroring
This commit is contained in:
parent
1d2bc5afec
commit
8ccf534c6f
@ -168,7 +168,7 @@ struct GuiCfg
|
|||||||
std::string use_surface;
|
std::string use_surface;
|
||||||
std::string rotation;
|
std::string rotation;
|
||||||
std::string distance; // from surface
|
std::string distance; // from surface
|
||||||
std::string reflection;
|
std::string mirror;
|
||||||
};
|
};
|
||||||
Translations translations;
|
Translations translations;
|
||||||
};
|
};
|
||||||
@ -500,8 +500,8 @@ void GLGizmoSVG::on_render_input_window(float x, float y, float bottom_limit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
//if (!is_opened)
|
if (!is_opened)
|
||||||
// close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLGizmoSVG::on_set_state()
|
void GLGizmoSVG::on_set_state()
|
||||||
@ -1204,7 +1204,7 @@ void GLGizmoSVG::draw_window()
|
|||||||
|
|
||||||
draw_distance();
|
draw_distance();
|
||||||
draw_rotation();
|
draw_rotation();
|
||||||
draw_reflection();
|
draw_mirroring();
|
||||||
|
|
||||||
if (ImGui::Button(_u8L("Face the camera").c_str())) {
|
if (ImGui::Button(_u8L("Face the camera").c_str())) {
|
||||||
const Camera &cam = wxGetApp().plater()->get_camera();
|
const Camera &cam = wxGetApp().plater()->get_camera();
|
||||||
@ -1736,9 +1736,9 @@ void GLGizmoSVG::draw_rotation()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLGizmoSVG::draw_reflection()
|
void GLGizmoSVG::draw_mirroring()
|
||||||
{
|
{
|
||||||
ImGui::Text("%s", m_gui_cfg->translations.reflection.c_str());
|
ImGui::Text("%s", m_gui_cfg->translations.mirror.c_str());
|
||||||
ImGui::SameLine(m_gui_cfg->input_offset);
|
ImGui::SameLine(m_gui_cfg->input_offset);
|
||||||
Axis axis = Axis::UNKNOWN_AXIS;
|
Axis axis = Axis::UNKNOWN_AXIS;
|
||||||
if(clickable(get_icon(m_icons, IconType::reflection_x), get_icon(m_icons, IconType::reflection_x_hover))){
|
if(clickable(get_icon(m_icons, IconType::reflection_x), get_icon(m_icons, IconType::reflection_x_hover))){
|
||||||
@ -1909,14 +1909,14 @@ GuiCfg create_gui_configuration() {
|
|||||||
tr.use_surface = _u8L("Use surface");
|
tr.use_surface = _u8L("Use surface");
|
||||||
tr.distance = _u8L("From surface");
|
tr.distance = _u8L("From surface");
|
||||||
tr.rotation = _u8L("Rotation");
|
tr.rotation = _u8L("Rotation");
|
||||||
tr.reflection = _u8L("Reflection");
|
tr.mirror = _u8L("Mirror");
|
||||||
float max_tr_width = std::max({
|
float max_tr_width = std::max({
|
||||||
ImGui::CalcTextSize(tr.depth.c_str()).x,
|
ImGui::CalcTextSize(tr.depth.c_str()).x,
|
||||||
ImGui::CalcTextSize(tr.size.c_str()).x + lock_width,
|
ImGui::CalcTextSize(tr.size.c_str()).x + lock_width,
|
||||||
ImGui::CalcTextSize(tr.use_surface.c_str()).x,
|
ImGui::CalcTextSize(tr.use_surface.c_str()).x,
|
||||||
ImGui::CalcTextSize(tr.distance.c_str()).x,
|
ImGui::CalcTextSize(tr.distance.c_str()).x,
|
||||||
ImGui::CalcTextSize(tr.rotation.c_str()).x + lock_width,
|
ImGui::CalcTextSize(tr.rotation.c_str()).x + lock_width,
|
||||||
ImGui::CalcTextSize(tr.reflection.c_str()).x,
|
ImGui::CalcTextSize(tr.mirror.c_str()).x,
|
||||||
});
|
});
|
||||||
|
|
||||||
const ImGuiStyle &style = ImGui::GetStyle();
|
const ImGuiStyle &style = ImGui::GetStyle();
|
||||||
|
@ -124,7 +124,7 @@ private:
|
|||||||
void draw_use_surface();
|
void draw_use_surface();
|
||||||
void draw_distance();
|
void draw_distance();
|
||||||
void draw_rotation();
|
void draw_rotation();
|
||||||
void draw_reflection();
|
void draw_mirroring();
|
||||||
void draw_model_type();
|
void draw_model_type();
|
||||||
|
|
||||||
// process mouse event
|
// process mouse event
|
||||||
|
Loading…
x
Reference in New Issue
Block a user