From c9b1305b61bdcc7c0a6494eeff891428e7d31e1b Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 19 Feb 2024 02:32:15 -0500 Subject: [PATCH] GUI: new osc renderer, part 18 remove new code button --- src/gui/gui.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index d7db3a57f..641647c44 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -4673,25 +4673,6 @@ bool FurnaceGUI::loop() { MEASURE(effectList,drawEffectList()); } - // after done, remove - if (ImGui::Begin("NewCode",NULL,ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_AlwaysAutoResize)) { - if (rend->supportsDrawOsc()) { - pushToggleColors(newOscCode); - if (ImGui::Button("New Code")) newOscCode=!newOscCode; - popToggleColors(); - ImGui::AlignTextToFramePadding(); - ImGui::Text("Line size"); - ImGui::SameLine(); - ImGui::SetNextItemWidth(120.0f*dpiScale); - ImGui::InputFloat("##NewCodeLS",&newOscLineWidth,1,1,"%.1f"); - } else if (renderBackend==GUI_BACKEND_GL) { - ImGui::Text("Master, are you playing a trick on me?\nThat's not very nice!"); - } else { - ImGui::Text("That would seem unwise given the\ncurrently selected Render Backend."); - } - } - ImGui::End(); - // release selection if mouse released if (ImGui::IsMouseReleased(ImGuiMouseButton_Left) && selecting) { if (!selectingFull) cursor=selEnd;