mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Get rid of guiroot
The guienvironment already provides a root gui element, we don't need to add another one. (For CGUIEnvironment, the env itself is the root element.)
This commit is contained in:
parent
7e7aceb8c1
commit
45e7a80057
5 changed files with 12 additions and 18 deletions
|
@ -53,6 +53,8 @@ GameUI::GameUI()
|
|||
}
|
||||
void GameUI::init()
|
||||
{
|
||||
IGUIElement *guiroot = guienv->getRootGUIElement();
|
||||
|
||||
// First line of debug text
|
||||
m_guitext = gui::StaticText::add(guienv, utf8_to_wide(PROJECT_NAME_C).c_str(),
|
||||
core::rect<s32>(0, 0, 0, 0), false, true, guiroot);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue