- unified the behavior for configuration when a module is disabled. now the sub-configs (marker/text/icon settings) remain clickable but every element inside is disabled when the module is disabled. previously some sub-configs were not clickable at all and others were

This commit is contained in:
Parnic
2010-10-25 04:10:29 +00:00
parent e003fab854
commit 673fb524ba
3 changed files with 54 additions and 12 deletions

View File

@ -328,9 +328,6 @@ function PlayerHealth.prototype:GetOptions()
type = 'group',
name = "|c"..self.configColor..L["Icon Settings"].."|r",
desc = L["Settings related to icons"],
disabled = function()
return not self.moduleSettings.enabled
end,
args = {
iconConfigMode = {
type = "toggle",
@ -343,6 +340,9 @@ function PlayerHealth.prototype:GetOptions()
configMode = v
self:EnteringWorld()
end,
disabled = function()
return not self.moduleSettings.enabled
end,
order = 5
},
@ -357,6 +357,9 @@ function PlayerHealth.prototype:GetOptions()
self.moduleSettings.lockIconAlpha = v
self:Redraw()
end,
disabled = function()
return not self.moduleSettings.enabled
end,
order = 6
},