LuaAPI.wiki
changeset 689 e919bdf895f7
parent 688 d9fc58ac04f2
child 691 30323b8a8830
equal deleted inserted replaced
688:d9fc58ac04f2 689:e919bdf895f7
   304 `msgParams` tells the set timer in seconds (i.e. `3` for the 3 seconds timer key).
   304 `msgParams` tells the set timer in seconds (i.e. `3` for the 3 seconds timer key).
   305 
   305 
   306 === <tt>onUpUp()</tt> ===
   306 === <tt>onUpUp()</tt> ===
   307 This function is called when you release the up key.
   307 This function is called when you release the up key.
   308 
   308 
   309 === <tt>onHogHide()</tt> (0.9.16) ===
   309 === <tt>onHogHide(gearUid)</tt> (0.9.16) ===
   310 This function is called when a hedgehog is hidden (removed from the map).
   310 This function is called when a hedgehog with the gear ID `gearUid` is hidden (removed from the map).
   311 
   311 
   312 === <tt>onHogRestore()</tt> (0.9.16) ===
   312 === <tt>onHogRestore(gearUid)</tt> (0.9.16) ===
   313 This function is called when a hedgehog is restored (unhidden).
   313 This function is called when a hedgehog with the specified gear ID `gearUid` is restored (unhidden).
   314 
   314 
   315 === <tt>onSpritePlacement(spriteId, centerX, centerY)</tt> (0.9.21) ===
   315 === <tt>onSpritePlacement(spriteId, centerX, centerY)</tt> (0.9.21) ===
   316 This function is called when a [Sprites Sprite] has been placed.
   316 This function is called when a [Sprites Sprite] has been placed.
   317 
   317 
   318 `spriteID` is the type of the sprite, you find a list at [Sprites Sprites]. `centerX` and `centerY` are the coordinates of the center of the sprite.
   318 `spriteID` is the type of the sprite, you find a list at [Sprites Sprites]. `centerX` and `centerY` are the coordinates of the center of the sprite.