Added "[sheet" to the texture special commands.
authorLuke Puchner-Hardman <x.lukk3.x@gmail.com>
Tue, 23 Sep 2014 12:39:34 +0000 (14:39 +0200)
committersfan5 <sfan5@live.de>
Mon, 2 Jan 2017 14:28:06 +0000 (15:28 +0100)
commit7057c196c442ff3484b53f48d940f4c9e0ffe23a
treeea6e57d1755253577e3eda6fe22280314d22fb87
parent523f0e8c5bce0cb58215dc1f9d027cf32394e3c3
Added "[sheet" to the texture special commands.

"[sheet:WxH:X,Y" assumes the base image is a tilesheet with W*H tiles
on it and crops to the tile at position X,Y.  Basically it works
like "[verticalframe" but in 2D.

For testing, I combined the four default_chest images into one.
doc/lua_api.txt
games/minimal/mods/default/init.lua
games/minimal/mods/default/textures/default_chest.png [new file with mode: 0644]
games/minimal/mods/default/textures/default_chest_front.png [deleted file]
games/minimal/mods/default/textures/default_chest_lock.png [deleted file]
games/minimal/mods/default/textures/default_chest_side.png [deleted file]
games/minimal/mods/default/textures/default_chest_top.png [deleted file]
src/client/tile.cpp