why did i even

This commit is contained in:
Eknous-P 2024-10-01 17:59:04 +04:00 committed by tildearrow
parent 1333be8da7
commit 0f5af36e99

View file

@ -622,7 +622,6 @@ void FurnaceGUI::drawFindReplace() {
} }
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x/2); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x/2);
bool updateNote1=false; bool updateNote1=false;
bool showOct=i.note<128;
int note1=i.note%12; int note1=i.note%12;
int oct1=i.note/12; int oct1=i.note/12;
if (ImGui::BeginCombo("##NN1",tempID)) { if (ImGui::BeginCombo("##NN1",tempID)) {
@ -647,7 +646,7 @@ void FurnaceGUI::drawFindReplace() {
ImGui::EndCombo(); ImGui::EndCombo();
} }
ImGui::SameLine(); ImGui::SameLine();
if (showOct) { if (i.note<128) {
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x/2); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x/2);
if (ImGui::InputScalar("##NNO1",ImGuiDataType_S32,&oct1)) { if (ImGui::InputScalar("##NNO1",ImGuiDataType_S32,&oct1)) {
if (oct1<-5) oct1=-5; if (oct1<-5) oct1=-5;