aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/README.txt
Commit message (Expand)AuthorAge
* Add getter/setter for routingcode in LuaATCorwell962019-01-15
* Add Note regarding pcnaming and interlocking signalsorwell962018-11-20
* Make "Line" property accessible from OBC and gettable via LATC, change subway...orwell962018-11-20
* Address H#60, H#17, M#18 and M#7orwell962018-10-17
* Add LuaAutomation interface functions for interlocking routesetting and aspec...orwell962018-08-24
* (Note added, merge in next commit)orwell962018-08-24
* Correct some documentationorwell962018-06-14
* Add digiline interface and is_passive function to LuaATCorwell962018-04-25
* Add missing documentation for set_lineorwell962017-10-25
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20
ass="hl pps">"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{}; 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{}; 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"); }