mirror of
https://github.com/EricPlayZ/EGameTools.git
synced 2026-10-10 12:53:04 +08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user