Exemplo n.º 1
0
 public static bool perfWaterAction(IridiumWaterCan w, int damage, Vector2 tileLocation, GameLocation location, HoeDirt joeDirte)
 {
     if (w != null)
     {
         joeDirte.state = 1;
     }
     return(false);
 }
Exemplo n.º 2
0
 public static void toolDrawInMenu(SpriteBatch spriteBatch, Vector2 location, float scaleSize, float transparency, float layerDepth, bool drawStackNumber, IridiumWaterCan w)
 {
     spriteBatch.Draw(Game1.toolSpriteSheet, location + new Vector2((float)(Game1.tileSize / 2), (float)(Game1.tileSize / 2)), new Rectangle?(Game1.getSquareSourceRectForNonStandardTileSheet(Game1.toolSpriteSheet, Game1.tileSize / 4, Game1.tileSize / 4, w.indexOfMenuItemView)), Color.White * transparency, 0.0f, new Vector2((float)(Game1.tileSize / 4 / 2), (float)(Game1.tileSize / 4 / 2)), (float)Game1.pixelZoom * scaleSize, SpriteEffects.None, layerDepth);
     if (!w.stackable)
     {
         return;
     }
     Game1.drawWithBorder(string.Concat((object)((Stackable)(Tool)w).NumberInStack), Color.Black, Color.White, location + new Vector2((float)Game1.tileSize - Game1.dialogueFont.MeasureString(string.Concat((object)((Stackable)(Tool)w).NumberInStack)).X, (float)Game1.tileSize - (float)((double)Game1.dialogueFont.MeasureString(string.Concat((object)((Stackable)(Tool)w).NumberInStack)).Y * 3.0 / 4.0)), 0.0f, 0.5f, 1f);
 }