From 5c8998de4bcba6ee7fea7b42fca02c527b685ceb Mon Sep 17 00:00:00 2001 From: "Erik L. Vonderscheer" Date: Fri, 21 Jan 2011 22:14:22 -0800 Subject: [PATCH] Modify GUI to hide features when disabled --- TradeFilter3Options.lua | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/TradeFilter3Options.lua b/TradeFilter3Options.lua index 65e250d..044e437 100644 --- a/TradeFilter3Options.lua +++ b/TradeFilter3Options.lua @@ -171,6 +171,9 @@ function TF3:getOptions() }, specialfilters = { type = 'input', + hidden = function() + return not TF3.db.profile.special_enable + end, disabled = function() return not TF3.db.profile.special_enable end, @@ -212,6 +215,9 @@ function TF3:getOptions() }, reset_specialfilters = { type = 'execute', + hidden = function() + return not TF3.db.profile.special_enable + end, disabled = function() return not TF3.db.profile.special_enable end, @@ -795,18 +801,24 @@ function TF3:getOptions() end, name = L["Exempt Party Members"], args = { ---~ rescan_party = { ---~ type = 'execute', ---~ order = 1, ---~ name = "GetParty(\"pary\")", ---~ func = function() TF3:GetParty("party") end, ---~ }, ---~ rescan_raid = { ---~ type = 'execute', ---~ order = 2, ---~ name = "GetParty(\"raid\")", ---~ func = function() TF3:GetParty("raid") end, ---~ }, + rescan_party = { + type = 'execute', + order = 1, + name = "GetParty(\"pary\")", + hidden = function() + return not TF3.db.profile.debug + end, + func = function() TF3:GetParty("party") end, + }, + rescan_raid = { + type = 'execute', + order = 2, + name = "GetParty(\"raid\")", + hidden = function() + return not TF3.db.profile.debug + end, + func = function() TF3:GetParty("raid") end, + }, currentPartyMembers_table_content = { type = 'description', fontSize = "medium", -- 1.7.9.5