WoW Daisy addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon Daisy

Daisy

Game Version: 7.0.3
Total Downloads: 347
Updated: Sep 11, 2016
Created: Sep 8, 2016
download DaisyDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
0.1.0.1 release 932 Bytes Sep 11, 2016 7.0.3 274 download Daisy 0.1.0.1 releaseDownload
0.1.0.0 release 923 Bytes Sep 8, 2016 7.0.3 73 download Daisy 0.1.0.0 releaseDownload

Screenshots

Description

Share this:

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")
Daisy(FTFrame)
	:EnableMouse(true)
	:SetFrameStrata("MEDIUM")
	:SetWidth(200)
	:SetHeight(16)
	:SetPoint("CENTER", 0, 50)
	:SetBackdrop({bgFile = "Interface\\DialogFrame\\UI-DialogBox-Gold-Background"})
	:SetBackdropColor(0,0,0,0.5)

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.

Comments

Add a comment