From a18dea53e392c7aaf871b4d51b39acc0fa175c92 Mon Sep 17 00:00:00 2001 From: cam900 Date: Mon, 9 Sep 2024 20:26:59 +0900 Subject: [PATCH] Fix tooltip for OPL waveforms --- src/gui/insEdit.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/insEdit.cpp b/src/gui/insEdit.cpp index fd30812df..5ec8c8d05 100644 --- a/src/gui/insEdit.cpp +++ b/src/gui/insEdit.cpp @@ -4029,7 +4029,7 @@ void FurnaceGUI::insTabFM(DivInstrument* ins) { ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); P(CWSliderScalar("##WS",ImGuiDataType_U8,&op.ws,&_ZERO,&_SEVEN,(ins->type==DIV_INS_OPZ)?opzWaveforms[op.ws&7]:(settings.oplStandardWaveNames?oplWaveformsStandard[op.ws&7]:oplWaveforms[op.ws&7]))); rightClickable if ((ins->type==DIV_INS_OPL || ins->type==DIV_INS_OPL_DRUMS) && ImGui::IsItemHovered()) { - ImGui::SetTooltip(_("OPL2/3 only (last 4 waveforms are OPL3 only)")); + ImGui::SetTooltip(_("OPL2/3/4 only (last 4 waveforms are OPL3/4 only)")); } if (ins->type==DIV_INS_ESFM && fixedOn) { if (ImGui::Checkbox(FM_SHORT_NAME(FM_VIB),&vibOn)) { PARAMETER @@ -4393,7 +4393,7 @@ void FurnaceGUI::insTabFM(DivInstrument* ins) { ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); P(CWSliderScalar("##WS",ImGuiDataType_U8,&op.ws,&_ZERO,&_SEVEN,(ins->type==DIV_INS_OPZ)?opzWaveforms[op.ws&7]:(settings.oplStandardWaveNames?oplWaveformsStandard[op.ws&7]:oplWaveforms[op.ws&7]))); rightClickable if ((ins->type==DIV_INS_OPL || ins->type==DIV_INS_OPL_DRUMS) && ImGui::IsItemHovered()) { - ImGui::SetTooltip(_("OPL2/3 only (last 4 waveforms are OPL3 only)")); + ImGui::SetTooltip(_("OPL2/3/4 only (last 4 waveforms are OPL3/4 only)")); } // params @@ -4443,7 +4443,7 @@ void FurnaceGUI::insTabFM(DivInstrument* ins) { ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); P(CWSliderScalar("##WS",ImGuiDataType_U8,&op.ws,&_ZERO,&_SEVEN,(ins->type==DIV_INS_OPZ)?opzWaveforms[op.ws&7]:(settings.oplStandardWaveNames?oplWaveformsStandard[op.ws&7]:oplWaveforms[op.ws&7]))); rightClickable if ((ins->type==DIV_INS_OPL || ins->type==DIV_INS_OPL_DRUMS) && ImGui::IsItemHovered()) { - ImGui::SetTooltip(_("OPL2/3 only (last 4 waveforms are OPL3 only)")); + ImGui::SetTooltip(_("OPL2/3/4 only (last 4 waveforms are OPL3/4 only)")); } // params @@ -5151,7 +5151,7 @@ void FurnaceGUI::insTabFM(DivInstrument* ins) { ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); P(CWSliderScalar("##WS",ImGuiDataType_U8,&op.ws,&_ZERO,&_SEVEN,(ins->type==DIV_INS_OPZ)?opzWaveforms[op.ws&7]:(settings.oplStandardWaveNames?oplWaveformsStandard[op.ws&7]:oplWaveforms[op.ws&7]))); rightClickable if ((ins->type==DIV_INS_OPL || ins->type==DIV_INS_OPL_DRUMS) && ImGui::IsItemHovered()) { - ImGui::SetTooltip(_("OPL2/3 only (last 4 waveforms are OPL3 only)")); + ImGui::SetTooltip(_("OPL2/3/4 only (last 4 waveforms are OPL3/4 only)")); } ImGui::TableNextColumn(); ImGui::Text("%s",FM_NAME(FM_WS));