Add a bunch of missing imgui close buttons

This commit is contained in:
PJB3005
2026-03-23 13:46:46 +01:00
parent d5786356e2
commit ff7a80c7b4
6 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -272,14 +272,14 @@ namespace dusk {
ImGuiSaveEditor::ImGuiSaveEditor() {}
void ImGuiSaveEditor::draw() {
void ImGuiSaveEditor::draw(bool& open) {
ImGuiIO& io = ImGui::GetIO();
ImGuiWindowFlags windowFlags = ImGuiWindowFlags_NoResize;
ImGui::SetNextWindowBgAlpha(0.65f);
ImGui::SetNextWindowSizeConstraints(ImVec2(600, 700), ImVec2(600, 700));
if (ImGui::Begin("Save Editor", nullptr, windowFlags)) {
if (ImGui::Begin("Save Editor", &open, windowFlags)) {
if (ImGui::BeginTabBar("SaveEditorTabBar", ImGuiTabBarFlags_NoCloseWithMiddleMouseButton)) {
if (ImGui::BeginTabItem("Player Status")) {
drawPlayerStatusTab();