# HG changeset patch # User RedGrinner@gmail.com # Date 1316961161 0 # Node ID 547ac6a1d14ef547b9878142473c6bc3b450aeb7 # Parent c080c7eb96569d2d136c25e1589be3c48b2eaf68 Edited wiki page LuaAPI through web user interface. diff -r c080c7eb9656 -r 547ac6a1d14e LuaAPI.wiki --- a/LuaAPI.wiki Sun Sep 25 14:09:40 2011 +0000 +++ b/LuaAPI.wiki Sun Sep 25 14:32:41 2011 +0000 @@ -48,6 +48,9 @@ * <tt>!HealthDecrease = 5</tt> - amount of health decreased on sudden death * <tt>Map = "Bamboo"</tt> - the map being played * <tt>Theme = "Bamboo"</tt> - the theme to be used + * <tt>Ready= 5000</tt> - the ready timer at the start of the round + * <tt>MapGen</tt> + * <tt>TemplateFilter</tt> * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines If you want to add teams or hogs manually you have to do it here. @@ -99,6 +102,11 @@ <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here. </blockquote> +=== <tt>onScreenResize()</tt> === + +<blockquote>This function is called when you resize the screen. Useful place to put a redraw function for any vgtHealthTags you're using. +</blockquote> + === <tt>onAttack()</tt> === <blockquote>This function is called when your Hedgehog attacks.