diff --git a/src/SMAPI/Framework/ModLoading/RewriteFacades/DialogueBoxMethods.cs b/src/SMAPI/Framework/ModLoading/RewriteFacades/DialogueBoxMethods.cs deleted file mode 100644 index 505b16a8..00000000 --- a/src/SMAPI/Framework/ModLoading/RewriteFacades/DialogueBoxMethods.cs +++ /dev/null @@ -1,12 +0,0 @@ -using StardewValley.Menus; - -namespace StardewModdingAPI.Framework.ModLoading.RewriteFacades -{ - public class DialogueBoxMethods : DialogueBox - { - public DialogueBoxMethods(string dialogue) - : base(dialogue) - { - } - } -} diff --git a/src/SMAPI/Framework/ModLoading/RewriteFacades/DiscreteColorPickerMethods.cs b/src/SMAPI/Framework/ModLoading/RewriteFacades/DiscreteColorPickerMethods.cs deleted file mode 100644 index 43cf64fd..00000000 --- a/src/SMAPI/Framework/ModLoading/RewriteFacades/DiscreteColorPickerMethods.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using StardewValley; -using StardewValley.Menus; - -namespace StardewModdingAPI.Framework.ModLoading.RewriteFacades -{ - public class DiscreteColorPickerMethods : DiscreteColorPicker - { - public DiscreteColorPickerMethods(int xPosition, int yPosition, int startingColor = 0, Item itemToDrawColored = null) - :base(xPosition, yPosition, startingColor, itemToDrawColored) - { - } - } -} diff --git a/src/SMAPI/Framework/ModLoading/RewriteFacades/HUDMessageMethods.cs b/src/SMAPI/Framework/ModLoading/RewriteFacades/HUDMessageMethods.cs deleted file mode 100644 index fdf8d0d0..00000000 --- a/src/SMAPI/Framework/ModLoading/RewriteFacades/HUDMessageMethods.cs +++ /dev/null @@ -1,18 +0,0 @@ -#if SMAPI_FOR_MOBILE -using System.Diagnostics.CodeAnalysis; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using StardewValley; - -namespace StardewModdingAPI.Framework.ModLoading.RewriteFacades -{ - public class HUDMessageMethods : HUDMessage - { - public HUDMessageMethods(string message, int whatType) - : base(message, whatType, -1) - { - } - - } -} -#endif diff --git a/src/SMAPI/Framework/ModLoading/RewriteFacades/MapPageMethods.cs b/src/SMAPI/Framework/ModLoading/RewriteFacades/MapPageMethods.cs deleted file mode 100644 index d62e7ce0..00000000 --- a/src/SMAPI/Framework/ModLoading/RewriteFacades/MapPageMethods.cs +++ /dev/null @@ -1,19 +0,0 @@ -#if SMAPI_FOR_MOBILE -using System.Diagnostics.CodeAnalysis; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using StardewValley; -using StardewValley.Menus; - -namespace StardewModdingAPI.Framework.ModLoading.RewriteFacades -{ - public class MapPageMethods : MapPage - { - public MapPageMethods(int x, int y, int width, int height) - : base(x, y, width, height, 1f, 1f) - { - } - - } -} -#endif diff --git a/src/SMAPI/Framework/ModLoading/RewriteFacades/TextBoxMethods.cs b/src/SMAPI/Framework/ModLoading/RewriteFacades/TextBoxMethods.cs index 07ee1525..8cbc50aa 100644 --- a/src/SMAPI/Framework/ModLoading/RewriteFacades/TextBoxMethods.cs +++ b/src/SMAPI/Framework/ModLoading/RewriteFacades/TextBoxMethods.cs @@ -1,13 +1,11 @@ #if SMAPI_FOR_MOBILE using System.Reflection; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; using StardewValley.Menus; #pragma warning disable 1591 // missing documentation namespace StardewModdingAPI.Framework.ModLoading.RewriteFacades { - public class TextBoxMethods : TextBox + public class TextBoxMethods { public static void SelectedSetter(TextBox textBox, bool value) { @@ -19,11 +17,6 @@ namespace StardewModdingAPI.Framework.ModLoading.RewriteFacades else textBox.Selected = value; } - - public TextBoxMethods(Texture2D textboxTexture, Texture2D caretTexture, SpriteFont font, Color textColor) - : base(textboxTexture, caretTexture, font, textColor, true, false) - { - } } } #endif diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs index cfdfae98..816da83e 100644 --- a/src/SMAPI/Metadata/InstructionMetadata.cs +++ b/src/SMAPI/Metadata/InstructionMetadata.cs @@ -94,18 +94,13 @@ namespace StardewModdingAPI.Metadata yield return new MethodParentRewriter(typeof(SaveGame), typeof(SaveGameMethods)); //Constructor Rewrites - yield return new MethodParentRewriter(typeof(HUDMessage), typeof(HUDMessageMethods)); - yield return new MethodParentRewriter(typeof(MapPage), typeof(MapPageMethods)); - yield return new MethodParentRewriter(typeof(TextBox), typeof(TextBoxMethods)); yield return new MethodParentRewriter(typeof(ItemGrabMenu), typeof(ItemGrabMenuMethods)); yield return new MethodParentRewriter(typeof(WeatherDebris), typeof(WeatherDebrisMethods)); yield return new MethodParentRewriter(typeof(Debris), typeof(DebrisMethods)); - yield return new MethodParentRewriter(typeof(DiscreteColorPicker), typeof(DiscreteColorPickerMethods)); yield return new MethodParentRewriter(typeof(InventoryMenu), typeof(InventoryMenuMethods)); yield return new MethodParentRewriter(typeof(MenuWithInventory), typeof(MenuWithInventoryMethods)); yield return new MethodParentRewriter(typeof(GameMenu), typeof(GameMenuMethods)); yield return new MethodParentRewriter(typeof(CraftingPageMobile), typeof(CraftingPageMobileMethods)); - yield return new MethodParentRewriter(typeof(DialogueBox), typeof(DialogueBoxMethods)); //Field Rewriters yield return new FieldReplaceRewriter(typeof(ItemGrabMenu), "context", "specialObject");