Quantcast
WoWInterface - View Single Post - Would it be possible to get value of element during table construction?
View Single Post
08-01-16, 03:55 AM   #8
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
Originally Posted by SDPhantom View Post
Why not have it default to height if iconSize is absent (nil)?
You can then use a fallback assignment like the following:
Code:
local height = G["castbar"]["player"]["height"];
local size = G["castbar"]["player"]["iconSize"] or height;
castbar:SetHeight(height);
icon:SetSize(size,size);
That problem with that you lose the set vaule every time you "uncheck" same size.
  Reply With Quote