326 Downloads Last Updated: Sep 11, 2016 Game Version: 7.0.3

The Daisy function allows you to daisy-chain setters (or any function) on any object without having to re-reference your source object in a separate instruction.

local FTFrame = CreateFrame("FRAME")
	:SetPoint("CENTER", 0, 50)
	:SetBackdrop({bgFile = "Interface\\DialogFrame\\UI-DialogBox-Gold-Background"})

It works by creating an object (the daisy object) that propagates function calls to the provided object, but always returns the daisy object. This allows us to continuously call functions on the return value of any functions we call on the daisy object.


Posts Quoted: