Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
innominata committed Aug 12, 2021
1 parent 957b3ff commit 1b809c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static GSPlanet BirthPlanet
if (StarCount > 0 && PlanetCount > 0) return Stars[0].Planets[0];

GS2.Error("Could not find birthplanet as there are no stars or planets.");
GS2.AbortGameStart("Could not find birthplanet as there are no stars or planets.");
GS2.AbortGameStart("Could not find birthplanet as there are no stars or planets.".Translate());
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static bool _OnLateUpdate(ref UIVirtualStarmap __instance)
// __instance.starPool[index2].starData.name);
var sd = __instance.starPool[index2]?.starData;
// GS2.Log("1");
if (__instance.starPool[index2]?.nameText?.text != null) __instance.starPool[index2].nameText.text = $"{__instance.starPool[index2].textContent}\r\nGas Giants:{Utils.GetStarDataGasCount(sd)}\r\nPlanets:{Utils.GetStarDataTelluricCount(sd)}\n\nMoons:{Utils.GetStarDataMoonCount(sd)}";
if (__instance.starPool[index2]?.nameText?.text != null) __instance.starPool[index2].nameText.text = $"{__instance.starPool[index2].textContent}\r\n{"Gas Giants".Translate()}:{Utils.GetStarDataGasCount(sd)}\r\n{"Planets".Translate()}:{Utils.GetStarDataTelluricCount(sd)}\n\n{"Moons".Translate()}:{Utils.GetStarDataMoonCount(sd)}";
// GS2.Log("2");
// GS2.Log($"{sd?.planetCount}");
__instance.starPool[index2].nameText.rectTransform.sizeDelta = new Vector2(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private static void GeneratorCallback(Val result)
private void ExportJsonGalaxy(Val o)
{
var outputDir = Path.Combine(GS2.DataDir, "CustomGalaxies");
var path = Path.Combine(outputDir, Preferences.GetString("Export Filename", "My First Galaxy") + ".json");
var path = Path.Combine(outputDir, Preferences.GetString("Export Filename", "My First Galaxy".Translate()) + ".json");

if (!Directory.Exists(outputDir)) Directory.CreateDirectory(outputDir);
if (GameMain.isPaused)
Expand Down

0 comments on commit 1b809c0

Please sign in to comment.