aboutsummaryrefslogtreecommitdiff
path: root/src/content_object.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-02-28 19:45:23 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-10 11:28:12 +0200
commit562ac3bce9fae076562bd2e92e7d330c296ac1b0 (patch)
tree4b9421f1fd0a22a69cfa6320cc30f41f0f68af8a /src/content_object.h
parentf21291211caaaa22ee5673adf46615dd46a36285 (diff)
downloadminetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.tar.gz
minetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.tar.bz2
minetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.zip
Digging time groups WIP
Diffstat (limited to 'src/content_object.h')
0 files changed, 0 insertions, 0 deletions
kwa">local retval = "size[11.5,4.5,true]" .. "label[2,2;" .. fgettext("Delete World \"$1\"?", dialogdata.delete_name) .. "]" .. "button[3.25,3.5;2.5,0.5;world_delete_confirm;" .. fgettext("Delete") .. "]" .. "button[5.75,3.5;2.5,0.5;world_delete_cancel;" .. fgettext("Cancel") .. "]" return retval end local function delete_world_buttonhandler(this, fields) if fields["world_delete_confirm"] then if this.data.delete_index > 0 and this.data.delete_index <= #menudata.worldlist:get_raw_list() then core.delete_world(this.data.delete_index) menudata.worldlist:refresh() end this:delete() return true end if fields["world_delete_cancel"] then this:delete() return true end return false end function create_delete_world_dlg(name_to_del,index_to_del) assert(name_to_del ~= nil and type(name_to_del) == "string" and name_to_del ~= "") assert(index_to_del ~= nil and type(index_to_del) == "number") local retval = dialog_create("delete_world", delete_world_formspec, delete_world_buttonhandler, nil) retval.data.delete_name = name_to_del retval.data.delete_index = index_to_del return retval end