private static bool OnPlanetClick(UIStarmapPlanet planet) { self.StarList.value = planet.planet.star.index; self.StarList.RefreshShownValue(); self.PlanetList.value = planet.planet.index + 1; self.PlanetList.RefreshShownValue(); return(true); }
public bool SetPin(UIStarmapPlanet uiPlanet, PlanetData planet) { ModDebug.Assert(uiPlanet != null && planet != null); if (uiPlanet != null) { this.uiPlanet = uiPlanet; target.Set(planet); 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); }