From 2be6ad15744e7230030e0b48f775603d83ff14f7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 26 Oct 2016 20:35:48 -0400 Subject: choose correct references for platform automatically (#126) --- src/TrainerMod/TrainerMod.csproj | 50 ++++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 12 deletions(-) (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/TrainerMod.csproj b/src/TrainerMod/TrainerMod.csproj index a6955c68..77d1c9ef 100644 --- a/src/TrainerMod/TrainerMod.csproj +++ b/src/TrainerMod/TrainerMod.csproj @@ -52,20 +52,49 @@ C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley + + + + + False + + + False + + + $(GamePath)\Stardew Valley.exe + False + + + $(GamePath)\xTile.dll + False + False + + + + + + + $(GamePath)\MonoGame.Framework.dll + False + False + + + $(GamePath)\StardewValley.exe + False + + + $(GamePath)\xTile.dll + False + + + + - - False - - - False - ..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll True - - $(GamePath)\Stardew Valley.exe - @@ -74,9 +103,6 @@ - - $(GamePath)\xTile.dll - -- cgit From 9436920d91fddd36d5c208299c3fa24b29a909be Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 26 Oct 2016 21:15:34 -0400 Subject: remove broken and unused test code (#126) --- src/TrainerMod/TrainerMod.cs | 27 --------------------------- src/TrainerMod/TrainerMod.csproj | 4 +--- 2 files changed, 1 insertion(+), 30 deletions(-) (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs index da5365cb..92de9796 100644 --- a/src/TrainerMod/TrainerMod.cs +++ b/src/TrainerMod/TrainerMod.cs @@ -14,28 +14,6 @@ namespace TrainerMod { public class TrainerMod : Mod { - /* - public override string Name - { - get { return "Trainer Mod"; } - } - - public override string Authour - { - get { return "Zoryn Aaron"; } - } - - public override string Version - { - get { return "1.0"; } - } - - public override string Description - { - get { return "Registers several commands to use. Most commands are trainer-like in that they offer forms of cheating."; } - } - */ - public static int frozenTime; public static bool infHealth, infStamina, infMoney, freezeTime; @@ -758,11 +736,6 @@ namespace TrainerMod private static void RegisterNewItem(object sender, EventArgsCommand e) { -#if DEBUG - SObject s = SGame.PullModItemFromDict(0, true); - s.Stack = 999; - Game1.player.addItemToInventory(s); -#endif } } } \ No newline at end of file diff --git a/src/TrainerMod/TrainerMod.csproj b/src/TrainerMod/TrainerMod.csproj index 77d1c9ef..6844f1c1 100644 --- a/src/TrainerMod/TrainerMod.csproj +++ b/src/TrainerMod/TrainerMod.csproj @@ -20,7 +20,7 @@ full true ..\StardewModdingAPI\bin\Debug\Mods\TrainerMod\ - TRACE + DEBUG;TRACE prompt 4 x86 @@ -44,10 +44,8 @@ $(HOME)/GOG Games/Stardew Valley/game $(HOME)/.local/share/Steam/steamapps/common/Stardew Valley - $(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS - C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley -- cgit From 4e17de2f2c33a6ddda4952265f7866d407965653 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 26 Oct 2016 23:43:32 -0400 Subject: use simpler crossplatform window management (#126) --- src/TrainerMod/FodyWeavers.xml | 5 ----- src/TrainerMod/TrainerMod.cs | 13 ------------- src/TrainerMod/TrainerMod.csproj | 5 ----- 3 files changed, 23 deletions(-) delete mode 100644 src/TrainerMod/FodyWeavers.xml (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/FodyWeavers.xml b/src/TrainerMod/FodyWeavers.xml deleted file mode 100644 index dc708fcb..00000000 --- a/src/TrainerMod/FodyWeavers.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs index 92de9796..94fd823b 100644 --- a/src/TrainerMod/TrainerMod.cs +++ b/src/TrainerMod/TrainerMod.cs @@ -50,9 +50,6 @@ namespace TrainerMod { Command.RegisterCommand("types", "Lists all value types | types").CommandFired += types_CommandFired; - Command.RegisterCommand("hide", "Hides the game form | hide").CommandFired += hide_CommandFired; - Command.RegisterCommand("show", "Shows the game form | show").CommandFired += show_CommandFired; - Command.RegisterCommand("save", "Saves the game? Doesn't seem to work. | save").CommandFired += save_CommandFired; Command.RegisterCommand("load", "Shows the load screen | load").CommandFired += load_CommandFired; @@ -94,16 +91,6 @@ namespace TrainerMod Log.AsyncY($"[Int32: {int.MinValue} - {int.MaxValue}], [Int64: {long.MinValue} - {long.MaxValue}], [String: \"raw text\"], [Colour: r,g,b (EG: 128, 32, 255)]"); } - private static void hide_CommandFired(object sender, EventArgsCommand e) - { - Program.StardewInvoke(() => { Program.StardewForm.Hide(); }); - } - - private static void show_CommandFired(object sender, EventArgsCommand e) - { - Program.StardewInvoke(() => { Program.StardewForm.Show(); }); - } - private static void save_CommandFired(object sender, EventArgsCommand e) { SaveGame.Save(); diff --git a/src/TrainerMod/TrainerMod.csproj b/src/TrainerMod/TrainerMod.csproj index 6844f1c1..e5002ba4 100644 --- a/src/TrainerMod/TrainerMod.csproj +++ b/src/TrainerMod/TrainerMod.csproj @@ -95,9 +95,7 @@ - - @@ -119,9 +117,6 @@ - - - -- cgit