mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 15:11:19 +00:00
GUI: change behavior of play buttons
This commit is contained in:
parent
25c5c97c47
commit
8facb43081
1 changed files with 7 additions and 4 deletions
|
@ -20,9 +20,6 @@
|
|||
#include "gui.h"
|
||||
#include "IconsFontAwesome4.h"
|
||||
|
||||
// TODO:
|
||||
// - "play from start" button/action
|
||||
// - fix behavior of play buttons
|
||||
void FurnaceGUI::drawEditControls() {
|
||||
if (nextWindow==GUI_WINDOW_EDIT_CONTROLS) {
|
||||
editControlsOpen=true;
|
||||
|
@ -259,11 +256,17 @@ void FurnaceGUI::drawEditControls() {
|
|||
ImGui::PopStyleColor();
|
||||
} else {
|
||||
if (ImGui::Button(ICON_FA_PLAY "##Play")) {
|
||||
play();
|
||||
play(oldRow);
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(ICON_FA_PLAY_CIRCLE "##PlayAgain")) {
|
||||
e->setRepeatPattern(false);
|
||||
play();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(ICON_FA_STEP_FORWARD "##PlayRepeat")) {
|
||||
e->setRepeatPattern(true);
|
||||
play();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
|
Loading…
Reference in a new issue