Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Jan 25, 2024
1 parent 2204e8a commit 8fb3f32
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/modules/Frontend.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <imgui.h>

#include "Frontend.h"
#include "game/Game.h"

void Frontend::OnMenu()
{
if (ImGui::BeginMenu("Frontend"))
{
if (ImGui::MenuItem("Hide HUD", nullptr, &m_hideHud))
{
auto gameTracker = Game::GetGameTracker();

if (m_hideHud)
{
gameTracker->debugFlags3 |= 0x8000;
}
else
{
gameTracker->debugFlags3 &= ~0x8000;
}
}

ImGui::EndMenu();
}
}
12 changes: 12 additions & 0 deletions src/modules/Frontend.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

#include "Module.h"

class Frontend : public Module
{
private:
bool m_hideHud = false;

public:
void OnMenu();
};

0 comments on commit 8fb3f32

Please sign in to comment.