From 944b4da4cda03008c11bce2ca702c1e070fa33b6 Mon Sep 17 00:00:00 2001 From: "U-punta-PC\\punta" Date: Sat, 26 Sep 2009 01:36:01 -0500 Subject: [PATCH] added a close button, class header, and non-functional new weight and reset defaults buttons for some reason, frame anchors must use the global names and not the parentKeys --- WeightsWatcher.xml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ config.lua | 3 ++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/WeightsWatcher.xml b/WeightsWatcher.xml index c443f72..0a7fd8b 100644 --- a/WeightsWatcher.xml +++ b/WeightsWatcher.xml @@ -64,6 +64,19 @@ + + + + + + + + + + + + + @@ -76,6 +89,40 @@ + + + + + + diff --git a/config.lua b/config.lua index 338a775..d420d44 100644 --- a/config.lua +++ b/config.lua @@ -31,7 +31,7 @@ function configClassSelect(classType) --if our previously created button table isn't big enough, add new buttons if #(weightButtonTable) < counter then table.insert(weightButtonTable, CreateFrame("Button", nil, wwConfig.rightPanel, "genericButton")) - weightButtonTable[counter]:SetPoint("TOPLEFT", 5, 15 - 20 * counter) + weightButtonTable[counter]:SetPoint("TOPLEFT", 5, -5 - 20 * counter) end weightButtonTable[counter]:SetText(weightName) weightButtonTable[counter]:SetScript("OnClick", @@ -46,6 +46,7 @@ function configClassSelect(classType) weightButtonTable[counter]:Hide() counter = counter + 1 end + wwConfig.rightPanel.header:SetText(classNames[classType] .. " weights") wwConfig.rightPanel:Show() end -- 1.7.9.5