View Single Post
11-24-18, 01:13 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
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
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 11-24-18 at 01:38 AM.
  Reply With Quote