GUI: mobile edit button only visible in pattern

This commit is contained in:
tildearrow 2022-12-11 16:29:22 -05:00
parent fe4f15fff2
commit 315d7595a5
1 changed files with 88 additions and 86 deletions

View File

@ -221,6 +221,7 @@ void FurnaceGUI::drawMobileControls() {
}
}
if (curWindowLast==GUI_WINDOW_PATTERN) {
if (mobileEditAnim>0.0f) {
ImGui::SetNextWindowPos(ImVec2(0.0f,0.0f));
ImGui::SetNextWindowSize(ImVec2(canvasW,canvasH));
@ -322,6 +323,7 @@ void FurnaceGUI::drawMobileControls() {
}
ImGui::End();
ImGui::PopStyleVar(2);
}
ImGui::SetNextWindowPos(portrait?ImVec2(0.0f,((1.0-mobileMenuPos*0.65)*canvasH)-(0.16*canvasW)):ImVec2(0.5*canvasW*mobileMenuPos,0.0f));
ImGui::SetNextWindowSize(portrait?ImVec2(canvasW,0.16*canvasW):ImVec2(0.16*canvasH,canvasH));