static void Postfix(SGNavigationWidgetLeft __instance, SGShipMap ___shipMap, SGNavigationList ___locationList) { Mod.Log.Info?.Write($"SGNWL:I - entered with instanceType: {__instance.GetType()}."); ___shipMap.gameObject.SetActive(false); Vector3 startPos = ___locationList.transform.position; startPos.y += 200; ___locationList.transform.position = startPos; }
private static void QueueOrForceActivation(DropshipMenuType menuType, DropshipLocation location, SGNavigationWidgetLeft sgnwl, SimGameState sgs) { if (sgs.CameraController.betweenRoomTransitionTime == 0f && sgs.CameraController.inRoomTransitionTime == 0f) { // Check for a 0 animation time on SGRoomManager; if set, BTPerfFix is active and we need to force a transition Mod.Log.Info?.Write($"DEBUG - calling SetSubroom for location:{location} and menuType:{menuType}!"); sgs.RoomManager.ChangeRoom(location); sgs.RoomManager.SetSubRoom(location, menuType); } else { // Let the animation happen via the queued activation Mod.Log.Info?.Write("DEBUG - calling SetQueuedUIActivationID!"); sgnwl.SetQueuedUIActivationID(menuType, location); } }