If you were just using the default UI bag setup you could
Lua Code:
local function Rescale(self)
self.Count:SetScale(1)
end
local function Reset(self)
self.Count:ClearAllPoints()
self.Count:SetPoint("BOTTOMRIGHT", 0, 0)
self.Count:SetFont("Fonts\\arialn.ttf", 13, "OUTLINE")
end
for i = 1, NUM_TOTAL_BAG_FRAMES do
local bag = _G["ContainerFrame" .. i]
for k, v in pairs(bag.Items) do
Reset(v)
Rescale(v)
hooksecurefunc(v, "SetItemButtonAnchorPoint", Reset)
hooksecurefunc(v, "SetItemButtonScale", Reset)
end
end
But a bag addon might alter bag/ItemButton configuration so your milage may vary.