1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Replace all actual uses of irrlicht CGUIStaticText with our StaticText

This commit is contained in:
Desour 2023-08-09 01:58:07 +02:00 committed by sfan5
parent d75c956dbc
commit 7e7aceb8c1
4 changed files with 16 additions and 15 deletions

View file

@ -37,6 +37,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "gettext.h"
#include "filesys.h"
#include "../gui/guiSkin.h"
#include "irrlicht_changes/static_text.h"
#include "irr_ptr.h"
RenderingEngine *RenderingEngine::s_singleton = nullptr;
@ -235,7 +236,7 @@ void RenderingEngine::draw_load_screen(const std::wstring &text,
core::rect<s32> textrect(center - textsize / 2, center + textsize / 2);
gui::IGUIStaticText *guitext =
guienv->addStaticText(text.c_str(), textrect, false, false);
gui::StaticText::add(guienv, text, textrect, false, false);
guitext->setTextAlignment(gui::EGUIA_CENTER, gui::EGUIA_UPPERLEFT);
if (sky && g_settings->getBool("menu_clouds")) {