Thread Tools Display Modes
04-08-09, 10:17 AM   #1
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 94
Resizing Aura Icons on the fly

Hi,

I'd like to change the size of the aura icons via ingame config without reloadui. So I tried this:

Code:
self.Buffs.size = newsize
This only updates the "frame size" for each icon, but not the size of the icons itself. So the gap between them gets virtually larger.

What would I have to do to actually change the icon sizes too?

Thanks in advance,
Luzzifus.
  Reply With Quote
04-09-09, 08:09 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
The easiest way is to just iterate over the aura frame with ipairs(). For example:
Code:
local icons = oUF.units.player.Auras

-- Set the new height:
icons.size = 23

for k, icon in ipairs(icons) do
    icon:SetHeight(icons.size)
    icon:SetWidth(icons.size)
end
  Reply With Quote
04-09-09, 11:00 AM   #3
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 94
Thanks alot!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Resizing Aura Icons on the fly


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off