Remove method rewrite not needed anymore

This commit is contained in:
ZaneYork 2020-08-27 11:37:33 +08:00
parent d001d3b9a8
commit 46f4058da9
6 changed files with 1 additions and 79 deletions

View File

@ -1,12 +0,0 @@
using StardewValley.Menus;
namespace StardewModdingAPI.Framework.ModLoading.RewriteFacades
{
public class DialogueBoxMethods : DialogueBox
{
public DialogueBoxMethods(string dialogue)
: base(dialogue)
{
}
}
}

View File

@ -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)
{
}
}
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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");