From c8ba5551773763976a12ba64440df241e981c733 Mon Sep 17 00:00:00 2001 From: Paul Spears Date: Thu, 22 Oct 2009 02:30:37 -0500 Subject: [PATCH] added (working) checkboxes for active weight display --- WeightsWatcher.xml | 43 ++++++++++++++++++++++++++++++++++++++++++- config.lua | 12 ++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/WeightsWatcher.xml b/WeightsWatcher.xml index 20fb7d4..307efd5 100644 --- a/WeightsWatcher.xml +++ b/WeightsWatcher.xml @@ -185,6 +185,47 @@ + + + + + + + + + + + + + + local parent = self:GetParent() + local class = parent.category.class + + if not ww_charVars.activeWeights[class] then + ww_charVars.activeWeights[class] = {} + table.insert(ww_charVars.activeWeights, class) + end + if self:GetChecked() then + table.insert(ww_charVars.activeWeights[class], parent.name) + else + for i, weight in ipairs(ww_charVars.activeWeights[class]) do + if weight == parent.name then + table.remove(ww_charVars.activeWeights[class], i) + break + end + end + end + + + GameTooltip:SetOwner(self,"ANCHOR_RIGHT") + GameTooltip:AddLine("Watch this weight?", 1, 1, 1) + GameTooltip:Show() + + + GameTooltip:Hide() + + +