aboutsummaryrefslogtreecommitdiff
path: root/src/clientobject.h
Commit message (Expand)AuthorAge
* Optimize headersPerttu Ahola2012-06-17
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* ClientActiveObject::debugInfoText()Perttu Ahola2012-03-10
* Damage groups WIPPerttu Ahola2012-03-10
* Player-is-SAO WIPPerttu Ahola2011-12-01
* Create framework for getting rid of global definitions of node/tool/item/what...Perttu Ahola2011-11-29
* Improve mobv2Perttu Ahola2011-10-15
* mobv2Perttu Ahola2011-10-15
* reorganized a lot of stuff and modified mapgen and objects slightly while doi...Perttu Ahola2011-06-26
* Some work-in-progress in hp and mobs and a frightening amount of random fixes.Perttu Ahola2011-04-21
* implemented rats in new system to verify that it worksPerttu Ahola2011-04-10
* new object systemPerttu Ahola2011-04-10
* Some progress on transitioning from MapBlockObject to ActiveObject.Perttu Ahola2011-04-08
* Removed lua stuffPerttu Ahola2011-04-03
* preliminary lua scripting framework for objectsPerttu Ahola2011-02-21
* Temporary commit; lots of test code and stuffPerttu Ahola2011-02-21
ot; .. "button[3.25,3.5;2.5,0.5;dlg_delete_content_confirm;" .. fgettext("Delete") .. "]" .. "button[5.75,3.5;2.5,0.5;dlg_delete_content_cancel;" .. fgettext("Cancel") .. "]" return retval end -------------------------------------------------------------------------------- local function delete_content_buttonhandler(this, fields) if fields["dlg_delete_content_confirm"] ~= nil then if this.data.content.path ~= nil and this.data.content.path ~= "" and this.data.content.path ~= core.get_modpath() and this.data.content.path ~= core.get_gamepath() and this.data.content.path ~= core.get_texturepath() then if not core.delete_dir(this.data.content.path) then gamedata.errormessage = fgettext("pkgmgr: failed to delete \"$1\"", this.data.content.path) end if this.data.content.type == "game" then pkgmgr.update_gamelist() else pkgmgr.refresh_globals() end else gamedata.errormessage = fgettext("pkgmgr: invalid path \"$1\"", this.data.content.path) end this:delete() return true end if fields["dlg_delete_content_cancel"] then this:delete() return true end return false end -------------------------------------------------------------------------------- function create_delete_content_dlg(content) assert(content.name) local retval = dialog_create("dlg_delete_content", delete_content_formspec, delete_content_buttonhandler, nil) retval.data.content = content return retval end