View Single Post
11-17-16, 08:19 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
I will try your last idea later. The implementation has to be secure. Otherwise it is of no use since raid headers can be spawned in combat.

Maybe I can do this:
Lua Code:
  1. "oUF-initialConfigFunction", ([[
  2.   self:SetWidth(%d)
  3.   self:SetHeight(%d)
  4.   self:GetParent():SetScale(%f)
  5. ]]):format(110,26,0.5)

*edit*

Tested it. The above is the solution!

It works if you set the header scale instead of the unit button scale inside the initialConfiguration.
__________________
| 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 : 11-17-16 at 11:11 AM.