GUI: add tooltip to ++ in pattern view

This commit is contained in:
tildearrow 2022-02-21 17:13:21 -05:00
parent da9bf01797
commit 15883adc6f

View file

@ -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);