Show progress bar on hover

This commit is contained in:
Ruben Müller 2014-12-07 00:28:16 +01:00
parent 602d01a95e
commit 0fd6b91117

View file

@ -44,7 +44,7 @@ class Tile
if @entity if @entity
app.layer.drawRegion app.images.entities, @entity.sprite(), x*8, y*8 app.layer.drawRegion app.images.entities, @entity.sprite(), x*8, y*8
if (@entity and @entity.isMoveable()) if (@entity and @entity.isMoveable()) or @isActive
# Draw the status indicator. # Draw the status indicator.
app.layer.drawImage app.images.progress, x*8, y*8 app.layer.drawImage app.images.progress, x*8, y*8
numPercent = Math.floor((tileLayer.amount*6)/app.game.maxTileAmount) numPercent = Math.floor((tileLayer.amount*6)/app.game.maxTileAmount)