Break "no instrument selected" lines.

In the instrument editor, when instruments are loaded but no instrument is selected, there's a dropdown to select a type and then "or Open or Create New"... but on one line, they're too long for the window's width. With this, they're on two lines.
This commit is contained in:
Electric Keet 2023-08-15 11:58:05 -07:00
parent 09540a2d53
commit f09ef69da1

View file

@ -2201,6 +2201,7 @@ void FurnaceGUI::drawInsEdit() {
ImGui::TableNextColumn();
if (e->song.ins.size()>0) {
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
if (ImGui::BeginCombo("##InsSelect","select one...")) {
String name;
for (size_t i=0; i<e->song.ins.size(); i++) {
@ -2213,7 +2214,7 @@ void FurnaceGUI::drawInsEdit() {
}
ImGui::EndCombo();
}
ImGui::SameLine();
ImGui::AlignTextToFramePadding();
ImGui::TextUnformatted("or");
ImGui::SameLine();
}