Change this number to change the y-coordinate.
i am using "-20" to get the display more to the middle of the minimap.
/run local p,f,m,t=Minimap,CreateFrame"Frame"m,t=({p:GetChildren()})[49],
p:CreateFontString(0,0,"SystemFont")t:SetPoint("TOP",0,-9)
f:SetScript("OnUpdate",function()p=m:GetFacing()/PI%.5;t:
SetText(format("124cff%02xbb00%.3f",255*(1-abs(4*p-1)^92),p))end)
!!!Attention!!! First delete, then enter new numbers! And not mor than 2 chars. Otherwise you will destroy that macro, because there are 254/255 chars used. So only one additional char is allowed...Code:/run local p,f,m,t=Minimap,CreateFrame"Frame"m,t=({p:GetChildren()})[49],p:CreateFontString(0,0,"SystemFont")t:SetPoint("TOP",0,-20)f:SetScript("OnUpdate",function()p=m:GetFacing()/PI%.5;t:SetText(format("124cff%02xbb00%.3f",255*(1-abs(4*p-1)^92),p))end)
ah. and of course +Rep for the macro! i'm using it quite often...
Thanks, Schabbot; that edit will do the trick. The only reason why the text isn't over top of the arrow graphics is because this macro is too big. If I tried adding any more features (like bringing the text over top of arrows), the macro would be quite a bit bigger than the 255 macro character limit.
I could easily write an addon to do what this macro does with lots of simple improvements, however I figured a macro was less of a burden than a full blown addon download on explorers. I'll throw one together and see how big an improvement it makes. Until then, just replace the "-9" with "-20" or so like Schabbot suggested.
Last edited by Saiket; 01-25-2008 at 08:04 PM. Reason: Typo!
AddOn developer and long time explorer.
Great little change, Schabbot. Fixed my problem.
+Rep
bump, this macro pwns
Nice +rep!
thx very useful
nice macro thx
nice macro thx for sharing it!
The problem is that when you guys post it in codeboxes and stuff, the "\" are filtered out, so basically post codes that are sensitive in a pastebin:
http://pastebin.com/pastebin.php?dl=f213979e5
(in a clean .txt file format :P)
nice job could be useful
Thanks for posting![]()
Just what i needed
Thank you![]()