From a60c01104ebbd90ea646e7ebe4f587996b7a6177 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 5 Feb 2008 15:02:22 +0000 Subject: [PATCH] * Added the localization string, and possible fix for select all --- Localization.enUS.lua | 1 + PerfectRaid_Frames.lua | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Localization.enUS.lua b/Localization.enUS.lua index 1a7731e..cfa3dae 100644 --- a/Localization.enUS.lua +++ b/Localization.enUS.lua @@ -8,6 +8,7 @@ PerfectRaidLocals = { ["Aggro"] = "Aggro", ["Align frames to BOTTOM"] = "Align frames to BOTTOM", ["Align frames to RIGHT"] = "Align frames to RIGHT", + ["All Classes"] = "All Classes", ["Arcane Brilliance"] = "Arcane Brilliance", ["Arcane Intellect"] = "Arcane Intellect", ["Auto-fill Default"] = "Auto-fill Default", diff --git a/PerfectRaid_Frames.lua b/PerfectRaid_Frames.lua index 672eebb..9d592e3 100644 --- a/PerfectRaid_Frames.lua +++ b/PerfectRaid_Frames.lua @@ -264,11 +264,11 @@ function Frames:CreateEditFrame(parent) makeCheck(L["Group 8"], "8") makeCheck(L["All Classes"], "IGNORE_ALLCLASS") - PRFrameFilter_IGNORE_ALLCLASS:SetScript("OnClick", function(self) - local checked = self:GetChecked() + PRFrameFilter_IGNORE_ALLCLASS:SetScript("OnClick", function(checkbutton) + local checked = checkbutton:GetChecked() - for idx,button in ipairs(self.filters) do - button:SetChecked(checked) + for i=1,9 do + self.filters[i]:SetChecked(checked) end end) -- 1.7.9.5