1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Add support for set_formspec_prepend in main menu (#8611)

This commit is contained in:
rubenwardy 2019-08-12 18:16:35 +01:00 committed by sfan5
parent a067d40454
commit 91114b562f
5 changed files with 31 additions and 1 deletions

View file

@ -389,6 +389,15 @@ void GUIEngine::cloudPostProcess()
}
}
/******************************************************************************/
void GUIEngine::setFormspecPrepend(const std::string &fs)
{
if (m_menu) {
m_menu->setFormspecPrepend(fs);
}
}
/******************************************************************************/
void GUIEngine::drawBackground(video::IVideoDriver *driver)
{
@ -610,4 +619,3 @@ unsigned int GUIEngine::queueAsync(const std::string &serialized_func,
{
return m_script->queueAsync(serialized_func, serialized_params);
}