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

[bugfix] disable redundant settings on hide n seek #592

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading