This commit is contained in:
Eknous-P 2024-03-21 14:17:27 +04:00
parent bab920e9e6
commit 2e5188884c

View file

@ -24,15 +24,12 @@
#include <imgui.h>
void FurnaceGUI::drawSystemChannelInfo(const DivSysDef* whichDef) {
for (int i=0; i<whichDef->channels-1; i++) {
for (int i=0; i<whichDef->channels; i++) {
ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[whichDef->chanTypes[i]+GUI_COLOR_CHANNEL_FM]));
ImGui::SmallButton("##ChanTypeColorThing");
ImGui::SameLine();
if (i<whichDef->channels-1) ImGui::SameLine();
ImGui::PopStyleColor();
}
ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[whichDef->chanTypes[whichDef->channels-1]+GUI_COLOR_CHANNEL_FM]));
ImGui::SmallButton("##ChanTypeColorThing");
ImGui::PopStyleColor(); // so we don't get an extra sameline
}
void FurnaceGUI::drawSysManager() {