GUI: add Colorize instrument editor using instrume
nt type option
This commit is contained in:
parent
152d05dbfc
commit
45f14a951a
4 changed files with 20 additions and 4 deletions
|
|
@ -1292,6 +1292,9 @@ void FurnaceGUI::drawInsEdit() {
|
|||
ImGui::Text("no instrument selected");
|
||||
} else {
|
||||
DivInstrument* ins=e->song.ins[curIns];
|
||||
if (settings.insEditColorize) {
|
||||
pushAccentColors(uiColors[GUI_COLOR_INSTR_STD+ins->type],uiColors[GUI_COLOR_INSTR_STD+ins->type],uiColors[GUI_COLOR_INSTR_STD+ins->type],ImVec4(0.0f,0.0f,0.0f,0.0f));
|
||||
}
|
||||
if (ImGui::BeginTable("InsProp",3)) {
|
||||
ImGui::TableSetupColumn("c0",ImGuiTableColumnFlags_WidthFixed);
|
||||
ImGui::TableSetupColumn("c1",ImGuiTableColumnFlags_WidthFixed);
|
||||
|
|
@ -3050,6 +3053,9 @@ void FurnaceGUI::drawInsEdit() {
|
|||
}
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
if (settings.insEditColorize) {
|
||||
popAccentColors();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_INS_EDIT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue