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 drawTutorial();
void drawXYOsc();
void drawSystemChannelInfo(DivSystem which);
void drawSystemChannelInfo(const DivSysDef* whichDef);
void parseKeybinds();
void promptKey(int which);

View file

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