aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.cpp
Commit message (Expand)AuthorAge
* Decoration: Stop DecoSimple::resolveNodeNames from complaining about no node ...kwolekr2013-11-17
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Dont write directly to files but rather write and copy a tmp filePilzAdam2013-08-13
* Remove farmeshKahrl2013-08-13
* Decoration: Fix schematic probability mess with new MTS file versionkwolekr2013-08-11
* Add replacements to schematicsPilzAdam2013-08-03
* Allow multiple 'wherein' nodes in oredefPilzAdam2013-08-02
* Weather backward compatibilityproller2013-08-02
* Decoration: Handle facedir and wallmounted param2types with schematic rotationkwolekr2013-07-08
* Decoration: Remove usage of multi-character constantskwolekr2013-07-06
* Mapgen V7: Huge rewrite, also tweaks to cavegen et al.kwolekr2013-07-06
* Decoration: Add schematic rotation supportkwolekr2013-07-01
* Optimize liquid queue on generate map for liquid_finiteproller2013-06-30
* Make generated water a shade darker to match up with older versionskwolekr2013-06-28
* Add Lua on_mapgen_init callback, and minetest.set_mapgen_params APIkwolekr2013-06-27
* Decoration: Add support for zero probability, fix breakage from last commitkwolekr2013-06-22
* A handful of minor fixes to various thingskwolekr2013-06-22
* Decoration: Add Schematic decoration typekwolekr2013-06-22
* Decoration: Place decorations in mgv6, check if air or cignore before placementkwolekr2013-06-17
* Decoration, Ore: Resolve node names on Mapgen initkwolekr2013-06-17
* Decoration: Change divlen to sidelenkwolekr2013-06-17
* Add initial Decoration support, many misc. improvements & modificationskwolekr2013-06-17
* Remove no virtual dtor warnings, make MapgenParams contain actual NoiseParamskwolekr2013-05-19
* Add param2 field for ores, some minor fixes and misc. code cleanupkwolekr2013-04-07
* Fix black tree leaves, reduce above-ground cave shadowskwolekr2013-04-07
* Add Mapgen V7, reorganize biomeskwolekr2013-04-07
* Add Ore generation flags, implement ore absolute heightkwolekr2013-03-31
* Vary ore sheet y position by noisekwolekr2013-03-24
* Ensure ore can fit in OreSheet::generate()kwolekr2013-03-24
* Add Ore infrastructure and l_register_ore()kwolekr2013-03-24
* Add jungle grass to jungleskwolekr2013-03-17
* Re-add jungles, apple treeskwolekr2013-03-16
* Optimize Mapgen::updateLighting(), add setLighting()kwolekr2013-03-15
* Clean up Mapgenkwolekr2013-03-11
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
* Re-add dungeons in new dungeongen.cppkwolekr2013-03-10
* Add emerge.cpp, initial EmergeThread changeskwolekr2013-02-25
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Add seed parameter for default and L-system treesRealBadAngel2013-02-24
* Fix compile error (MSVC2010).Ilya Zhuravlev2013-02-07
* Add flag string settings, flat map optionkwolekr2013-02-06
* Make mapgen factory setup more elegant, add mapgen_v6.hkwolekr2013-01-23
* Use a string identifier for a mapgen instead of versionkwolekr2013-01-21
* Removed Mapgen V7 for nowkwolekr2013-01-21
* Finish and clean up mapgen configurationkwolekr2013-01-21
* Clean up EmergeManager, do initial work on Mapgen configurationkwolekr2013-01-21
* Readded and optimized mapgen V6kwolekr2013-01-21
* Add initial Lua biomedef support, fixed biome selectionkwolekr2013-01-21
* The new mapgen, noise functions, et al.kwolekr2013-01-21
") .. ";" .. dump(core.setting_getbool("free_move")) .. "]" -- buttons retval = retval .. "button[2.0,4.5;6,1.5;btn_start_singleplayer;" .. fgettext("Start Singleplayer") .. "]" .. "button[8.25,4.5;2.5,1.5;btn_config_sp_world;" .. fgettext("Config MODs") .. "]" return retval end -------------------------------------------------------------------------------- local function main_button_handler(tabview, fields, name, tabdata) if fields["btn_start_singleplayer"] then gamedata.selected_world = gamedata.worldindex gamedata.singleplayer = true core.start() return true end if fields["favourites"] ~= nil then local event = core.explode_textlist_event(fields["favourites"]) if event.type == "CHG" then if event.index <= #menudata.favorites then local address = menudata.favorites[event.index].address local port = menudata.favorites[event.index].port if address ~= nil and port ~= nil then core.setting_set("address",address) core.setting_set("remote_port",port) end tabdata.fav_selected = event.index end end return true end if fields["cb_public_serverlist"] ~= nil then core.setting_set("public_serverlist", fields["cb_public_serverlist"]) if core.setting_getbool("public_serverlist") then asyncOnlineFavourites() else menudata.favorites = core.get_favorites("local") end return true end if fields["cb_creative"] then core.setting_set("creative_mode", fields["cb_creative"]) return true end if fields["cb_damage"] then core.setting_set("enable_damage", fields["cb_damage"]) return true end if fields["cb_fly_mode"] then core.setting_set("free_move", fields["cb_fly_mode"]) return true end if fields["btn_mp_connect"] ~= nil or fields["key_enter"] ~= nil then gamedata.playername = fields["te_name"] gamedata.password = fields["te_pwd"] gamedata.address = fields["te_address"] gamedata.port = fields["te_port"] local fav_idx = core.get_textlist_index("favourites") if fav_idx ~= nil and fav_idx <= #menudata.favorites and menudata.favorites[fav_idx].address == fields["te_address"] and menudata.favorites[fav_idx].port == fields["te_port"] then gamedata.servername = menudata.favorites[fav_idx].name gamedata.serverdescription = menudata.favorites[fav_idx].description else gamedata.servername = "" gamedata.serverdescription = "" end gamedata.selected_world = 0 core.setting_set("address",fields["te_address"]) core.setting_set("remote_port",fields["te_port"]) core.start() return true end if fields["btn_config_sp_world"] ~= nil then local configdialog = create_configure_world_dlg(1) if (configdialog ~= nil) then configdialog:set_parent(tabview) tabview:hide() configdialog:show() end return true end end -------------------------------------------------------------------------------- local function on_activate(type,old_tab,new_tab) if type == "LEAVE" then return end if core.setting_getbool("public_serverlist") then asyncOnlineFavourites() else menudata.favorites = core.get_favorites("local") end end -------------------------------------------------------------------------------- tab_simple_main = { name = "main", caption = fgettext("Main"), cbf_formspec = get_formspec, cbf_button_handler = main_button_handler, on_change = on_activate }