From 15883adc6f5f87c2e63e80f253f2aad31c7ecfb0 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 21 Feb 2022 17:13:21 -0500 Subject: [PATCH] GUI: add tooltip to ++ in pattern view --- src/gui/pattern.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gui/pattern.cpp b/src/gui/pattern.cpp index 0b7df16f..d8ad5628 100644 --- a/src/gui/pattern.cpp +++ b/src/gui/pattern.cpp @@ -397,6 +397,15 @@ void FurnaceGUI::drawPattern() { if (ImGui::Selectable((extraChannelButtons==2)?" --##ExtraChannelButtons":" ++##ExtraChannelButtons",false,ImGuiSelectableFlags_NoPadWithHalfSpacing,ImVec2(0.0f,lineHeight+1.0f*dpiScale))) { if (++extraChannelButtons>2) extraChannelButtons=0; } + if (ImGui::IsItemHovered()) { + if (extraChannelButtons==2) { + ImGui::SetTooltip("Pattern names (click to collapse)"); + } else if (extraChannelButtons==1) { + ImGui::SetTooltip("Expanded (click for pattern names)"); + } else { + ImGui::SetTooltip("Compact (click to expand)"); + } + } if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) { fancyPattern=!fancyPattern; e->enableCommandStream(fancyPattern);