]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/cpp_api/s_mainmenu.h
[CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)
[minetest.git] / src / script / cpp_api / s_mainmenu.h
index 6994b578befccb2199e9afe50382235bd2d26ad9..8d5895817e4bd251cf83879c5d1f83fd9d836366 100644 (file)
@@ -22,16 +22,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "cpp_api/s_base.h"
 #include "util/string.h"
+#include "../guiMainMenu.h"
 
-class ScriptApiMainMenu
-               : virtual public ScriptApiBase
-{
+class ScriptApiMainMenu : virtual public ScriptApiBase {
 public:
        /**
-        * set gamedata.errormessage to inform lua of an error
-        * @param errormessage the error message
+        * Hand over MainMenuDataForScript to lua to inform lua of the content
+        * @param data the data
         */
-       void setMainMenuErrorMessage(std::string errormessage);
+       void setMainMenuData(MainMenuDataForScript *data);
 
        /**
         * process events received from formspec