and in newsong
This commit is contained in:
parent
0595bf174c
commit
bab920e9e6
|
|
@ -80,6 +80,7 @@ void FurnaceGUI::drawSysDefs(std::vector<FurnaceGUISysDef>& category, bool& acce
|
||||||
ImGui::PushTextWrapPos(MIN(scrW*dpiScale,400.0f*dpiScale));
|
ImGui::PushTextWrapPos(MIN(scrW*dpiScale,400.0f*dpiScale));
|
||||||
ImGui::Text("%s (x%d): ",sysDef->name,chipCounts[chip]);
|
ImGui::Text("%s (x%d): ",sysDef->name,chipCounts[chip]);
|
||||||
ImGui::Text("%s",sysDef->description);
|
ImGui::Text("%s",sysDef->description);
|
||||||
|
if (settings.sysTooltipChannelColors) drawSystemChannelInfo(sysDef);
|
||||||
ImGui::PopTextWrapPos();
|
ImGui::PopTextWrapPos();
|
||||||
if (chipIndex+1<chips.size()) {
|
if (chipIndex+1<chips.size()) {
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,15 @@
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
|
|
||||||
void FurnaceGUI::drawSystemChannelInfo(const DivSysDef* whichDef) {
|
void FurnaceGUI::drawSystemChannelInfo(const DivSysDef* whichDef) {
|
||||||
for (int i=0; i<whichDef->channels; i++) {
|
for (int i=0; i<whichDef->channels-1; i++) {
|
||||||
ImGui::PushStyleColor(ImGuiCol_Button,ImGui::GetColorU32(uiColors[whichDef->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();
|
||||||
}
|
}
|
||||||
|
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() {
|
void FurnaceGUI::drawSysManager() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue