1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText

Other enhancements:
* C++ friendlyness for addStaticText() -> move to static StaticText::add()
This commit is contained in:
Loic Blot 2018-01-03 17:28:57 +01:00 committed by Loïc Blot
parent 0ebaed430a
commit 3a772e7ed6
8 changed files with 159 additions and 134 deletions

View file

@ -47,11 +47,14 @@ void TestGameUI::testInit()
gui.initFlags();
UASSERT(gui.getFlags().show_chat)
UASSERT(gui.getFlags().show_hud)
// @TODO verify if we can create non UI nulldevice to test this function
gui.init();
}
void TestGameUI::testFlagSetters()
{
GameUI gui;
GameUI gui{};
gui.showMinimap(true);
UASSERT(gui.getFlags().show_minimap);