mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 02:13:29 +08:00
add message popup on developer mode switch
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
26
CheatEnabler/package/README.md
Normal file
26
CheatEnabler/package/README.md
Normal 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.
|
||||
BIN
CheatEnabler/package/icon.png
Normal file
BIN
CheatEnabler/package/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
@@ -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"
|
||||
]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## [HideTips](HideTips)
|
||||
## HideTips
|
||||
|
||||
### Hide/Disable various in-game tips/messages
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
### Enable cheat functions as below
|
||||
|
||||
* Disable abnormal determinants (Disable all sanity checks, and can get achievements on using Console and DevShortcuts).
|
||||
* Shift+F4 to switch Developer Mode on/off (no message, tip or sounds on switch).
|
||||
* 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.
|
||||
|
||||
Reference in New Issue
Block a user