X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgui%2FguiEngine.h;h=e55531bbca638c9c2f2f5b9331b0b3a8b817c9fb;hb=7c0e0c34ecb66e044f59cbab03a4c12fc7838e97;hp=817d7601440bd324d8bc93d4501dba1d64d0448f;hpb=20a85d76d94c9c5c7fbe198c3d0e1fbee97a485f;p=dragonfireclient.git diff --git a/src/gui/guiEngine.h b/src/gui/guiEngine.h index 817d76014..e55531bbc 100644 --- a/src/gui/guiEngine.h +++ b/src/gui/guiEngine.h @@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" #include "modalMenu.h" #include "guiFormSpecMenu.h" -#include "sound.h" +#include "client/sound.h" #include "client/tile.h" #include "util/enriched_string.h" @@ -221,6 +221,8 @@ class GUIEngine { /** script basefolder */ std::string m_scriptdir = ""; + void setFormspecPrepend(const std::string &fs); + /** * draw background layer * @param driver to use for drawing @@ -247,7 +249,7 @@ class GUIEngine { * @param layer draw layer to specify texture * @param texturepath full path of texture to load */ - bool setTexture(texture_layer layer, std::string texturepath, + bool setTexture(texture_layer layer, const std::string &texturepath, bool tile_image, unsigned int minsize); /** @@ -296,7 +298,7 @@ class GUIEngine { clouddata m_cloud; /** start playing a sound and return handle */ - s32 playSound(SimpleSoundSpec spec, bool looped); + s32 playSound(const SimpleSoundSpec &spec, bool looped); /** stop playing a sound started with playSound() */ void stopSound(s32 handle);