From c122169d448c9c87af37782189f87a7db159e898 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Thu, 23 Feb 2012 00:26:40 +0000 Subject: [PATCH] fix git-svn-id: http://svn.net-core.org/repos/t-engine4@4911 51575b47-30f0-44d4-a5cc-537603b46e54 --- .../default/modules/boot/dialogs/Addons.lua | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/game/engines/default/modules/boot/dialogs/Addons.lua b/game/engines/default/modules/boot/dialogs/Addons.lua index 8f6891e9ab..78ffd65b1e 100644 --- a/game/engines/default/modules/boot/dialogs/Addons.lua +++ b/game/engines/default/modules/boot/dialogs/Addons.lua @@ -42,7 +42,7 @@ function _M:init() self.c_adds = ListColumns.new{width=math.floor(self.iw * 2 / 3 - 10), height=self.ih - 10 - self.c_compat.h, scrollbar=true, columns={ {name="Addon", width=60, display_prop="long_name"}, - {name="Active", width=20, display_prop=function(item) + {name="Active", width=20, display_prop=function(item) if config.settings.addons[item.for_module] and config.settings.addons[item.for_module][item.short_name] ~= nil then return (config.settings.addons[item.for_module][item.short_name] and "#LIGHT_GREEN#Manual: Active" or "#LIGHT_RED#Manual: Disabled"):toTString() else @@ -111,22 +111,6 @@ function _M:generateList() if j > 1 then break end if not mod.is_boot and (not mod.show_only_on_cheat or config.settings.cheat) then mod.name = tstring{{"font","bold"}, {"color","GOLD"}, mod.name, {"font","normal"}} - mod.fct = function(mod) - if mod.no_get_name then - Module:instanciate(mod, "player", true, false) - else - game:registerDialog(require('engine.dialogs.GetText').new("Enter your character's name", "Name", 2, 25, function(text) - local savename = text:gsub("[^a-zA-Z0-9_-.]", "_") - if fs.exists(("/%s/save/%s/game.teag"):format(mod.short_name, savename)) then - Dialog:yesnoPopup("Overwrite character?", "There is already a character with this name, do you want to overwrite it?", function(ret) - if not ret then Module:instanciate(mod, text, true) end - end, "No", "Yes") - else - Module:instanciate(mod, text, true) - end - end)) - end - end mod.version_txt = ("%d.%d.%d"):format(mod.version[1], mod.version[2], mod.version[3]) mod.adds = Module:listAddons(mod, true) -- GitLab