Example #1
0
        private static bool DrawPrefix4(SpriteBatch __instance, Texture2D texture, Vector2 position, Rectangle?sourceRectangle, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
        {
            DrawingInfo info = new DrawingInfo(__instance, texture, sourceRectangle, position, color, origin, rotation, effects, layerDepth);

            info.SetScale(scale);
            return(!DrawingDelegator.DrawReplaced(info));
        }
Example #2
0
 private static bool DrawPrefix2(SpriteBatch __instance, Texture2D texture, Vector2 position, Rectangle?sourceRectangle, Color color)
 {
     return(!DrawingDelegator.DrawReplaced(new DrawingInfo(__instance, texture, sourceRectangle, position, color, Vector2.Zero, 0, SpriteEffects.None, 0)));
 }
Example #3
0
 private static bool DrawPrefix7(SpriteBatch __instance, Texture2D texture, Rectangle destinationRectangle, Rectangle?sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
 {
     return(!DrawingDelegator.DrawReplaced(new DrawingInfo(__instance, texture, sourceRectangle, destinationRectangle, color, origin, rotation, effects, layerDepth)));
 }
Example #4
0
 private static bool DrawPrefix5(SpriteBatch __instance, Texture2D texture, Rectangle destinationRectangle, Color color)
 {
     return(!DrawingDelegator.DrawReplaced(new DrawingInfo(__instance, texture, null, destinationRectangle, color, Vector2.Zero, 0, SpriteEffects.None, 0)));
 }