Windows taskbar progress (seems to not work?)

This commit is contained in:
Moulberry committed 2024-11-26 15:24:21 +08:00
1 parent a242374fc1
commit 8853aea7cd
10 files changed
+188 -16

No files matched your search

@@ -4,6 +4,7 @@ import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.platform.TextureUtil;
import com.mojang.blaze3d.platform.Window;
import com.moulberry.flashback.Flashback;
import com.moulberry.flashback.editor.ui.windows.ExportDoneWindow;
import com.moulberry.flashback.editor.ui.windows.ExportQueueWindow;
import com.moulberry.flashback.editor.ui.windows.ExportScreenshotWindow;
import com.moulberry.flashback.editor.ui.windows.MovementWindow;
@@ -770,6 +771,8 @@ public class ReplayUI {
WindowType.renderAll();
ExportDoneWindow.render();
popupOpenLastFrame = ImGui.isPopupOpen("", ImGuiPopupFlags.AnyPopup);
ImGui.render();
@@ -0,0 +1,37 @@
package com.moulberry.flashback.editor.ui.windows;
import imgui.ImGui;
import imgui.ImGuiViewport;
import imgui.flag.ImGuiCond;
import imgui.flag.ImGuiWindowFlags;
import imgui.type.ImBoolean;
public class ExportDoneWindow {
public static boolean exportDoneWindowOpen = false;
public static void render() {
if (!exportDoneWindowOpen) {
return;
}
ImGuiViewport viewport = ImGui.getMainViewport();
ImGui.setNextWindowPos(viewport.getCenterX(), viewport.getCenterY(), ImGuiCond.Appearing, 0.5f, 0.5f);
ImBoolean open = new ImBoolean(true);
ImGui.setNextWindowSizeConstraints(250, 50, 5000, 5000);
int flags = ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoDocking | ImGuiWindowFlags.NoSavedSettings;
ImGui.openPopup("###ExportDone");
if (ImGui.beginPopupModal("Export Finished###ExportDone", open, flags)) {
ImGui.text("Export has successfully finished");
ImGui.endPopup();
}
if (!open.get()) {
exportDoneWindowOpen = false;
}
}
}