Quantcast WoWInterface - View Single Post - SecureGroupHeader InitialConfig scale does not affect header
View Single Post
11-15-16, 12:46 PM   #1
A Pyroguard Emberseer
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,739
SecureGroupHeader InitialConfig scale does not affect header

When a scale is set in the initialconfiguration of a secure groupheader unit button it affects the button, but not the header.

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

The result is sth like this:

0.5 scale:

0.8 scale:

1 scale:

1.25 scale: (header does not even fit all the unit buttons!)

The header resize calculation works of the unit button width/height (https://github.com/tomrus88/Blizzard...aders.lua#L231), but for whatever reason it is ignoring the scale of the button resulting in a way to large unit header on low scale values and to low size if the scale is > 1.

This destroys all offsets since it only works for scale 1 properly.
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

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

Last edited by zork : 11-15-16 at 01:11 PM.