Skip to content

Commit

Permalink
Small Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CallOfCreator committed Sep 15, 2024
1 parent e8a6430 commit 39b3b7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Patches/LobbyViewSettingsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,19 @@ public static void ChangeTabPatch(LobbyViewSettingsPane __instance, StringNames
[HarmonyPostfix]
public static void SetTabPatch(LobbyViewSettingsPane __instance)
{
var MGButtonPassive = GameObject.Find("MGButton").GetComponent<PassiveButton>();

if (__instance.currentTab == (StringNames)ModGameOptionsMenu.TabIndex)
{
__instance.rolesTabButton.SelectButton(false);
__instance.taskTabButton.SelectButton(false);
MGButtonPassive.SelectButton(true);

DrawOptions(__instance);

DrawOptions(__instance);
}
else
{
MGButtonPassive.SelectButton(false);
}
}

Expand All @@ -90,6 +96,8 @@ public static void DrawOptions(LobbyViewSettingsPane instance)
float num = 1.44f;
float num2;

instance.gameModeText.text = "MG Settings";

foreach (var option in OptionItem.AllOptions)
{
if (option.IsHiddenOn(Options.CurrentGamemode)) continue;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## About the mod

More Gamemodes is the Among Us mod that addes new gamemodes. Only host need to have mod to work.<br>
Among Us version: 2024.8.13<br>
Among Us version: 2024.9.9<br>
Join to discord server: https://discord.gg/jJe5kPpbFJ

## Hotkeys
Expand Down

0 comments on commit 39b3b7f

Please sign in to comment.