From 92de8d3eae1752dc78f46405e51d182b99bb69c6 Mon Sep 17 00:00:00 2001 From: ExPikaPaka Date: Fri, 2 Oct 2026 09:05:35 +0200 Subject: [PATCH] Link the texture displacement guide and wiki from the gizmo panel Finding either piece of documentation currently means knowing it exists and going looking for it outside the application, which is the hardest moment to do that: the panel has a lot of controls and the feature is new. Add two borderless icon buttons to the panel header, next to the dock toggle, opening the video walkthrough and the wiki page in the default browser. Both icons follow the set's existing convention of a grey outline with a teal accent, so they read as part of the same panel. --- resources/images/texture_displacement_video_guide.svg | 1 + resources/images/texture_displacement_wiki.svg | 1 + src/slic3r/GUI/Gizmos/GLGizmoTextureDisplacement.cpp | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 resources/images/texture_displacement_video_guide.svg create mode 100644 resources/images/texture_displacement_wiki.svg diff --git a/resources/images/texture_displacement_video_guide.svg b/resources/images/texture_displacement_video_guide.svg new file mode 100644 index 0000000000..aeeaa8d40f --- /dev/null +++ b/resources/images/texture_displacement_video_guide.svg @@ -0,0 +1 @@ + diff --git a/resources/images/texture_displacement_wiki.svg b/resources/images/texture_displacement_wiki.svg new file mode 100644 index 0000000000..b614fa893e --- /dev/null +++ b/resources/images/texture_displacement_wiki.svg @@ -0,0 +1 @@ + diff --git a/src/slic3r/GUI/Gizmos/GLGizmoTextureDisplacement.cpp b/src/slic3r/GUI/Gizmos/GLGizmoTextureDisplacement.cpp index 5c322a1f81..e4cc23916d 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoTextureDisplacement.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoTextureDisplacement.cpp @@ -3362,6 +3362,8 @@ void GLGizmoTextureDisplacement::ensure_panel_icons() "texture_displacement_adjust.svg", "canvas_drag.svg", "texture_displacement_move_up.svg", "texture_displacement_move_down.svg", "texture_displacement_drag.svg", "texture_displacement_select_all.svg", "texture_displacement_erase_all.svg", + // Header help links: the video walkthrough and the wiki page. + "texture_displacement_video_guide.svg", "texture_displacement_wiki.svg", }; std::vector paths; paths.reserve(names.size()); @@ -5517,6 +5519,15 @@ void GLGizmoTextureDisplacement::on_render_input_window(float x, float y, float ImGui::GetWindowDrawList()->AddRect(seg_min, ImVec2(ImGui::GetItemRectMax().x, seg_min.y + frame_h), ImGui::GetColorU32(col_frame), style.FrameRounding); + ImGui::SameLine(0.f, gap_s); + if (icon_button(807, "texture_displacement_video_guide.svg", icon_sm, _L("Video guide"), + _L("Watch the texture displacement walkthrough on YouTube. Opens in your browser."))) + wxLaunchDefaultBrowser("https://www.youtube.com/watch?v=D7w3tG1kdvE"); + ImGui::SameLine(0.f, gap_s); + if (icon_button(808, "texture_displacement_wiki.svg", icon_sm, _L("Documentation"), + _L("Open the texture displacement page of the OrcaSlicer wiki. Opens in your browser."))) + wxLaunchDefaultBrowser("https://www.orcaslicer.com/wiki/print_prepare/prepare_texture_displacement.html"); + ImGui::SameLine(0.f, gap_s); if (icon_button(806, "canvas_drag.svg", icon_sm, m_undocked ? _L("Dock panel") : _L("Undock panel"), _L("Detach this panel so it can be dragged anywhere over the 3D view, or dock it back beside "