/
local ldb = LibStub:GetLibrary("LibDataBroker-1.1") |
-- Register the data source. |
local dataobj = ldb:NewDataObject("Ranch", {type = "data source", text = "Ranch"}) |
local dataobj = ldb:NewDataObject("Ranch", {type = "data source", icon = "Interface\\Addons\\Ranch\\Ranch.tga", text = "Ranch"}) |
-- Create a frame and register the "VARIABLES_LOADED" event on it. |
CreateFrame("Frame", "RanchFrame"); |