Code:
framesConstructor:create
Create is a method/function of framesConstructor
Code:
self.constructor = constructor
Same as
Code:
framesConstructor.constructor = constructor
Code:
function framesConstructor:create(name, width, height, constructor, updater)--method for frame creation - simulates OOP
local tbl = {}
tbl.frame = CreateFrame("Frame", name .. "BackgroundFrame", mainFrame)
tbl.name = name
tbl.height = height
tbl.width = width
tbl.constructor = constructor
tbl.updater = updater
return tbl
end