View Single Post
03-21-12, 05:37 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I really wish people asking for help with a specific addon would provide a link to that addon's download page, so I didn't have to go hunt for it in order to try to help them... >_<

1) How do I go about removing all text from the Raid Frames?
The only text I see in the code (eg. I did not load the addon in-game) is the health text, which you can remove by commenting out the line in core.lua that creates it:

Code:
329.		lib.gen_hpstrings(self)
If there is any other text, please describe what information it shows, so I can find it in the code. I did not spend a huge amount of time searching.

2) How do I go about removing all text from the Party Frames?
Similiar to the raid frames, simply comment out the call to the function that creates the health bar text, in core.lua:
Code:
367.		lib.gen_hpstrings(self)
3) How do I go about removing the latency from the end of all cast bars?
In lib.lua, comment out the section of code that creates it:
Code:
    if f.mystyle == "player" then
      --latency (only for player unit)
      local z = s:CreateTexture(nil,"OVERLAY")
      z:SetTexture(cfg.statusbar_texture)
      z:SetVertexColor(1,0.1,0,.6)
      z:SetPoint("TOPRIGHT")
      z:SetPoint("BOTTOMRIGHT")
	  s:SetFrameLevel(1)
      s.SafeZone = z
      -- custom latency display
      local l = lib.gen_fontstring(s, cfg.font, 10, "THINOUTLINE")
      l:SetPoint("CENTER", -2, 17)
      l:SetJustifyH("RIGHT")
	  l:Hide()
      s.Lag = l
      f:RegisterEvent("UNIT_SPELLCAST_SENT", cast.OnCastSent)
    end
4) Where do I adjust how many buffs/debuffs are in each row for the Target frame?
In lib.lua find the functions that create buffs/debuffs:
Code:
705.  lib.createBuffs = function(f)
Code:
738.  lib.createDebuffs = function(f)
... and adjust the values as desired. If you want to make the icons bigger or smaller, and have the length of each row adjust automatically, change the size value. If you want to have a specific number of icons on each row, change the value passed to the SetWidth call from:
Code:
717.		b:SetWidth(f:GetWidth())
to something like:
Code:
		b:SetWidth(((b.size+b.spacing)*4)-b.spacing)
... where 4 is the number of icons you want to show on each row.
  Reply With Quote