Change mainmenu texture handling + small misc changes
authorKahrl <kahrl@gmx.net>
Tue, 20 Aug 2013 20:38:14 +0000 (22:38 +0200)
committerKahrl <kahrl@gmx.net>
Tue, 10 Sep 2013 22:08:56 +0000 (00:08 +0200)
commit3c4734d69a44aea133e5bd7df66a5dedb87785fb
treef3961c8855c0d864b672ae79857de9b993c3e95c
parentda9fe6485134ec81cc3628b1bc4847c3b2226c76
Change mainmenu texture handling + small misc changes

Texture names must now be escaped in formspec elements image[],
background[], image_button[], image_button_exit[].

Instead of special-case handling of texture loading (and unloading
which was missing) in guiFormSpecMenu.cpp, use the newly created
ISimpleTextureSource interface which is a minimal subset of
ITextureSource. There is an implementation of this interface
used by GUIEngine (MenuTextureSource).

Fix an off-by-one bug in unescape_string; it caused requests for a
texture called "\0".
builtin/gamemgr.lua
builtin/mainmenu.lua
builtin/mm_menubar.lua
builtin/modstore.lua
src/game.cpp
src/guiEngine.cpp
src/guiEngine.h
src/guiFormSpecMenu.cpp
src/guiFormSpecMenu.h
src/tile.h
src/util/string.h