allow changing song length

This commit is contained in:
tildearrow 2021-12-20 17:03:55 -05:00
parent 1234dcf2bc
commit 969d673e0e
1 changed files with 10 additions and 0 deletions

View File

@ -319,6 +319,16 @@ void FurnaceGUI::drawSongInfo() {
e->song.patLen=patLen;
}
ImGui::Text("Song Length");
ImGui::SameLine();
ImGui::SetNextItemWidth(120.0f*dpiScale);
int ordLen=e->song.ordersLen;
if (ImGui::InputInt("##OrdLength",&ordLen,1,3)) {
if (ordLen<1) ordLen=1;
if (ordLen>127) ordLen=127;
e->song.ordersLen=ordLen;
}
ImGui::Text("Rate");
ImGui::SameLine();
ImGui::SetNextItemWidth(120.0f*dpiScale);