From ee3488a1197453a1476a661b6a421077a0aeba46 Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Fri, 22 Mar 2024 20:46:58 +0400 Subject: [PATCH] setting and stuf --- src/gui/gui.h | 4 ++-- src/gui/newSong.cpp | 3 ++- src/gui/settings.cpp | 26 ++++++++++++++++++++------ src/gui/sysManager.cpp | 4 ++-- src/gui/sysPicker.cpp | 2 ++ 5 files changed, 28 insertions(+), 11 deletions(-) diff --git a/src/gui/gui.h b/src/gui/gui.h index 62f02389f..123da0ba9 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -1816,7 +1816,7 @@ class FurnaceGUI { int shaderOsc; int cursorWheelStep; int chipManagerTooltip; - int sysTooltipChannelColors; + int sysTooltipChanInfoStyle; unsigned int maxUndoSteps; String mainFontPath; String headFontPath; @@ -2023,7 +2023,7 @@ class FurnaceGUI { shaderOsc(1), cursorWheelStep(0), chipManagerTooltip(1), // poll? - sysTooltipChannelColors(1), // poll? + sysTooltipChanInfoStyle(3), // poll? maxUndoSteps(100), mainFontPath(""), headFontPath(""), diff --git a/src/gui/newSong.cpp b/src/gui/newSong.cpp index 4acc3dac1..0f60b2774 100644 --- a/src/gui/newSong.cpp +++ b/src/gui/newSong.cpp @@ -80,7 +80,8 @@ void FurnaceGUI::drawSysDefs(std::vector& category, bool& acce ImGui::PushTextWrapPos(MIN(scrW*dpiScale,400.0f*dpiScale)); ImGui::Text("%s (x%d): ",sysDef->name,chipCounts[chip]); ImGui::Text("%s",sysDef->description); - if (settings.sysTooltipChannelColors) drawSystemChannelInfo(sysDef); + if (settings.sysTooltipChanInfoStyle&1) drawSystemChannelInfoText(sysDef); + if (settings.sysTooltipChanInfoStyle&2) drawSystemChannelInfo(sysDef); ImGui::PopTextWrapPos(); if (chipIndex+1description); - drawSystemChannelInfoText(sysDef); + if (settings.sysTooltipChanInfoStyle&1) drawSystemChannelInfoText(sysDef); + if (settings.sysTooltipChanInfoStyle&2) drawSystemChannelInfo(sysDef); ImGui::PopTextWrapPos(); - if (settings.sysTooltipChannelColors) drawSystemChannelInfo(sysDef); ImGui::EndTooltip(); } } diff --git a/src/gui/sysPicker.cpp b/src/gui/sysPicker.cpp index b374a815f..27d4763de 100644 --- a/src/gui/sysPicker.cpp +++ b/src/gui/sysPicker.cpp @@ -90,6 +90,8 @@ DivSystem FurnaceGUI::systemPicker() { if (hoveredSys!=DIV_SYSTEM_NULL) { const DivSysDef* sysDef=e->getSystemDef(hoveredSys); ImGui::TextWrapped("%s",sysDef->description); + if (settings.sysTooltipChanInfoStyle&1) drawSystemChannelInfoText(sysDef); + if (settings.sysTooltipChanInfoStyle&2) drawSystemChannelInfo(sysDef); } } ImGui::EndChild();