Quantcast SecureGroupHeader InitialConfig scale does not affect header - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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.

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » SecureGroupHeader InitialConfig scale does not affect header

Thread Tools
Display Modes

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