GUI: mixer changes mark song as modified
This commit is contained in:
parent
b9b76bef0b
commit
2272028b10
|
@ -33,6 +33,7 @@ void FurnaceGUI::drawMixer() {
|
||||||
if (ImGui::SliderFloat("Master Volume",&e->song.masterVol,0,3,"%.2fx")) {
|
if (ImGui::SliderFloat("Master Volume",&e->song.masterVol,0,3,"%.2fx")) {
|
||||||
if (e->song.masterVol<0) e->song.masterVol=0;
|
if (e->song.masterVol<0) e->song.masterVol=0;
|
||||||
if (e->song.masterVol>3) e->song.masterVol=3;
|
if (e->song.masterVol>3) e->song.masterVol=3;
|
||||||
|
MARK_MODIFIED;
|
||||||
} rightClickable
|
} rightClickable
|
||||||
for (int i=0; i<e->song.systemLen; i++) {
|
for (int i=0; i<e->song.systemLen; i++) {
|
||||||
snprintf(id,31,"MixS%d",i);
|
snprintf(id,31,"MixS%d",i);
|
||||||
|
@ -43,13 +44,17 @@ void FurnaceGUI::drawMixer() {
|
||||||
ImGui::SameLine(ImGui::GetWindowWidth()-(82.0f*dpiScale));
|
ImGui::SameLine(ImGui::GetWindowWidth()-(82.0f*dpiScale));
|
||||||
if (ImGui::Checkbox("Invert",&doInvert)) {
|
if (ImGui::Checkbox("Invert",&doInvert)) {
|
||||||
e->song.systemVol[i]^=128;
|
e->song.systemVol[i]^=128;
|
||||||
|
MARK_MODIFIED;
|
||||||
}
|
}
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x-(50.0f*dpiScale));
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x-(50.0f*dpiScale));
|
||||||
if (CWSliderScalar("Volume",ImGuiDataType_S8,&vol,&_ZERO,&_ONE_HUNDRED_TWENTY_SEVEN)) {
|
if (CWSliderScalar("Volume",ImGuiDataType_S8,&vol,&_ZERO,&_ONE_HUNDRED_TWENTY_SEVEN)) {
|
||||||
e->song.systemVol[i]=(e->song.systemVol[i]&128)|vol;
|
e->song.systemVol[i]=(e->song.systemVol[i]&128)|vol;
|
||||||
|
MARK_MODIFIED;
|
||||||
} rightClickable
|
} rightClickable
|
||||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x-(50.0f*dpiScale));
|
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x-(50.0f*dpiScale));
|
||||||
CWSliderScalar("Panning",ImGuiDataType_S8,&e->song.systemPan[i],&_MINUS_ONE_HUNDRED_TWENTY_SEVEN,&_ONE_HUNDRED_TWENTY_SEVEN); rightClickable
|
if (CWSliderScalar("Panning",ImGuiDataType_S8,&e->song.systemPan[i],&_MINUS_ONE_HUNDRED_TWENTY_SEVEN,&_ONE_HUNDRED_TWENTY_SEVEN)) {
|
||||||
|
MARK_MODIFIED;
|
||||||
|
} rightClickable
|
||||||
|
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue