Skip to content
Snippets Groups Projects
Commit bff6e780 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5731 51575b47-30f0-44d4-a5cc-537603b46e54
parent eb103f55
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,10 @@ function _M:loadAddons(mod, saveuse)
table.remove(adds, i)
end
else
if config.settings.addons[add.for_module] and config.settings.addons[add.for_module][add.short_name] ~= nil then
if add.dlc == "no" then
print("Removing addon "..add.short_name..": DLC required")
table.remove(adds, i)
elseif config.settings.addons[add.for_module] and config.settings.addons[add.for_module][add.short_name] ~= nil then
-- Forbidden by config
if config.settings.addons[add.for_module][add.short_name] == false then
print("Removing addon "..add.short_name..": not allowed by config")
......
......@@ -43,7 +43,9 @@ 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)
if config.settings.addons[item.for_module] and config.settings.addons[item.for_module][item.short_name] ~= nil then
if item.dlc == "no" then
return "#LIGHT_RED#Donator Status: Disabled"
elseif 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
return (item.natural_compatible and "#LIGHT_GREEN#Auto: Active" or "#LIGHT_RED#Auto: Incompatible"):toTString()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment