Add edDX12 support, added Save variables to file, added Load variables from file, added Restore variables to default, added a Restore button for each player variable, limited mod menu size, fixed menu crashing the game if in Fullscreen, fixed some Photo Mode issues

This commit is contained in:
EricPlayZ
2023-08-05 05:22:20 +03:00
parent 41503ab8be
commit 6f8e5b8045
40 changed files with 25482 additions and 221 deletions
+4 -2
View File
@@ -1,14 +1,17 @@
#include "..\ImGui\imgui.h"
#include <imgui.h>
#include "camera.h"
#include "player.h"
#include "world.h"
namespace Menu {
static const ImGuiWindowFlags windowFlags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize;
static const ImVec2 minWndSize = ImVec2(0.0f, 0.0f);
static const ImVec2 maxWndSize = ImVec2(700.0f, 675.0f);
bool isOpen = false;
void Render() {
ImGui::SetNextWindowSizeConstraints(minWndSize, maxWndSize);
ImGui::Begin("Game Overhaul", &Menu::isOpen, windowFlags); {
if (ImGui::BeginTabBar("##MainTabBar")) {
if (ImGui::BeginTabItem("Player")) {
@@ -25,7 +28,6 @@ namespace Menu {
}
ImGui::EndTabBar();
}
ImGui::Separator();
ImGui::End();
}
}