pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Lua pastebin - collaborative debugging tool View Help


Posted by Katae on Mon 23 Nov 01:49
report abuse | download | new post

  1. local cf, coordX, coordY, Coords
  2. if modules.Coords.enabled or modules.Location.enabled then
  3.         cf, coordX, coordY = CreateFrame'frame', 0, 0
  4.         cf:RegisterEvent'ZONE_CHANGED_NEW_AREA'
  5.         cf:SetScript("OnUpdate", function() coordX, coordY = GetPlayerMapPosition'player' end)
  6.         cf:SetScript("OnEvent", function(self, event, ...) if not WorldMapFrame:IsShown() then SetMapToCurrentZone() end end)
  7.         WorldMapFrame:HookScript("OnHide", SetMapToCurrentZone)
  8.         function Coords() return format(modules.Coords.fmt or "%d,%d", coordX*100, coordY*100) end
  9. end

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post