From 5514b4ebe89ee270212c60ce3c5645eac92ba6dd Mon Sep 17 00:00:00 2001 From: Paul Spears Date: Thu, 29 Oct 2009 12:50:51 -0500 Subject: [PATCH] added plus/minus buttons to tiered lists --- WeightsWatcher.xml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/WeightsWatcher.xml b/WeightsWatcher.xml index e6e17c7..54fb0d5 100644 --- a/WeightsWatcher.xml +++ b/WeightsWatcher.xml @@ -70,14 +70,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + local fontString = self:CreateFontString(nil, "OVERLAY", "GameFontNormal") - fontString:SetPoint("LEFT") + fontString:SetPoint("LEFT", 20, 0) self:SetFontString(fontString) toggleCollapse(self:GetParent(), self:GetParent():GetParent():GetParent().scrollFrame) + if self:GetParent().collapsed then + self:SetNormalTexture("Interface\\Buttons\\UI-PlusButton-UP") + self:SetPushedTexture("Interface\\Buttons\\UI-PlusButton-DOWN") + else + self:SetNormalTexture("Interface\\Buttons\\UI-MinusButton-UP") + self:SetPushedTexture("Interface\\Buttons\\UI-MinusButton-DOWN") + end -- 1.7.9.5