LuaAPI.wiki
changeset 1391 86bada04da8f
parent 1381 6695b6e1d39a
child 1398 704301f9bd1d
equal deleted inserted replaced
1390:815d9da643af 1391:86bada04da8f
  1189 
  1189 
  1190 The function takes a `x`,`y` location, a `width` (means start of a new line) and `erase` (if `false`, this function will draw normally, if `true`, this function will erase drawn stuff).
  1190 The function takes a `x`,`y` location, a `width` (means start of a new line) and `erase` (if `false`, this function will draw normally, if `true`, this function will erase drawn stuff).
  1191 
  1191 
  1192 This function must be called within `onGameInit`, where `MapGen` has been set to `mgDrawn`. You also should call `FlushPoints` when you are finished with drawing.
  1192 This function must be called within `onGameInit`, where `MapGen` has been set to `mgDrawn`. You also should call `FlushPoints` when you are finished with drawing.
  1193 
  1193 
       
  1194 See [LuaDrawning] for some examples.
       
  1195 
  1194 ==== <tt>!FlushPoints()</tt> ====
  1196 ==== <tt>!FlushPoints()</tt> ====
  1195 Makes sure that all the points/lines specified using `AddPoint` are actually applied to the map. This function must be called within `onGameInit`.
  1197 Makes sure that all the points/lines specified using `AddPoint` are actually applied to the map. This function must be called within `onGameInit`.
  1196 
  1198 
  1197 === Current hedgehog ===
  1199 === Current hedgehog ===
  1198 
  1200