aboutsummaryrefslogtreecommitdiff
path: root/minetest.conf.example
diff options
context:
space:
mode:
authorTeTpaAka <TeTpaAka@users.noreply.github.com>2015-05-15 21:46:56 +0200
committerkwolekr <kwolekr@minetest.net>2015-05-15 16:21:01 -0400
commit18c2f16c138f4b40b4705507b46d24e1518e4705 (patch)
tree2407edb6a3e367ae4875459a4a33e5608488a65a /minetest.conf.example
parent5d1d7c17ea234a01af3a16f31bc0e363ffd150ba (diff)
downloadminetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.gz
minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.bz2
minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.zip
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
Diffstat (limited to 'minetest.conf.example')
0 files changed, 0 insertions, 0 deletions
/span> but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "test.h" #include "client/gameui.h" class TestGameUI : public TestBase { public: 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