This commit is contained in:
Eknous-P 2024-03-21 13:02:51 +04:00
parent 6c816550fe
commit 399c63a587
2 changed files with 5 additions and 5 deletions

View file

@ -2608,7 +2608,7 @@ class FurnaceGUI {
void drawClock(); void drawClock();
void drawTutorial(); void drawTutorial();
void drawXYOsc(); void drawXYOsc();
void drawSystemChannelInfo(DivSystem which); void drawSystemChannelInfo(const DivSysDef* whichDef);
void parseKeybinds(); void parseKeybinds();
void promptKey(int which); void promptKey(int which);

View file

@ -23,9 +23,9 @@
#include <fmt/printf.h> #include <fmt/printf.h>
#include <imgui.h> #include <imgui.h>
void FurnaceGUI::drawSystemChannelInfo(DivSystem which) { void FurnaceGUI::drawSystemChannelInfo(const DivSysDef* whichDef) {
for (int i=0; i<e->getSystemDef(which)->channels; i++) { for (int i=0; i<whichDef->channels; i++) {
ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[e->getSystemDef(which)->chanTypes[i]+GUI_COLOR_CHANNEL_FM])); ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[whichDef->chanTypes[i]+GUI_COLOR_CHANNEL_FM]));
ImGui::SmallButton("##ChanTypeColorThing"); ImGui::SmallButton("##ChanTypeColorThing");
ImGui::SameLine(); ImGui::SameLine();
ImGui::PopStyleColor(); ImGui::PopStyleColor();
@ -104,7 +104,7 @@ void FurnaceGUI::drawSysManager() {
ImGui::PushTextWrapPos(ImGui::GetCursorPos().x+420); // arbitrary constant ImGui::PushTextWrapPos(ImGui::GetCursorPos().x+420); // arbitrary constant
ImGui::TextWrapped("%s",sysDef->description); ImGui::TextWrapped("%s",sysDef->description);
ImGui::PopTextWrapPos(); ImGui::PopTextWrapPos();
drawSystemChannelInfo(e->song.system[i]); drawSystemChannelInfo(sysDef);
ImGui::EndTooltip(); ImGui::EndTooltip();
} }
} }