aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_steam/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-08-26 23:08:02 +0200
committerorwell96 <orwell@bleipb.de>2019-08-26 23:08:02 +0200
commit7b488f40d95c2d68db898d7cb228e17e001cea73 (patch)
tree686712ef9e75631feebdbac4218a26fa73a72975 /advtrains_train_steam/init.lua
parentd867cd723f373b0fc52bd2cdd19176a29598f8be (diff)
downloadadvtrains-7b488f40d95c2d68db898d7cb228e17e001cea73.tar.gz
advtrains-7b488f40d95c2d68db898d7cb228e17e001cea73.tar.bz2
advtrains-7b488f40d95c2d68db898d7cb228e17e001cea73.zip
Add lines scheduler for reliable railway-time scheduling(which is also safer than the atlatc scheduler) and document new atlatc functions
Diffstat (limited to 'advtrains_train_steam/init.lua')
0 files changed, 0 insertions, 0 deletions
n> dialogdata.content.name) .. "]".. "style[dlg_delete_content_confirm;bgcolor=red]" .. "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