color things

This commit is contained in:
Eknous-P 2024-03-21 12:03:59 +04:00
parent fb29626f5d
commit 6c816550fe
2 changed files with 11 additions and 8 deletions

View file

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

View file

@ -23,6 +23,15 @@
#include <fmt/printf.h> #include <fmt/printf.h>
#include <imgui.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]));
ImGui::SmallButton("##ChanTypeColorThing");
ImGui::SameLine();
ImGui::PopStyleColor();
}
}
void FurnaceGUI::drawSysManager() { void FurnaceGUI::drawSysManager() {
if (nextWindow==GUI_WINDOW_SYS_MANAGER) { if (nextWindow==GUI_WINDOW_SYS_MANAGER) {
sysManagerOpen=true; sysManagerOpen=true;
@ -95,14 +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();
// ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[GUI_COLOR_CHANNEL_PULSE])); drawSystemChannelInfo(e->song.system[i]);
// ImGui::SmallButton("##");ImGui::SameLine();
// ImGui::SmallButton("##");ImGui::SameLine();
// ImGui::SmallButton("##");ImGui::SameLine();
// ImGui::PopStyleColor();
// ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[GUI_COLOR_CHANNEL_NOISE]));
// ImGui::SmallButton("##");
// ImGui::PopStyleColor();
ImGui::EndTooltip(); ImGui::EndTooltip();
} }
} }