1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Move formspec code from game.cpp to separate file

This commit is contained in:
cx384 2024-12-20 11:02:20 +01:00
parent d4ccc8de79
commit 83bc27d99d
6 changed files with 605 additions and 521 deletions

View file

@ -8,7 +8,6 @@
#include <gettext.h>
#include "gui/mainmenumanager.h"
#include "gui/guiChatConsole.h"
#include "gui/guiFormSpecMenu.h"
#include "gui/touchcontrols.h"
#include "util/enriched_string.h"
#include "util/pointedthing.h"
@ -319,17 +318,6 @@ void GameUI::toggleProfiler()
}
}
void GameUI::deleteFormspec()
{
if (m_formspec) {
m_formspec->drop();
m_formspec = nullptr;
}
m_formname.clear();
}
void GameUI::clearText()
{
if (m_guitext_chat) {