fix: stack item number position
This commit is contained in:
+3
-3
@@ -1107,10 +1107,10 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha
|
|||||||
countText:ClearAllPoints()
|
countText:ClearAllPoints()
|
||||||
if iconSize < 44 then
|
if iconSize < 44 then
|
||||||
-- Smaller offset for small icons
|
-- Smaller offset for small icons
|
||||||
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -3, 3)
|
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -1, 1)
|
||||||
else
|
else
|
||||||
-- Standard offset for larger icons
|
-- Standard offset for larger icons
|
||||||
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -8, 8)
|
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -3, 3)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -1228,7 +1228,7 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha
|
|||||||
self.categoryMarkIcon = self:CreateTexture(nil, "OVERLAY")
|
self.categoryMarkIcon = self:CreateTexture(nil, "OVERLAY")
|
||||||
end
|
end
|
||||||
-- Size relative to icon (roughly 40% of icon display size)
|
-- Size relative to icon (roughly 40% of icon display size)
|
||||||
local markSize = math.max(10, math.floor(iconSize * 0.3)) + 1
|
local markSize = math.max(10, math.floor(iconSize * 0.3)) + 3
|
||||||
local shadowSize = markSize + 2
|
local shadowSize = markSize + 2
|
||||||
self.categoryMarkShadow:SetWidth(shadowSize)
|
self.categoryMarkShadow:SetWidth(shadowSize)
|
||||||
self.categoryMarkShadow:SetHeight(shadowSize)
|
self.categoryMarkShadow:SetHeight(shadowSize)
|
||||||
|
|||||||
@@ -946,7 +946,7 @@
|
|||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT">
|
<Anchor point="TOPLEFT">
|
||||||
<Offset>
|
<Offset>
|
||||||
<AbsDimension x="100" y="-107"/>
|
<AbsDimension x="100" y="-122"/>
|
||||||
</Offset>
|
</Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
@@ -979,12 +979,12 @@
|
|||||||
<!-- Rules ScrollFrame -->
|
<!-- Rules ScrollFrame -->
|
||||||
<ScrollFrame name="Guda_CategoryEditor_RulesScrollFrame" inherits="FauxScrollFrameTemplate">
|
<ScrollFrame name="Guda_CategoryEditor_RulesScrollFrame" inherits="FauxScrollFrameTemplate">
|
||||||
<Size>
|
<Size>
|
||||||
<AbsDimension x="335" y="250"/>
|
<AbsDimension x="335" y="235"/>
|
||||||
</Size>
|
</Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT">
|
<Anchor point="TOPLEFT">
|
||||||
<Offset>
|
<Offset>
|
||||||
<AbsDimension x="20" y="-160"/>
|
<AbsDimension x="20" y="-175"/>
|
||||||
</Offset>
|
</Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
@@ -1013,7 +1013,7 @@
|
|||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPRIGHT">
|
<Anchor point="TOPRIGHT">
|
||||||
<Offset>
|
<Offset>
|
||||||
<AbsDimension x="-20" y="-142"/>
|
<AbsDimension x="-20" y="-157"/>
|
||||||
</Offset>
|
</Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
|
|||||||
Reference in New Issue
Block a user