public static void OnClose_Postfix(UIStarmap __instance) { if (SimulatedWorld.Initialized) { SimulatedWorld.ClearPlayerNameTagsOnStarmap(); } }
public static void _OnLateUpdate_Postfix(UIStarmap __instance) { if (Multiplayer.IsActive) { Multiplayer.Session.World.RenderPlayerNameTagsOnStarmap(__instance); } }
public static void OnLateUpdate_Postfix(UIStarmap __instance) { if (SimulatedWorld.Initialized) { SimulatedWorld.RenderPlayerNameTagsOnStarmap(__instance); } }
private static void Postfix(UIStarmap __instance) { //if (!s_NavigateInstance.enable) // return; //Indicator 开关 if (!Input.GetKeyDown(KeyCode.LeftControl)) { return; } if (__instance.mouseHoverStar != null && __instance.mouseHoverStar.star != null) { __instance.focusStar = __instance.mouseHoverStar; __instance.focusPlanet = null; __instance.OnCursorFunction3Click(0); //s_NavigateInstance.target.SetTarget(__instance.mouseHoverStar.star); return; } if (__instance.mouseHoverPlanet != null && __instance.mouseHoverPlanet.planet != null) { __instance.focusPlanet = __instance.mouseHoverPlanet; __instance.focusStar = null; __instance.OnCursorFunction3Click(0); //s_NavigateInstance.target.SetTarget(__instance.mouseHoverPlanet.planet); return; } }
private static void Postfix(UIStarmap __instance, ref UIStarmapStar star) { if (ImmediateMode_Impl.isEnable) { if (__instance.viewStar == star.star) { return; } __instance.screenCameraController.SetViewTarget((PlanetData)null, star.star, (Player)null, VectorLF3.zero, (double)star.star.physicsRadius * 0.899999976158142 * 0.00025, (double)star.star.physicsRadius * (double)Mathf.Pow(star.star.radius * 0.4f, -0.4f) * 3.0 * 0.00025, true, true); } }
private static void Prefix(UIStarmap __instance) { PlayerNavigation navigation = GameMain.mainPlayer.navigation; if (__instance.focusPlanet != null && navigation.indicatorAstroId != __instance.focusPlanet.planet.id) { autoNav.target.SetTarget(__instance.focusPlanet.planet); } else if (__instance.focusStar != null && navigation.indicatorAstroId != __instance.focusStar.star.id * 100) { autoNav.target.SetTarget(__instance.focusStar.star); } }
public static bool SetPlanetName(UIStarmap __instance, string name) { ModDebug.Assert((__instance.mouseHoverPlanet != null && __instance.mouseHoverPlanet.planet != null)); if (__instance.mouseHoverPlanet != null && __instance.mouseHoverPlanet.planet != null) { __instance.mouseHoverPlanet.planet.overrideName = name; Traverse.Create((object)__instance.mouseHoverPlanet).Field("nameText").GetValue <Text>().text = name; return(true); } else { return(false); } }
private static void Prefix(UIStarmap __instance, ref UIStarmapPlanet planet) { if (!s_NavigateInstance.enable) { return; } if (planet == null || planet.planet == null) { return; } s_NavigateInstance.target.SetTarget(planet.planet); __instance.focusPlanet = planet; __instance.OnCursorFunction3Click(0); }
private static void Prefix(UIStarmap __instance, ref UIStarmapStar star) { if (!s_NavigateInstance.enable) { return; } if (star == null || star.star == null) { return; } s_NavigateInstance.target.SetTarget(star.star); __instance.focusStar = star; __instance.OnCursorFunction3Click(0); }
public void OnMouseHover(UIStarmap __instance) { if (isEnable) { if (__instance.mouseHoverStar) { SetHover(__instance.mouseHoverStar.star); } else if (__instance.mouseHoverPlanet) { SetHover(__instance.mouseHoverPlanet.planet); } else { Reset(); } } }
private static void Postfix(UIStarmap __instance) { self.isStarMapOpened = __instance.isFullOpened; ((DetailsPreview_Impl)mainFeatures["DetailsPreview"]).OnMouseHover(__instance); }
private static void Prefix(UIStarmap __instance) { ((DetailsPreview_Impl)mainFeatures["DetailsPreview"]).OnStarmapClose(); ((DisplayUnknown_Impl)mainFeatures["DisplayUnknown"]).OnStarmapClose(); }