aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testnodes/textures/testnodes_4wg.png
diff options
context:
space:
mode:
authorMaksim Gamarnik <MoNTE48@mail.ua>2020-10-22 11:19:10 +0000
committersfan5 <sfan5@live.de>2021-01-30 21:06:14 +0100
commit1c46ab6d691a3ff19ca682d3e42af01de5ddf2a9 (patch)
treef8590b67ab14cfc57a508972c7896ab016dddcfe /games/devtest/mods/testnodes/textures/testnodes_4wg.png
parent696db40ec3a8c75164356a9037c9dfab93ba7a71 (diff)
downloadminetest-1c46ab6d691a3ff19ca682d3e42af01de5ddf2a9.tar.gz
minetest-1c46ab6d691a3ff19ca682d3e42af01de5ddf2a9.tar.bz2
minetest-1c46ab6d691a3ff19ca682d3e42af01de5ddf2a9.zip
Translated using Weblate (Russian)
Currently translated at 99.9% (1349 of 1350 strings)
Diffstat (limited to 'games/devtest/mods/testnodes/textures/testnodes_4wg.png')
0 files changed, 0 insertions, 0 deletions
an> TestGameUI() { TestManager::registerTestModule(this); } const char *getName() { return "TestGameUI"; } void runTests(IGameDef *gamedef); void testInit(); void testFlagSetters(); void testInfoText(); void testStatusText(); }; static TestGameUI g_test_instance; void TestGameUI::runTests(IGameDef *gamedef) { TEST(testInit); TEST(testFlagSetters); TEST(testInfoText); TEST(testStatusText); } void TestGameUI::testInit() { GameUI gui{}; // Ensure flags on GameUI init UASSERT(gui.getFlags().show_chat) UASSERT(gui.getFlags().show_hud) UASSERT(!gui.getFlags().show_minimap) UASSERT(!gui.getFlags().show_profiler_graph) // And after the initFlags init stage gui.initFlags(); UASSERT(gui.getFlags().show_chat) UASSERT(gui.getFlags().show_hud) UASSERT(!gui.getFlags().show_minimap) UASSERT(!gui.getFlags().show_profiler_graph) // @TODO verify if we can create non UI nulldevice to test this function // gui.init(); } void TestGameUI::testFlagSetters() { GameUI gui{}; gui.showMinimap(true); UASSERT(gui.getFlags().show_minimap); gui.showMinimap(false); UASSERT(!gui.getFlags().show_minimap); } void TestGameUI::testStatusText() { GameUI gui{}; gui.showStatusText(L"test status"); UASSERT(gui.m_statustext_time == 0.0f); UASSERT(gui.m_statustext == L"test status"); } void TestGameUI::testInfoText() { GameUI gui{}; gui.setInfoText(L"test info"); UASSERT(gui.m_infotext == L"test info"); }