fix: stack item number position

This commit is contained in:
Vati
2026-02-28 02:21:50 +04:00
parent 7b87c7f5a0
commit 47f643c6a1
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1107,10 +1107,10 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha
countText:ClearAllPoints()
if iconSize < 44 then
-- Smaller offset for small icons
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -3, 3)
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -1, 1)
else
-- Standard offset for larger icons
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -8, 8)
countText:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -3, 3)
end
end
@@ -1228,7 +1228,7 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha
self.categoryMarkIcon = self:CreateTexture(nil, "OVERLAY")
end
-- 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
self.categoryMarkShadow:SetWidth(shadowSize)
self.categoryMarkShadow:SetHeight(shadowSize)
+4 -4
View File
@@ -946,7 +946,7 @@
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="100" y="-107"/>
<AbsDimension x="100" y="-122"/>
</Offset>
</Anchor>
</Anchors>
@@ -979,12 +979,12 @@
<!-- Rules ScrollFrame -->
<ScrollFrame name="Guda_CategoryEditor_RulesScrollFrame" inherits="FauxScrollFrameTemplate">
<Size>
<AbsDimension x="335" y="250"/>
<AbsDimension x="335" y="235"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="20" y="-160"/>
<AbsDimension x="20" y="-175"/>
</Offset>
</Anchor>
</Anchors>
@@ -1013,7 +1013,7 @@
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-20" y="-142"/>
<AbsDimension x="-20" y="-157"/>
</Offset>
</Anchor>
</Anchors>