Difference between revisions of "NML:Template"

From GRFSpecs
Jump to navigationJump to search
(content of nml r1625)
 
(Redirect to realsprites page)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  +
#REDIRECT [[NML:Realsprites]]
NML allows to define templates to avoid repetitive declaration of the same sprite alignment (e.g. when coding different train wagons of the same size). The may be used in any place where a real sprite would be used. Templates may also be nested. Parameters may be numbers or strings (for the filename).
 
 
 
template templatename([param [, param [, param...]]]) {
 
[[NML:Realsprites|list of realsprites]]
 
...
 
}
 
 
For an example see the [[NML:Spritegroup|spritegroup]].
 

Latest revision as of 00:23, 9 September 2011

Redirect to: