mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-18 06:20:17 +00:00
allow changing song length
This commit is contained in:
parent
1234dcf2bc
commit
969d673e0e
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue