aboutsummaryrefslogtreecommitdiff
path: root/src/content_cao.h
Commit message (Collapse)AuthorAge
* Move object nametags to cameraRealBadAngel2016-02-18
|
* v2d & aabbox3d<f32> & sky cleanupsnerzhul2016-02-11
| | | | | * Sky: rename Box => m_box and inline getBoundingBox * Uniformize aabbox3d<f32> to aabb3f
* Show infotext with description for item entitiesRealBadAngel2016-01-18
|
* Add option to give every object a nametagBlockMen2015-12-15
| | | | or change the nametag text of players
* Fix issues with light of attached CAOsRealBadAngel2015-07-23
|
* Fix some issues with animations, and allow non-looped animations to be definedMirceaKitsune2015-06-22
|
* Generic CAO cleanups and renames for clarificationest312015-06-20
| | | | | | | | * Use enum for GENERIC_CMD_* * Rename m_attachements to attachement_parent_ids (public member and clearer name) * Rename GENERIC_CMD_SET_ATTACHMENT to GENERIC_CMD_ATTACH_TO * USHRT_MAX + 1 buffer sizes to prevent overflows as @kahrl suggested * Remove unneccessary m_id from GenericCAO (shadowing protected superclass member for no reason) as @kahrl suggested
* Make attached objects visible in 3rd person viewest312015-06-20
|
* Add get and set functions for the nametag colorTeTpaAka2015-05-15
|
* SAO work: ActiveObject types & SAO cleanup * Replace u8 types with ↵Loic Blot2015-02-17
| | | | ActiveObjectType. * Merge content_object.h into activeobject.h * Remove DummyLoadSAO, it's now unused. * Remove ItemSAO, it's also unused
* Implement WieldMeshSceneNode which improves wield mesh renderingKahrl2014-11-08
| | | | | | | | | | | | | - Don't create and cache an extruded mesh for every (non-node) item. Instead use a single one per image resolution. - For cubic nodes reuse a single wield mesh too - Improve lighting of the wielded item - Increase far value of wield mesh scene camera, fixes #1770 - Also includes some minor refactorings of Camera and GenericCAO.
* Fix warnings reported by clangsfan52014-07-06
|
* Speedup attachement handling by replacing vector search by direct array ↵sapier2014-06-23
| | | | access and secondary child lookup vector
* Split declaration of GenericCAO from implementationsapier2014-05-17
|
* Update Copyright YearsSfan52013-02-24
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
|
* Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola2012-06-05
| | | | GPLv2/later, by agreement of major contributors
* Player-is-SAO WIPPerttu Ahola2011-12-01
|
* Reshape LuaEntityCAO implementation a bit and make TNT to blinkPerttu Ahola2011-11-29
|
* Relatively snappy object-ground collision detectionPerttu Ahola2011-11-29
|
* Improve LuaEntity velocity/acceleration handling (by kahrl); implement ↵Perttu Ahola2011-11-29
| | | | staticdata interface to Lua
* Create framework for getting rid of global definitions of ↵Perttu Ahola2011-11-29
| | | | node/tool/item/whatever types
* Scripting WIPPerttu Ahola2011-11-29
|
* Scripting WIPPerttu Ahola2011-11-29
|
* Scripting WIPPerttu Ahola2011-11-29
|
* Scripting WIPPerttu Ahola2011-11-29
|
* Scripting WIPPerttu Ahola2011-11-29
|
* Make dungeon masters though and make oerkkis disappear when they get to you ↵Perttu Ahola2011-10-15
| | | | (because hitting them doesn't work for some unknown reason)
* Improve mobv2Perttu Ahola2011-10-15
|
* mobv2Perttu Ahola2011-10-15
|
* Rats are now eatable. Also made their selection box move smoothly.Perttu Ahola2011-07-30
|
* + firefliesNils Dagsson Moskopp2011-07-20
|
* reorganized a lot of stuff and modified mapgen and objects slightly while ↵Perttu Ahola2011-06-26
doing it
pan class="hl opt">) .. "]" 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_table_event(fields["favourites"]) if event.type == "CHG" then if event.row <= #menudata.favorites then local address = menudata.favorites[event.row].address local port = menudata.favorites[event.row].port if address ~= nil and port ~= nil then core.setting_set("address",address) core.setting_set("remote_port",port) end tabdata.fav_selected = event.row 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["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 if not is_server_protocol_compat_or_error(menudata.favorites[fav_idx].proto_min, menudata.favorites[fav_idx].proto_max) then return true end 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 }