This commit is contained in:
tildearrow 2023-08-03 04:11:36 -05:00
parent c58eec5753
commit 69c4c58cc5
1 changed files with 2 additions and 5 deletions

View File

@ -104,10 +104,7 @@ void FurnaceGUI::endIntroTune() {
void FurnaceGUI::drawIntro(double introTime, bool monitor) { void FurnaceGUI::drawIntro(double introTime, bool monitor) {
if (monitor) { if (monitor) {
if (introTime<0.0) introTime=0.0; return;
if (introTime>11.0) introTime=11.0;
if (!introMonOpen) return;
if (introPos<(shortIntro?1.0:11.0)) return;
} }
if (introPos<(shortIntro?1.0:11.0) || monitor) { if (introPos<(shortIntro?1.0:11.0) || monitor) {
if (!monitor) { if (!monitor) {
@ -117,7 +114,7 @@ void FurnaceGUI::drawIntro(double introTime, bool monitor) {
ImGui::SetNextWindowSize(ImVec2(canvasW,canvasH)); ImGui::SetNextWindowSize(ImVec2(canvasW,canvasH));
if (introPos<0.1) ImGui::SetNextWindowFocus(); if (introPos<0.1) ImGui::SetNextWindowFocus();
} }
if (ImGui::Begin(monitor?"IntroMon X":"Intro",monitor?(&introMonOpen):NULL,monitor?globalWinFlags:(ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoDocking|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoBackground))) { if (ImGui::Begin(monitor?"IntroMon X":"Intro",NULL,monitor?globalWinFlags:(ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoDocking|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoBackground))) {
if (monitor) { if (monitor) {
if (ImGui::Button("Preview")) { if (ImGui::Button("Preview")) {
introPos=0; introPos=0;