Exemple #1
0
 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);
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
            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);
            }