예제 #1
0
        public override void MouseOver(int tX, int tY)
        {
            int logic    = GetTileLogic(tX, tY);
            int itemIcon = dropItem;

            switch (logic)
            {
            case ItemID.PiggyBank:
                itemIcon = ItemID.PiggyBank; break;

            case ItemID.Safe:
                itemIcon = ItemID.Safe; break;

            case ItemID.GPS:
                itemIcon = ItemID.DepthMeter; break;
            }
            TileUtils.ShowItemIcon(tX, tY, itemIcon);
        }
예제 #2
0
 public override void MouseOver(int tX, int tY)
 {
     TileUtils.ShowItemIcon(tX, tY, GetItemTypeFromStyle(Main.tile[tX, tY].frameY));
 }
예제 #3
0
 public override void MouseOver(int tX, int tY)
 {
     TileUtils.ShowItemIcon(tX, tY, dropItem);
 }