From 373cee91c515a48bf7229f3e5b8359a64a49c1b7 Mon Sep 17 00:00:00 2001 From: gendelo3 Date: Sat, 4 Mar 2023 10:13:23 +0100 Subject: [PATCH] Fix merge issues. v4.3.0 --- TheOtherRoles/Modules/CustomOptions.cs | 37 -------------------------- TheOtherRoles/TheOtherRoles.csproj | 25 +---------------- TheOtherRoles/packages.lock.json | 6 ++--- 3 files changed, 4 insertions(+), 64 deletions(-) diff --git a/TheOtherRoles/Modules/CustomOptions.cs b/TheOtherRoles/Modules/CustomOptions.cs index a16f389..93615cc 100644 --- a/TheOtherRoles/Modules/CustomOptions.cs +++ b/TheOtherRoles/Modules/CustomOptions.cs @@ -547,43 +547,6 @@ namespace TheOtherRoles { } - private static void setListener(Dictionary settingsHighlightMap, int index) { - foreach (KeyValuePair entry in settingsHighlightMap) { - entry.Key.SetActive(false); - entry.Value.enabled = false; - } - settingsHighlightMap.ElementAt(index).Key.SetActive(true); - settingsHighlightMap.ElementAt(index).Value.enabled = true; - } - - private static void destroyOptions (List> optionBehavioursList) { - foreach (List optionBehaviours in optionBehavioursList) { - foreach (OptionBehaviour option in optionBehaviours) - UnityEngine.Object.Destroy(option.gameObject); - } - } - - private static bool setNames (Dictionary gameObjectNameDisplayNameMap) { - foreach (KeyValuePair entry in gameObjectNameDisplayNameMap) { - if (GameObject.Find(entry.Key) != null) { // Settings setup has already been performed, fixing the title of the tab and returning - GameObject.Find(entry.Key).transform.FindChild("GameGroup").FindChild("Text").GetComponent().SetText(entry.Value); - return true; - } - } - - setOptions( - new List{torMenu, hideNSeekMenu}, - new List> {torOptions, hideNSeekOptions}, - new List {torSettings, hideNSeekSettings} - ); - - torSettings.gameObject.SetActive(true); - torTabHighlight.enabled = true; - gameSettingMenu.RegularGameSettings.SetActive(false); - gameSettingMenu.GameSettingsHightlight.enabled = false; - } - - private static void setListener(Dictionary settingsHighlightMap, int index) { foreach (KeyValuePair entry in settingsHighlightMap) { entry.Key.SetActive(false); diff --git a/TheOtherRoles/TheOtherRoles.csproj b/TheOtherRoles/TheOtherRoles.csproj index eafa1f6..0e0b3b4 100644 --- a/TheOtherRoles/TheOtherRoles.csproj +++ b/TheOtherRoles/TheOtherRoles.csproj @@ -15,38 +15,15 @@ - - - - - - - - - - - - - - - - - - - + - - - - - diff --git a/TheOtherRoles/packages.lock.json b/TheOtherRoles/packages.lock.json index 654944b..eb054c7 100644 --- a/TheOtherRoles/packages.lock.json +++ b/TheOtherRoles/packages.lock.json @@ -4,9 +4,9 @@ "net6.0": { "AmongUs.GameLibs.Steam": { "type": "Direct", - "requested": "[2022.12.8, )", - "resolved": "2022.12.8", - "contentHash": "IJsIi89xUYRvA54YtNVEJjf25hhF3LWzkNBslKCNDUpL1aQ/PhNyO4j18pO71DCgW/qr1P1j8+CwByuBLsInNA==" + "requested": "[2023.2.28, )", + "resolved": "2023.2.28", + "contentHash": "GEcFs++dUrI+6Q+RTWvnm1a7l3Q/bUNNuCy9h8R17WISTOrV7g9QrZZmUiJka0JvVnj/J9Hygx5FaqApzFZKiQ==" }, "BepInEx.IL2CPP.MSBuild": { "type": "Direct", -- 2.39.5