Quantcast
WoWInterface - View Single Post - Would it be possible to get value of element during table construction?
View Single Post
07-31-16, 06:34 AM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
Why don't you just construct your icon like this?

Lua Code:
  1. local height = castbar:GetHeight()
  2. icon:SetSize(height, height)

Then you can ditch the variable too.
  Reply With Quote