Hiyas, all. This has me stumped, so forgive me if it's an obvious question. I have a small add on I wrote to go with Seerah's lovely Sstats add on. Sstats Zone. I'm trying to change the syntax of the readout to display zone AND subzone. The problem comes in when I try to separate them with a colon, like so.
Zone:Subzone.
What I end up with are syntax errors, or just ZoneSubzone, no colon. Here is the code I have. I know it's something simple, but I can't find it.
Code:
local sStats_Zone, sStats_ZoneText = sStats:CreateModule("Zone")
local ZoneText = CreateFrame("Frame")
ZoneText:Hide()
ZoneText:SetScript("OnUpdate", function(self, elapsed)
Subzone = GetMinimapZoneText()
zone = GetZoneText()
sStats:SetModuleText(sStats_ZoneText, zone, Subzone, ":")
end)
-- Initialize
sStats.RegisterCallback(sStats_Zone, "sStats_Modules_Ready", function()
ZoneText:Show()
end)
My thanks, for any/all help~