aboutsummaryrefslogtreecommitdiff
path: root/src/guiMainMenu.cpp
Commit message (Expand)AuthorAge
* New world removal GUI codePerttu Ahola2012-03-26
* Disable word wrap in vertical texts in main menuPerttu Ahola2012-03-18
* Do not clear address in main menu if starting a singleplayer game by double c...Perttu Ahola2012-03-18
* Tune main menuPerttu Ahola2012-03-15
* Create main menu tab "Settings" for client settingsPerttu Ahola2012-03-15
* Fix click areas of singleplayer checkboxesPerttu Ahola2012-03-15
* Add "simple singleplayer mode"; Fix a number of GUI thingsPerttu Ahola2012-03-15
* Save selected tabPerttu Ahola2012-03-15
* Menu tuning WIPPerttu Ahola2012-03-15
* Crude tab test in main menu (requires gui redesign for the additional tabs)Perttu Ahola2012-03-13
* Move keychange/connect main menu buttons a bitPerttu Ahola2012-03-13
* Add confirmation menu and make world deletion possible in GUIPerttu Ahola2012-03-13
* World creation button and dialog and functionalityPerttu Ahola2012-03-13
* Remove duplicate code in main menuPerttu Ahola2012-03-11
* Rename "Delete map" to "Delete world"Perttu Ahola2012-03-11
* World selection box in main menu (and random fixing)Perttu Ahola2012-03-11
* Tune main menu a bit and show version number in therePerttu Ahola2011-11-29
* Add option to set water opaque (mainly for stylistic choice)Perttu Ahola2011-11-03
* Add 3d cloud checkbox in main menu (and rename setting from enable_2d_clouds ...Perttu Ahola2011-11-02
* Header file tweaking; mainly for speedPerttu Ahola2011-10-12
* The password box in the mainmenu is focused if there is already a name and ad...JacobF2011-08-23
* Use wgettextGiuseppe Bilotta2011-08-02
* set locales to C because en_US not installed on some systems, only UTF-8 vers...Constantin Wenger2011-07-30
* fixed displaying "umlauts" (deutsch umlaute) and hopefully other non ASCII ch...Constantin Wenger2011-07-30
* changed some lines to fit the 80chars limitConstantin Wenger2011-07-22
* Restore "Leave address blank" positionGiuseppe Bilotta2011-07-21
* added gettext supportConstantin Wenger2011-07-20
* added new submenu for key assignmentteddydestodes2011-06-01
* Passwords - password entry at main menu, stored and checked by serverCiaran Gultnieks2011-05-20
* updated menu a bit, and some other small fixesPerttu Ahola2011-04-24
* Made the main menu a bit more unique lookingPerttu Ahola2011-04-24
* bug-fixin'Perttu Ahola2011-02-08
* Map deletion buttonPerttu Ahola2011-01-26
* OMG! Main Menu!Perttu Ahola2011-01-23
{ \ char utest_buf[1024]; \ snprintf(utest_buf, sizeof(utest_buf), fmt, __VA_ARGS__); \ rawstream << "Test assertion failed: " << utest_buf << std::endl \ << " at " << fs::GetFilenameFromPath(__FILE__) \ << ":" << __LINE__ << std::endl; \ throw TestFailedException(); \ } // Asserts the comparison specified by CMP is true, or fails the current unit test #define UASSERTCMP(T, CMP, actual, expected) { \ T a = (actual); \ T e = (expected); \ if (!(a CMP e)) { \ rawstream \ << "Test assertion failed: " << #actual << " " << #CMP << " " \ << #expected << std::endl \ << " at " << fs::GetFilenameFromPath(__FILE__) << ":" \ << __LINE__ << std::endl \ << " actual: " << a << std::endl << " expected: " \ << e << std::endl; \ throw TestFailedException(); \ } \ } #define UASSERTEQ(T, actual, expected) UASSERTCMP(T, ==, actual, expected) // UASSERTs that the specified exception occurs #define EXCEPTION_CHECK(EType, code) { \ bool exception_thrown = false; \ try { \ code; \ } catch (EType &e) { \ exception_thrown = true; \ } \ UASSERT(exception_thrown); \ } class IGameDef; class TestBase { public: bool testModule(IGameDef *gamedef); std::string getTestTempDirectory(); std::string getTestTempFile(); virtual void runTests(IGameDef *gamedef) = 0; virtual const char *getName() = 0; u32 num_tests_failed; u32 num_tests_run; private: std::string m_test_dir; }; class TestManager { public: static std::vector<TestBase *> &getTestModules() { static std::vector<TestBase *> m_modules_to_test; return m_modules_to_test; } static void registerTestModule(TestBase *module) { getTestModules().push_back(module); } }; // A few item and node definitions for those tests that need them extern content_t t_CONTENT_STONE; extern content_t t_CONTENT_GRASS; extern content_t t_CONTENT_TORCH; extern content_t t_CONTENT_WATER; extern content_t t_CONTENT_LAVA; extern content_t t_CONTENT_BRICK; bool run_tests();