Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
[bugfix] disable redundant settings on hide n seek
Browse files Browse the repository at this point in the history
  • Loading branch information
GDjkhp committed Sep 30, 2023
1 parent e5f1c6f commit 2f7e736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gui/tabs/doors_tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

namespace DoorsTab {
void Render() {
if (IsInGame() && !State.mapDoors.empty()) {
GameOptions options;
if (IsInGame() && !State.mapDoors.empty() && options.GetGameMode() != GameModes__Enum::HideNSeek) {
if (ImGui::BeginTabItem("Doors")) {
ImGui::BeginChild("doors#list", ImVec2(200, 0) * State.dpiScale, true);
bool shouldEndListBox = ImGui::ListBoxHeader("###doors#list", ImVec2(200, 150) * State.dpiScale);
Expand Down
3 changes: 2 additions & 1 deletion gui/tabs/sabotage_tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

namespace SabotageTab {
void Render() {
if (IsInGame()) {
GameOptions options;
if (IsInGame() && options.GetGameMode() != GameModes__Enum::HideNSeek) {
if (ImGui::BeginTabItem("Sabotage")) {
ImGui::Dummy(ImVec2(4, 4) * State.dpiScale);
if (ImGui::Button("Repair Sabotage")) {
Expand Down

0 comments on commit 2f7e736

Please sign in to comment.