1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 15:12:17 +08:00

UXAssist v1.0.2, UniverseGenTweaks v1.2.1, CheatEnabler v2.3.4

This commit is contained in:
2023-10-22 15:46:06 +08:00
parent 4635d70faa
commit 3d16baaa9a
20 changed files with 393 additions and 138 deletions

View File

@@ -4,6 +4,8 @@
#### 宇宙生成参数调节
## Changelog
* 1.2.1
+ Use new tab layout of UXAssist 1.0.2
* 1.2.0
+ Depends on [UXAssist](https://dsp.thunderstore.io/package/soarqin/UXAssist/) now.
+ Add `Birth star` options
@@ -18,8 +20,8 @@
## Features
* Depends on [UXAssist](https://dsp.thunderstore.io/package/soarqin/UXAssist/), all tabs around with '+' are options for this mod.
* More options on universe generation
* Can set maximum star count(128 by default, up to 1024) in config file.
+ Note: there is performance issue on galaxy view with large amount of stars.
+ Can set maximum star count(128 by default, up to 1024) in config file.
- Note: there is performance issue on galaxy view with large amount of stars.
* Epic difficulty
* 0.01x resources and 0.25x oils (very hard difficulty has 0.5x oils).
* Same oil mining speed as very hard difficuly
@@ -29,6 +31,8 @@
* High luminosity for birth star
## 更新日志
* 1.2.1
+ 使用UXAssist 1.0.2的新页签布局
* 1.2.0
+ 现在依赖于[UXAssist](https://dsp.thunderstore.io/package/soarqin/UXAssist/)
+ 增加`母星系`选项
@@ -43,8 +47,8 @@
## 功能
* 依赖于[UXAssist](https://dsp.thunderstore.io/package/soarqin/UXAssist/),所有带有'+'的页签都是本mod的选项
* 生成宇宙时提供更多选项
* 可以在配置文件中设置最大恒星数(默认128, 最多1024)
+ 注意: 大量恒星会导致宇宙视图出现性能问题
+可以在配置文件中设置最大恒星数(默认128, 最多1024)
- 注意: 大量恒星会导致宇宙视图出现性能问题
* 史诗难度
* 资源0.01倍油井储量0.25倍(极难是0.5倍)
* 采油速度和极难相同

View File

@@ -10,7 +10,8 @@ public static class UIConfigWindow
public static void Init()
{
I18N.Add("GalaxyGen", "+UniverseGen+", "+宇宙生成+");
I18N.Add("UniverseGen", "UniverseGen", "宇宙生成");
I18N.Add("Birth Star", "Birth Star", "母星系");
I18N.Add("Enable more settings on UniverseGen", "Enable more settings on UniverseGen", "启用更多宇宙生成设置");
I18N.Add("* Requires game restart to take effect", "* Requires game restart to take effect", "* 需要重启游戏才能生效");
I18N.Add("Maximum star count", "Maximum star count", "最大恒星数");
@@ -37,32 +38,34 @@ public static class UIConfigWindow
// General tab
var x = 0f;
var y = 10f;
var tab = wnd.AddTab(_windowTrans, "GalaxyGen");
MyCheckBox.CreateCheckBox(x, y, tab, MoreSettings.Enabled, "Enable more settings on UniverseGen");
wnd.AddSplitter(trans, 10f);
wnd.AddTabGroup(trans, "UniverseGen", "tab-group-galaxygen");
var tab1 = wnd.AddTab(_windowTrans, "General");
MyCheckBox.CreateCheckBox(x, y, tab1, MoreSettings.Enabled, "Enable more settings on UniverseGen");
x += 20f;
y += 26f;
MyWindow.AddText(x, y, tab, "* Requires game restart to take effect", 13);
MyWindow.AddText(x, y, tab1, "* Requires game restart to take effect", 13);
x -= 20f;
y += 36f;
x += 10f;
MyWindow.AddText(x, y, tab, "Maximum star count", 16);
MyWindow.AddText(x, y, tab1, "Maximum star count", 16);
x += 20f;
y += 26f;
var sl0 = MySlider.CreateSlider(x, y, tab, MoreSettings.MaxStarCount.Value, 64f, 1024f, "G", 240f);
var sl0 = MySlider.CreateSlider(x, y, tab1, MoreSettings.MaxStarCount.Value, 64f, 1024f, "G", 240f);
sl0.OnValueChanged += () =>
{
sl0.Value = MoreSettings.MaxStarCount.Value = (Mathf.RoundToInt(sl0.Value) + 7) & ~7;
};
x -= 30f;
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, EpicDifficulty.Enabled, "Enable Epic difficulty");
MyCheckBox.CreateCheckBox(x, y, tab1, EpicDifficulty.Enabled, "Enable Epic difficulty");
y += 36f;
x += 10f;
MyWindow.AddText(x, y, tab, "Resource multiplier", 16);
MyWindow.AddText(x, y, tab1, "Resource multiplier", 16);
x += 20f;
y += 26f;
var index = EpicDifficulty.ResourceMultiplierToIndex(EpicDifficulty.ResourceMultiplier.Value);
var sl1 = MySlider.CreateSlider(x, y, tab, index, 0f, (float)EpicDifficulty.ResourceMultipliersCount() - 1, "G", 240f);
var sl1 = MySlider.CreateSlider(x, y, tab1, index, 0f, (float)EpicDifficulty.ResourceMultipliersCount() - 1, "G", 240f);
sl1.SetLabelText(EpicDifficulty.IndexToResourceMultiplier(Mathf.RoundToInt(sl1.Value)).ToString(sl1.labelFormat));
sl1.OnValueChanged += () =>
{
@@ -73,11 +76,11 @@ public static class UIConfigWindow
x -= 30f;
y += 31f;
x += 10f;
MyWindow.AddText(x, y, tab, "Oil multiplier (relative to Very Hard)", 16);
MyWindow.AddText(x, y, tab1, "Oil multiplier (relative to Very Hard)", 16);
x += 20f;
y += 26f;
index = EpicDifficulty.OilMultiplierToIndex(EpicDifficulty.OilMultiplier.Value);
var sl2 = MySlider.CreateSlider(x, y, tab, index, 0f, (float)EpicDifficulty.OilMultipliersCount() - 1, "G", 240f);
var sl2 = MySlider.CreateSlider(x, y, tab1, index, 0f, (float)EpicDifficulty.OilMultipliersCount() - 1, "G", 240f);
sl2.SetLabelText(EpicDifficulty.IndexToOilMultiplier(Mathf.RoundToInt(sl2.Value)).ToString(sl2.labelFormat));
sl2.OnValueChanged += () =>
{
@@ -85,26 +88,28 @@ public static class UIConfigWindow
EpicDifficulty.OilMultiplier.Value = val;
sl2.SetLabelText(val.ToString(sl2.labelFormat));
};
var tab2 = wnd.AddTab(_windowTrans, "Birth Star");
x = 0f;
y = 10f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.SitiVeinsOnBirthPlanet, "Silicon/Titanium on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.FireIceOnBirthPlanet, "Fire ice on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.KimberliteOnBirthPlanet, "Kimberlite on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.FractalOnBirthPlanet, "Fractal silicon on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.OrganicOnBirthPlanet, "Organic crystal on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.OpticalOnBirthPlanet, "Optical grating crystal on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.SpiniformOnBirthPlanet, "Spiniform stalagmite crystal on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.UnipolarOnBirthPlanet, "Unipolar magnet on birth planet");
x = 300f;
y = 10f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.SitiVeinsOnBirthPlanet, "Silicon/Titanium on birth planet");
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.FlatBirthPlanet, "Birth planet is solid flat (no water at all)");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.FireIceOnBirthPlanet, "Fire ice on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.KimberliteOnBirthPlanet, "Kimberlite on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.FractalOnBirthPlanet, "Fractal silicon on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.OrganicOnBirthPlanet, "Organic crystal on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.OpticalOnBirthPlanet, "Optical grating crystal on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.SpiniformOnBirthPlanet, "Spiniform stalagmite crystal on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.UnipolarOnBirthPlanet, "Unipolar magnet on birth planet");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.FlatBirthPlanet, "Birth planet is solid flat (no water at all)");
y += 36f;
MyCheckBox.CreateCheckBox(x, y, tab, BirthPlanetPatch.HighLuminosityBirthStar, "Birth star has high luminosity");
MyCheckBox.CreateCheckBox(x, y, tab2, BirthPlanetPatch.HighLuminosityBirthStar, "Birth star has high luminosity");
}
}

View File

@@ -6,7 +6,7 @@
<AssemblyName>UniverseGenTweaks</AssemblyName>
<BepInExPluginGuid>org.soardev.universegentweaks</BepInExPluginGuid>
<Description>DSP MOD - UniverseGenTweaks</Description>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
</PropertyGroup>

View File

@@ -1,10 +1,10 @@
{
"name": "UniverseGenTweaks",
"version_number": "1.2.0",
"version_number": "1.2.1",
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/UniverseGenTweaks",
"description": "Universe Generation Tweaks / 宇宙生成参数调节",
"dependencies": [
"xiaoye97-BepInEx-5.4.17",
"soarqin-UXAssist-1.0.0"
"soarqin-UXAssist-1.0.2"
]
}