Using a function in a table as a variable?
Is it possible to use locals or functions in a table of variables? so lets say you have this...
mytable = {
["scale"] = 1,
}
would it be possible to do something like this
local scale
function addon:FigureScale()
do some stuff to get the scale
scale = result
end
mytable = {
["scale"] = scale,
}
or
mytable = {
["scale"] = addon:FigureScale(),
}
??? or some other method that would give me the same functionality?
__________________
"Are we there yet?"
GrimUI
[SIGPIC][/SIGPIC]
|