Quantcast
WoWInterface - View Single Post - Syntax Problem
Thread: Syntax Problem
View Single Post
02-17-13, 09:34 PM   #2
Kendian
A Molten Giant
 
Kendian's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 614
I'm dim. I figured it out.
Code:
local sStats_Zone, sStats_ZoneText = sStats:CreateModule("Zone")


local ZoneText = CreateFrame("Frame")
ZoneText:Hide()
ZoneText:SetScript("OnUpdate", function(self, elapsed)
                  zone = GetZoneText() .. " : " .. GetSubZoneText()
                  sStats:SetModuleText(sStats_ZoneText, zone, "")
            end)

-- Initialize
sStats.RegisterCallback(sStats_Zone, "sStats_Modules_Ready", function()

		ZoneText:Show()

end)
__________________
  Reply With Quote