GUI: play/stop/change order

This commit is contained in:
tildearrow 2021-12-11 03:34:43 -05:00
parent 9b850c1763
commit f39e2ea112
8 changed files with 95 additions and 19 deletions

View file

@ -28,6 +28,16 @@ bool FurnaceGUI::loop() {
ImGui::Text("Hello world!\n");
ImGui::InputScalar("Speed 1",ImGuiDataType_U8,&e->song.speed1);
ImGui::InputScalar("Speed 2",ImGuiDataType_U8,&e->song.speed2);
unsigned char ord=e->getOrder();
if (ImGui::InputScalar("Order",ImGuiDataType_U8,&ord)) {
e->setOrder(ord);
}
if (ImGui::Button("Play")) {
e->play();
}
if (ImGui::Button("Stop")) {
e->stop();
}
}
ImGui::End();