aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mainmenu.cpp
AgeCommit message (Collapse)Author
2022-01-30Use virtual paths to specify exact mod to enable (#11784)rubenwardy
2022-01-09Mainmenu game-related changes (#11887)sfan5
fixes: * Switching between games does not immediately hide creative mode / damage buttons if so specified * World creation menu has a game selection list even though the menu already provides a gamebar * Showing gameid in world list is unnecessary * Choice of mapgen parameters in menu persists between games (and was half-broken)
2021-10-07Move instead of copy during content install if possiblesfan5
2021-10-07Move archive extraction in content store to async jobsfan5
2021-10-07Make fs::extractZipFile thread-safesfan5
2021-10-07Add "MINETEST_MOD_PATH" environment variable (#11515)emixa-d
This adds an environment variable MINETEST_MOD_PATH. When it exists, Minetest will look there for mods in addition to ~/.minetest/mods/.
2021-08-28Async-related script cleanupssfan5
2021-07-11Refactor video driver name retrieval (#11413)hecks
Co-authored-by: hecktest <>
2021-06-16Drop --videomodes, fullscreen_bpp and high_precision_fpu settingssfan5
These have been pointless for a while.
2021-05-06fix: extractZipFile is not part of Client but more generic.Loic Blot
This solve a crash from mainmenu while extracting the zip
2021-05-03refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot
2021-05-03refacto: RenderingEngine is now better hiddenLoic Blot
* No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped) * RenderingEngine::get_timer_time is now non static * RenderingEngine::draw_menu_scene is now non static * RenderingEngine::draw_scene is now non static * RenderingEngine::{initialize,finalize} are now non static * RenderingEngine::run is now non static * RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access
2021-05-03refacto: rendering engine singleton removal step 1 (filesystem)Loic Blot
Make the RenderingEngine filesystem member non accessible from everywhere This permits also to determine that some lua code has directly a logic to extract zip file. Move this logic inside client, it's not the lua stack role to perform a such complex operation Found also another irrlicht <1.8 compat code to remove
2021-04-09Fix server favorites not saving when client/serverlist/ doesn't exist ↵sfan5
already (#11152)
2021-03-30Consistent title bar + render information in mainmenu (#10764)SmallJoker
2021-02-07Use consistent temp folder path (#10892)rubenwardy
2021-01-22Use JSON for favorites, move server list code to Lua (#10085)rubenwardy
Co-authored-by: sfan5 <sfan5@live.de>
2021-01-04ContentDB: Add overwrite dialog when content is already installed (#10768)rubenwardy
2020-12-19Add open user data button to main menu (#10579)rubenwardy
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
2020-07-28Sanitize world directory names on create. Keep original name separate (#9432)Hugues Ross
Blacklisted characters are replaced by '_' in the path. The display name is stored in world.mt, and duplicate file names are resolved by adding an incrementing suffix (_1, _2, _3, etc).
2020-05-17Add core.open_url() to main menu API (#8592)rubenwardy
2020-05-01Give the online lua mainmenu also the client_list and mods (#8691)Lejo
2020-04-11Formspecs: Add state-selection to style elements (#9378)Hugues Ross
2019-08-12Add support for set_formspec_prepend in main menu (#8611)rubenwardy
2019-03-05Hide uninstall package button on unmodifiable paths (#8255)rubenwardy
2019-02-14Fix extract zip writing lowercase files (#8221)rubenwardy
2019-01-31Content store: Fix storage leak by storing screenshots in cache (#8137)rubenwardy
2019-01-26Fix pkgmgr game install with RUN_IN_PLACE=0 (#8113)Paul Ouellette
2019-01-06Fix various bugs (Anticheat, Lua helpers) (#8013)SmallJoker
* Fix various bugs (Anticheat, Lua helpers) Anticheat: Use camera position instead of player position for shoot line calculations Lua helpers: Increase 'i' to not overwrite earlier added table values * Remove lag compensation * * 1.5 for larger selection boxes
2018-12-11Fix ContentDB packages timing out by using download_file instead (#7891)rubenwardy
2018-11-08Content store: Add setting to filter non-free packages (#7766)rubenwardy
Defaulting to hiding in order to help with Debian/etc distribution. This could be changed at a later date.
2018-07-29Add protocol_version and supported package types to ContentDB urlsrubenwardy
2018-06-30Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot
* Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value
2018-06-30Fix world deletion (#7494)Vitaliy
* Fix world deletion
2018-06-18Update to new ContentDB APIrubenwardy
2018-05-20Add screenshots to online content browserrubenwardy
2018-05-16Add updating to online content browserrubenwardy
2018-04-19Add online content repositoryrubenwardy
Replaces mods and texture pack tabs with a single content tab
2018-03-28Load dependencies and description from mod.confAndrew Ward
2017-11-17Load files from subfolders in texturepacksnumber Zero
Updated and rebased version of a PR by red-001
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-09-12Network: Remove large parts of deprecated legacy code (#6404)SmallJoker
Also remove the setting 'send_pre_v25_init' Keep old enum entries for obsolete commands
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-07-14Remove remaining modstore code (#6120)Elijah Duffy
2017-07-04Main Menu: Allow copying directories from non-Minetest locations (#6095)Elijah Duffy
Allow `core.copy_dir` (main menu API) to copy directories from a non-Minetest location. The check to disallow copying to non-Minetest locations is retained.
2017-06-26Isolate irrlicht references and use a singleton (#6041)Loïc Blot
* Add Device3D class which will contain IrrlichtDevice interface move getSupportedVideoDrivers to Device3D Add Device3D singleton & use it in various places Rename Device3D to Rendering engine & add helper functions to various device pointers More singleton work RenderingEngine owns draw_load_screen move draw functions to RenderingEngine Reduce IrrlichtDevice exposure and guienvironment RenderingEngine: Expose get_timer_time() to remove device from guiEngine Make irrlichtdevice & scene manager less exposed * Code style fixes * Move porting::getVideoDriverName, getVideoDriverFriendlyName, getDisplayDensity, getDisplaySize to RenderingEngine Fix XORG_USED macro -> RenderingEngine + create_engine_device from RenderingEngine constructor directly * enum paralax => enum parallax
2017-06-11Improve the path select GUI (#5852)red-001
- Allow lua to chose whatever directories or files can be selected - Fix selecting directories - Rename dialog to `guiPathSelectMenu` from `guiFileSelectMenu` - Rename lua function for opening the menu from `show_file_open_dialog` to `show_path_select_dialog` - Remove duplicate code and fix code style. Related changes - fix `clang-format` whitelist. - Regenerate minetest.conf.example
2017-06-06Main Menu: Add get_clientmodpath API (#5912)Elijah Duffy
Add `core.get_clientmodpath` to main menu API (also possible in async calls).
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.