public
Description: WoW Powerleveling addon
Homepage: http://www.tekkub.net/
Clone URL: git://github.com/tekkub/tourguide.git
Click here to lend your support to: tourguide and make a donation at www.pledgie.com !
Adding 'dump' function to save points while I'm playing and retrieve them 
later.
tekkub (author)
Fri Dec 21 21:35:51 -0800 2007
commit  244c503e52840141c0a0fbf11d12627641fa4b6a
tree    8ab1255737976d0f3f969cee67823cb16a5e750f
parent  a6978062368d271f566ce41afa1365abc9b86347
...
1
2
 
3
4
5
...
175
176
177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
...
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
0
@@ -1,5 +1,6 @@
0
 
0
 local OptionHouse = LibStub("OptionHouse-1.1")
0
+local Astrolabe = DongleStub("Astrolabe-0.4")
0
 
0
 
0
 local myfaction = UnitFactionGroup("player")
0
@@ -175,3 +176,17 @@ function TourGuide.ColorGradient(perc)
0
   return r1 + (r2-r1)*relperc, g1 + (g2-g1)*relperc, b1 + (b2-b1)*relperc
0
 end
0
 
0
+
0
+function TourGuide:DumpLoc()
0
+ if IsShiftKeyDown() then
0
+ self:Print(self.db.global.savedpoints or "No saved points")
0
+ elseif IsControlKeyDown() then
0
+ self.db.global.savedpoints = nil
0
+ self:Print("Saved points cleared")
0
+ else
0
+ local _, _, x, y = Astrolabe:GetCurrentPlayerPosition()
0
+ local s = string.format("%s, %s, (%.2f, %.2f) -- %s %s", GetZoneText(), GetSubZoneText(), x*100, y*100, self:GetObjectiveInfo())
0
+ self.db.global.savedpoints = (self.db.global.savedpoints or "") .. s .. "\n"
0
+ self:Print(s)
0
+ end
0
+end

Comments

    No one has commented yet.