Skip to content

Commit

Permalink
b85.1
Browse files Browse the repository at this point in the history
  • Loading branch information
innominata committed Aug 12, 2021
1 parent 8e4c7a4 commit 7591c8f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions GalacticScale2/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.85.0")]
[assembly: AssemblyFileVersion("2.0.85.0")]
[assembly: AssemblyVersion("2.0.85.1")]
[assembly: AssemblyFileVersion("2.0.85.1")]
2 changes: 1 addition & 1 deletion GalacticScale2/Scripts/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace GalacticScale
{
[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.0.85.0")]
[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.0.85.1")]
[BepInDependency("space.customizing.console", BepInDependency.DependencyFlags.SoftDependency)]
public class Bootstrap : BaseUnityPlugin
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public partial class GS2Generator2 : iConfigurableGenerator

public void Init()
{
Config.enableStarSelector = true;
AddUIElements();
InitPreferences();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ public class GSGeneratorConfig
private int _minStarCount = 1;
public bool DisableSeedInput;
public bool DisableStarCountSlider;

public bool enableStarSelector = false;
public GSGeneratorConfig(bool disableStarCountSlider = false, bool disableSeedInput = false,
int minStarCount = 1, int maxStarCount = 1024, int defaultStarCount = 1)
int minStarCount = 1, int maxStarCount = 1024, int defaultStarCount = 1, bool enableSelector = false)
{
DisableStarCountSlider = disableStarCountSlider;
DisableSeedInput = disableSeedInput;
MinStarCount = minStarCount;
MaxStarCount = maxStarCount;
DefaultStarCount = defaultStarCount;
enableStarSelector = enableSelector;
}

[SerializeField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,18 @@ public static bool _OnLateUpdate(ref UIVirtualStarmap __instance)
// GS2.Log("0");
if (pressing)
{
GS2.ActiveGenerator.Generate(GSSettings.StarCount, __instance.starPool[index1].starData);
__instance.galaxyData = GS2.ProcessGalaxy(GS2.gameDesc, true);
__instance.OnGalaxyDataReset();
// __instance.starPool[index2].nameText.text = __instance.starPool[index2].textContent + "\r\n" +
// __instance.clickText.Translate();
if (GS2.ActiveGenerator.Config.enableStarSelector)
{
GS2.ActiveGenerator.Generate(GSSettings.StarCount, __instance.starPool[index1].starData);
__instance.galaxyData = GS2.ProcessGalaxy(GS2.gameDesc, true);
__instance.OnGalaxyDataReset();
}
else
{
__instance.starPool[index2].nameText.text = __instance.starPool[index2].textContent + "\r\n" + __instance.clickText.Translate();
}


}

// GS2.Log(__instance.starPool[index1].starData.name + " - " +
Expand Down

0 comments on commit 7591c8f

Please sign in to comment.