diff --git a/WeightsWatcher.xml b/WeightsWatcher.xml
index 54fb0d5..9320404 100644
--- a/WeightsWatcher.xml
+++ b/WeightsWatcher.xml
@@ -12,7 +12,7 @@
<Layer level="BACKGROUND">
<Texture file="Interface\Buttons\UI-Panel-Button-Glow" alphaMode="ADD">
<Size>
- <AbsDimension y="20" x="16"/>
+ <AbsDimension y="22" x="16"/>
</Size>
<Anchors>
<Anchor point="LEFT"/>
@@ -21,7 +21,7 @@
</Texture>
<Texture file="Interface\Buttons\UI-Panel-Button-Glow" alphaMode="ADD">
<Size>
- <AbsDimension y="20"/>
+ <AbsDimension y="22"/>
</Size>
<Anchors>
<Anchor point="LEFT">
@@ -39,7 +39,7 @@
</Texture>
<Texture file="Interface\Buttons\UI-Panel-Button-Glow" alphaMode="ADD">
<Size>
- <AbsDimension y="20" x="16"/>
+ <AbsDimension y="22" x="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
@@ -52,7 +52,7 @@
<!--virtual frame used to allow for script generated frames with stat information-->
<Frame name="ww_categoryFrame" virtual="true">
<Size>
- <AbsDimension y="20"/>
+ <AbsDimension y="22"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
@@ -65,7 +65,7 @@
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
- <AbsDimension x="5"/>
+ <AbsDimension x="5" y="-1"/>
</Offset>
</Anchor>
<Anchor point="RIGHT"/>
@@ -117,7 +117,7 @@
<!--virtual frame used to allow for script generated frames with stat information-->
<Frame name="ww_statFrame" virtual="true">
<Size>
- <AbsDimension y="20"/>
+ <AbsDimension y="22"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
@@ -143,19 +143,19 @@
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
- <AbsDimension x="10"/>
+ <AbsDimension x="15" y="-1"/>
</Offset>
</Anchor>
<Anchor point="BOTTOMRIGHT">
<Offset>
- <AbsDimension x="-135"/>
+ <AbsDimension x="-132" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<EditBox letters="16" name="$parentStatValue" parentKey="statValue" autoFocus="false">
<Size>
- <AbsDimension x="130" y="20"/>
+ <AbsDimension x="130" y="22"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
@@ -232,7 +232,7 @@
<!--virtual frame used to allow for script generated frames with stat information-->
<Frame name="ww_weightFrame" virtual="true">
<Size>
- <AbsDimension y="20"/>
+ <AbsDimension y="22"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
@@ -291,17 +291,31 @@
</Anchor>
<Anchor point="RIGHT"/>
</Anchors>
+ <HighlightTexture file="Interface\Buttons\UI-Listbox-Highlight2" alphaMode="ADD">
+ <Anchors>
+ <Anchor point="TOPLEFT">
+ <Offset>
+ <AbsDimension x="-3" y="-2"/>
+ </Offset>
+ </Anchor>
+ <Anchor point="BOTTOMRIGHT">
+ <Offset>
+ <AbsDimension x="-7"/>
+ </Offset>
+ </Anchor>
+ </Anchors>
+ </HighlightTexture>
<Frames>
<Frame name="$parentHighlightFrame" parentKey="highlightFrame" inherits="ww_highlightedFrame">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
- <AbsDimension x="-10"/>
+ <AbsDimension x="-5" y="-1"/>
</Offset>
</Anchor>
<Anchor point="BOTTOMRIGHT">
<Offset>
- <AbsDimension x="-10"/>
+ <AbsDimension x="-5" y="-1"/>
</Offset>
</Anchor>
</Anchors>
@@ -387,10 +401,10 @@
</Anchors>
<Scripts>
<OnShow>
- scrollBarUpdate(self, ww_config.leftPanel.scrollContainer, 20, 0, 27)
+ scrollBarUpdate(self, ww_config.leftPanel.scrollContainer, 22, 0, 25)
</OnShow>
<OnVerticalScroll>
- FauxScrollFrame_OnVerticalScroll(self, offset, 20, self:GetScript("OnShow"))
+ FauxScrollFrame_OnVerticalScroll(self, offset, 22, self:GetScript("OnShow"))
</OnVerticalScroll>
</Scripts>
</ScrollFrame>
@@ -519,10 +533,10 @@
</Anchors>
<Scripts>
<OnShow>
- scrollBarUpdate(self, ww_config.rightPanel.scrollContainer, 20, -30, 25)
+ scrollBarUpdate(self, ww_config.rightPanel.scrollContainer, 22, -30, 22)
</OnShow>
<OnVerticalScroll>
- FauxScrollFrame_OnVerticalScroll(self, offset, 20, self:GetScript("OnShow"))
+ FauxScrollFrame_OnVerticalScroll(self, offset, 22, self:GetScript("OnShow"))
</OnVerticalScroll>
</Scripts>
</ScrollFrame>
diff --git a/config.lua b/config.lua
index 142a090..8b36854 100644
--- a/config.lua
+++ b/config.lua
@@ -165,10 +165,10 @@ function changeFocus(currentStatFrame)
if direction < 0 then
offset = (position - 1) * 5
else
- offset = (position - 25) * 5
+ offset = (position - 22) * 5
end
FauxScrollFrame_SetOffset(ww_config.rightPanel.scrollFrame, offset)
- ww_config.rightPanel.scrollFrame:GetScript("OnVerticalScroll")(ww_config.rightPanel.scrollFrame, offset * 20)
+ ww_config.rightPanel.scrollFrame:GetScript("OnVerticalScroll")(ww_config.rightPanel.scrollFrame, offset * 22)
end
frame.statValue:SetFocus()
end
@@ -309,7 +309,7 @@ function deleteWeight()
for i = 1, weightFrame:GetNumPoints() do
point, relativeTo, relativePoint, xOffset, yOffset = weightFrame:GetPoint(1)
if point == "TOPLEFT" then
- weightFrame:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset + 20)
+ weightFrame:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset + 22)
break
end
end
@@ -322,7 +322,7 @@ function deleteWeight()
end
end
table.remove(ww_config.leftPanel.scrollFrame.shown, weight.category.position + weight.position)
- weight.category:SetHeight(20 * weight.category.length)
+ weight.category:SetHeight(22 * weight.category.length)
end
weight:Hide()
weight:SetParent(nil)
@@ -384,12 +384,12 @@ function setWeight(class, weight, statList)
weightFrame.category = classFrame
weightFrame.text:SetText(weight)
weightFrame.name = weight
- weightFrame:SetPoint("TOPLEFT", 0, -20 * position)
+ weightFrame:SetPoint("TOPLEFT", 0, -22 * position)
classFrame.length = classFrame.length + 1
if classFrame.collapsed then
weightFrame:Hide()
else
- classFrame:SetHeight(20 * classFrame.length)
+ classFrame:SetHeight(22 * classFrame.length)
table.insert(ww_config.leftPanel.scrollFrame.shown, classFrame.position + position, weightFrame)
for _, class in ipairs(ww_config.leftPanel.scrollFrame.categories) do
if class.position > classFrame.position then
@@ -420,7 +420,7 @@ function loadClassButtons()
end
end
- createScrollableTieredList(classes, ww_config.leftPanel.scrollFrame, ww_config.leftPanel.scrollContainer, "ww_weightFrame", 20)
+ createScrollableTieredList(classes, ww_config.leftPanel.scrollFrame, ww_config.leftPanel.scrollContainer, "ww_weightFrame", 22)
local _, class = UnitClass("player")
for _, classFrame in ipairs(ww_config.leftPanel.scrollFrame.categories) do
@@ -446,7 +446,7 @@ end
function loadStatButtons()
local stats = {}
- createScrollableTieredList(trackedStats, ww_config.rightPanel.scrollFrame, ww_config.rightPanel.scrollContainer, "ww_statFrame", 20)
+ createScrollableTieredList(trackedStats, ww_config.rightPanel.scrollFrame, ww_config.rightPanel.scrollContainer, "ww_statFrame", 22)
for _, categoryFrame in ipairs(ww_config.rightPanel.scrollFrame.categories) do
local children = {categoryFrame:GetChildren()}