GUI: mobile edit button only visible in pattern
This commit is contained in:
parent
fe4f15fff2
commit
315d7595a5
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue