Thread: Help me plz
View Single Post
03-25-23, 11:11 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
If you were just using the default UI bag setup you could

Lua Code:
  1. local function Rescale(self)
  2.     self.Count:SetScale(1)
  3. end
  4.  
  5. local function Reset(self)
  6.     self.Count:ClearAllPoints()
  7.     self.Count:SetPoint("BOTTOMRIGHT", 0, 0)
  8.     self.Count:SetFont("Fonts\\arialn.ttf", 13, "OUTLINE")
  9. end
  10.  
  11. for i = 1, NUM_TOTAL_BAG_FRAMES do
  12.     local bag = _G["ContainerFrame" .. i]
  13.     for k, v in pairs(bag.Items) do
  14.         Reset(v)
  15.         Rescale(v)
  16.         hooksecurefunc(v, "SetItemButtonAnchorPoint", Reset)
  17.         hooksecurefunc(v, "SetItemButtonScale", Reset)
  18.  
  19.     end
  20. end

But a bag addon might alter bag/ItemButton configuration so your milage may vary.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote