1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 04:53:30 +08:00

add message popup on developer mode switch

This commit is contained in:
2022-09-06 22:11:53 +08:00
parent 7710b252cc
commit 1f20eb6333
6 changed files with 35 additions and 4 deletions

View File

@@ -60,7 +60,12 @@ public class CheatEnabler : BaseUnityPlugin
[HarmonyPatch(typeof(PlayerAction_Test), "GameTick")]
private static void PlayerAction_TestGameTick(PlayerAction_Test __instance)
{
var lastActive = __instance.active;
__instance.Update();
if (lastActive != __instance.active)
{
UIRealtimeTip.PopupAhead((lastActive ? "Developer Mode Shortcuts Disabled" : "Developer Mode Shortcuts Enabled").Translate(), false);
}
}
}

View File

@@ -0,0 +1,26 @@
## CheatEnabler
### Enable cheat functions as below
* Disable abnormal determinants (Disable all sanity checks, and can get achievements on using Console and Developer Mode shortcuts).
* Shift+F4 to switch Developer Mode on/off.
* Numpad 1: Gets all items and extends bag.
* Numpad 2: Boosts walk speed, gathering speed and mecha energy restoration.
* Numpad 3: Fills planet with foundations and bury all veins.
* Numpad 4: +1 construction drone.
* Numpad 5: Upgrades drone engine tech to full.
* Numpad 6: Unlocks researching tech.
* Numpad 7: Unlocks Drive Engine 1.
* Numpad 8: Unlocks Drive Engine 2 and maximize energy.
* Numpad 9: Unlocks ability to warp.
* Numpad 0: No costs for Logistic Storages' output.
* LCtrl + T: Unlocks all techs (not upgrades).
* LCtrl + A: Resets all local achievements.
* LCtrl + Q: Adds 10000 to every metadata.
* LCtrl + W: Enters Sandbox Mode.
* Numpad *: Proliferates items on hand.
* Numpad /: Removes proliferations from items on hand.
* PageDown: Remembers Pose of game camera.
* PageUp: Locks game camera using remembered Pose.
* Always infinite resource.
* Each function can be enabled individually in config file.

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View File

@@ -2,7 +2,7 @@
"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",
"description": "Add various cheat functions while disabling abnormal determinants",
"dependencies": [
"xiaoye97-BepInEx-5.4.17"
]