forked from aedenthorn/StardewValleyMods
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31306b0
commit a18077a
Showing
15 changed files
with
397 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
using HarmonyLib; | ||
using Microsoft.Xna.Framework; | ||
using Microsoft.Xna.Framework.Graphics; | ||
using System; | ||
|
||
namespace TextureTweaks | ||
{ | ||
public partial class ModEntry | ||
{ | ||
[HarmonyPatch(typeof(SpriteBatch), nameof(SpriteBatch.Draw), new Type[] { typeof(Texture2D), typeof(Vector2), typeof(Rectangle?), typeof(Color) })] | ||
public class SpriteBatch_Draw_Patch_1 | ||
{ | ||
public static void Prefix(ref Texture2D texture, ref Rectangle? sourceRectangle, ref Color color) | ||
{ | ||
CheckTexture(ref texture, ref sourceRectangle, ref color); | ||
|
||
} | ||
} | ||
[HarmonyPatch(typeof(SpriteBatch), nameof(SpriteBatch.Draw), new Type[] { typeof(Texture2D), typeof(Rectangle), typeof(Rectangle?), typeof(Color) })] | ||
public class SpriteBatch_Draw_Patch_2 | ||
{ | ||
public static void Prefix(ref Texture2D texture, ref Rectangle? sourceRectangle, ref Color color) | ||
{ | ||
CheckTexture(ref texture, ref sourceRectangle, ref color); | ||
|
||
} | ||
} | ||
[HarmonyPatch(typeof(SpriteBatch), nameof(SpriteBatch.Draw), new Type[] { typeof(Texture2D), typeof(Rectangle), typeof(Rectangle?), typeof(Color), typeof(float), typeof(Vector2), typeof(SpriteEffects), typeof(float) })] | ||
public class SpriteBatch_Draw_Patch_3 | ||
{ | ||
public static void Prefix(ref Texture2D texture, ref Rectangle? sourceRectangle, ref Color color) | ||
{ | ||
CheckTexture(ref texture, ref sourceRectangle, ref color); | ||
|
||
} | ||
} | ||
[HarmonyPatch(typeof(SpriteBatch), nameof(SpriteBatch.Draw), new Type[] { typeof(Texture2D), typeof(Vector2), typeof(Rectangle?), typeof(Color), typeof(float), typeof(Vector2), typeof(Vector2), typeof(SpriteEffects), typeof(float) })] | ||
public class SpriteBatch_Draw_Patch_4 | ||
{ | ||
public static void Prefix(ref Texture2D texture, ref Rectangle? sourceRectangle, ref Color color, Vector2 scale) | ||
{ | ||
CheckScaledTexture(ref texture, ref sourceRectangle, ref color, ref scale); | ||
|
||
} | ||
} | ||
[HarmonyPatch(typeof(SpriteBatch), nameof(SpriteBatch.Draw), new Type[] { typeof(Texture2D), typeof(Vector2), typeof(Rectangle?), typeof(Color), typeof(float), typeof(Vector2), typeof(float), typeof(SpriteEffects), typeof(float) })] | ||
public class SpriteBatch_Draw_Patch_5 | ||
{ | ||
public static void Prefix(ref Texture2D texture, ref Rectangle? sourceRectangle, ref Color color, float scale) | ||
{ | ||
CheckScaledTexture(ref texture, ref sourceRectangle, ref color, ref scale); | ||
scale = 1; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.