Thread: frame replacing
View Single Post
10-05-14, 11:04 AM   #4
Danielps1
Guest
Posts: n/a
Originally Posted by Duugu View Post
You OnUpdate code is ok and does work as expected.

There must be something wrong within other parts of your code.
Hm, thanks atleast I'm good there. Sadly the rest of the code is from ouF_Skaarj and I don't really understand all of that.
This is what I found in Skarj's code

Lua Code:
  1. if cfg.aura.target_debuffs then
  2.             local d = CreateFrame('Frame', nil, self)
  3.             d.size = 23
  4.             d.spacing = 5
  5.             d.num = cfg.aura.target_debuffs_num
  6.             d:SetPoint('BOTTOMLEFT', self, 'TOPLEFT', 0, 8)
  7.             d:SetSize(cfg.player.width, d.size)
  8.             d.initialAnchor = 'TOPLEFT'
  9.             d.onlyShowPlayer = cfg.aura.onlyShowPlayer
  10.             d.PostCreateIcon = auraIcon
  11.             d.PostUpdateIcon = PostUpdateIcon
  12.             d.CustomFilter = CustomFilter
  13.             self.Debuffs = d      
  14.         end
  Reply With Quote