void Update() { if (LokiUtils.IsDown(_shortcut.Value)) { hide = !hide; } }
static void DisableMinimapPostUpdate(Minimap __instance) { if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Null || Utils.GetMainCamera() == null) { return; } if (_allowToggle.Value && LokiUtils.IsDown(_toggleMinimap.Value)) { _disableMinimap = !_disableMinimap; // Ensure that we re-enable the small root if we toggle. if (!_disableMinimap) { __instance.m_smallRoot.SetActive(true); } } // Disable minimap if (_disableMinimap) { __instance.m_largeRoot.SetActive(false); __instance.m_smallRoot.SetActive(false); } }