Thread Tools Display Modes
05-17-11, 01:40 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Header units and SetSize

I thought setting the size of a unit spawned under a header is only doable in the attributs settings of the header using oUF-initialConfigFunction. But I accidently forgot to add that and used SetSize for the self object in the style function and it worked.

I have not tested spawning the header under the pressure of InCombatLockdown(). Maybe that is where things go wierd. Not sure.

Hmmm...?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 05-17-11 at 01:46 AM.
  Reply With Quote
05-17-11, 03:35 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Yeah, it blows up in combat. The style function is oUF is executed as insecure code in 4.x. There really isn't a way around it as we can't create frames from within the secure environment (which oUF-initialConfigFunction is being executed in).
__________________
「貴方は1人じゃないよ」
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Header units and SetSize


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