mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-02-04 20:22:17 +08:00
Add skip prologue function to HideTips, as well as package infos for thunderstore.io
This commit is contained in:
9
CheatEnabler/package/manifest.json
Normal file
9
CheatEnabler/package/manifest.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "CheatEnabler",
|
||||||
|
"version_number": "1.0.0",
|
||||||
|
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/CheatEnabler",
|
||||||
|
"description": "Add various cheat functions with abnormal determinants disabled",
|
||||||
|
"dependencies": [
|
||||||
|
"xiaoye97-BepInEx-5.4.17"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@ public class HideTips : BaseUnityPlugin
|
|||||||
private static bool _noTutorialTips = true;
|
private static bool _noTutorialTips = true;
|
||||||
private static bool _noAchievementCardPopups = false;
|
private static bool _noAchievementCardPopups = false;
|
||||||
private static bool _noMilestoneCardPopups = true;
|
private static bool _noMilestoneCardPopups = true;
|
||||||
|
private static bool _skipPrologue = true;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
@@ -22,6 +23,7 @@ public class HideTips : BaseUnityPlugin
|
|||||||
_noTutorialTips = Config.Bind("General", "NoTutorialTips", _noTutorialTips, "Disable Tutorial Tips").Value;
|
_noTutorialTips = Config.Bind("General", "NoTutorialTips", _noTutorialTips, "Disable Tutorial Tips").Value;
|
||||||
_noAchievementCardPopups = Config.Bind("General", "NoAchievementCardPopups", _noAchievementCardPopups, "Disable Achievement Card Popups").Value;
|
_noAchievementCardPopups = Config.Bind("General", "NoAchievementCardPopups", _noAchievementCardPopups, "Disable Achievement Card Popups").Value;
|
||||||
_noMilestoneCardPopups = Config.Bind("General", "NoMilestoneCardPopups", _noMilestoneCardPopups, "Disable Milestone Card Popups").Value;
|
_noMilestoneCardPopups = Config.Bind("General", "NoMilestoneCardPopups", _noMilestoneCardPopups, "Disable Milestone Card Popups").Value;
|
||||||
|
_skipPrologue = Config.Bind("General", "SkipPrologue", _skipPrologue, "Skip prologue for new game").Value;
|
||||||
if (!_cfgEnabled) return;
|
if (!_cfgEnabled) return;
|
||||||
Harmony.CreateAndPatchAll(typeof(HideTips));
|
Harmony.CreateAndPatchAll(typeof(HideTips));
|
||||||
}
|
}
|
||||||
@@ -55,9 +57,19 @@ public class HideTips : BaseUnityPlugin
|
|||||||
return !_noAchievementCardPopups;
|
return !_noAchievementCardPopups;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPrefix] [HarmonyPatch(typeof(UIVariousPopupGroup), "CreateMilestonePopupCard")]
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(UIVariousPopupGroup), "CreateMilestonePopupCard")]
|
||||||
private static bool SkipMilestoneCardPopups()
|
private static bool SkipMilestoneCardPopups()
|
||||||
{
|
{
|
||||||
return !_noMilestoneCardPopups;
|
return !_noMilestoneCardPopups;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(DSPGame), "StartGame", typeof(GameDesc))]
|
||||||
|
private static bool OnStartGame(GameDesc _gameDesc)
|
||||||
|
{
|
||||||
|
if (!_skipPrologue) return true;
|
||||||
|
DSPGame.StartGameSkipPrologue(_gameDesc);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
7
HideTips/package/README.md
Normal file
7
HideTips/package/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## [HideTips](HideTips)
|
||||||
|
|
||||||
|
### Hide/Disable various in-game tips/messages
|
||||||
|
|
||||||
|
* Tips/messages that can be hidden: random-reminder, tutorial, achievement/milestone card.
|
||||||
|
* Skip prologue for new game.
|
||||||
|
* Each type of tips/messages is configurable individually.
|
||||||
BIN
HideTips/package/icon.png
Normal file
BIN
HideTips/package/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
9
HideTips/package/manifest.json
Normal file
9
HideTips/package/manifest.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "HideTips",
|
||||||
|
"version_number": "1.0.0",
|
||||||
|
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/HideTips",
|
||||||
|
"description": "Hide various types of tips/messages",
|
||||||
|
"dependencies": [
|
||||||
|
"xiaoye97-BepInEx-5.4.17"
|
||||||
|
]
|
||||||
|
}
|
||||||
9
LogisticMiner/package/manifest.json
Normal file
9
LogisticMiner/package/manifest.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "LogisticMiner",
|
||||||
|
"version_number": "0.1.0",
|
||||||
|
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/LogisticMiner",
|
||||||
|
"description": "Mine directly from ILS/PLS, inspired by PlanetMiner",
|
||||||
|
"dependencies": [
|
||||||
|
"xiaoye97-BepInEx-5.4.17"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -61,5 +61,6 @@
|
|||||||
### Hide/Disable various in-game tips/messages
|
### Hide/Disable various in-game tips/messages
|
||||||
|
|
||||||
* Tips/messages that can be hidden: random-reminder, tutorial, achievement/milestone card.
|
* Tips/messages that can be hidden: random-reminder, tutorial, achievement/milestone card.
|
||||||
* Each type of tips/messages can be configurable individually.
|
* Skip prologue for new game.
|
||||||
|
* Each type of tips/messages is configurable individually.
|
||||||
* For sanity check warning messages, please check [CheatEnabler](CheatEnabler)
|
* For sanity check warning messages, please check [CheatEnabler](CheatEnabler)
|
||||||
|
|||||||
Reference in New Issue
Block a user