Download
(3Kb)
Download
Updated: 12-03-11 01:58 PM
Pictures
File Info
Updated:12-03-11 01:58 PM
Created:10-18-10 11:09 AM
Downloads:5,875
Favorites:10
MD5:

Arp Minimap  Popular! (More than 5000 hits)

Version: 1.12
by: Tobbe8716 [More]

Arp_Minimap

THERE WILL BE NO MORE UPDATES BECOUSE I HAVE QUIT THE GAME
But this will probably work for this expansion and maybe the next to.

If someone is interested in continuing the work PM.


Features
Zone Text
Time
Square
Hides alot if buttons hidden
Right-click - Calendar Toggle
Middle-Click - Tracking Select

Config
Is available through lua

Code:
---------------------------------------------------------------------------------------------------------------------------
--  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --
---------------------------------------------------------------------------------------------------------------------------
	
-------------
-- Options --
-------------
	scale = 1                 							-- Scale
	X = -11												-- X pos
	Y = -11												-- Y pos
	anchor = "TOPRIGHT"									-- Anchor
	usezonetext = true									-- Use Zonetext
	hidetime = false									-- Hide Time
	
-------------	
-- Borders --
-------------	
	useborders = true             						-- Enables or disables the white border on the minimap. True/False
	bordersize = 2										-- Border size
	rc = 0												-- Red
	gc = 0												-- Green
	bc = 0												-- Blue
	a = 1												-- Transperancy

-----------	
-- Quest --
-----------	
	qparent = Minimap         							-- Use "Minimap" or "UIParent".
	qanchor = "BOTTOMRIGHT"   							-- Where to anchor on the qparent
	qposx = 60           								-- X Offset
	qposy = -10         								-- Y Offset
	qheight = 500             							-- Height of the quest tracker

----------
-- Font --
----------
	font = "FONTS\\FRIZQT__.ttf"
	timefont = 12										-- Clock font size
	timeypos = 8.5										-- Time Y pos
	zonefont = 14										-- Zone font size
	zoneypos = -10										-- Zone Y pos
	
------------------------------------------------------------------------------------------------------------------------------------	
-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config--
------------------------------------------------------------------------------------------------------------------------------------
Credits
bMinimap by Blooblahguy. Some of the code was taken from him.

1.12
* Fixed LFG if you have the map on the left side

1.11
* Update for 4.3

1.1
* Update for 4.2
Optional Files (0)


Post A Reply Comment Options
Unread 09-01-15, 02:46 PM  
Bashurr
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Garrison Button

Hey for some reason the garrison button is floating where the blizz minimap would be. Ive tried minimap button frame but that doesnt work
Report comment to moderator  
Reply With Quote
Unread 09-26-12, 06:00 PM  
Clamsoda
A Frostmaul Preserver

Forum posts: 269
File comments: 35
Uploads: 0
MiniMapBattlefieldFrame and MiniMapLFGFrame have been combined into QueueStatusMinimapButton. Looks like a straight-forward fix. I'll try to hack something together tonight.

EDIT: Fixed. Producing no errors as of my short testing, keep me updated. It appears no extra code is needed to prevent the LFG or BG queue frame from appearing off-screen if on the right side or bottom of the screen.

Replace the entire Arp_Minimap.lua file with the code below. Be sure to preserve your config options if neccesary.

Lua Code:
  1. local mailicon = "Interface\\AddOns\\Arp_Minimap\\mail"
  2. local blankTex = "Interface\\Buttons\\WHITE8x8"
  3. local backdrop = {bgFile = blankTex, edgeFile = blankTex, edgeSize = 1, insets = { left = -1, right = -1, top = -1, bottom = -1}}
  4.  
  5. ---------------------------------------------------------------------------------------------------------------------------
  6. --  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --  Config --
  7. ---------------------------------------------------------------------------------------------------------------------------
  8.    
  9. -------------
  10. -- Options --
  11. -------------
  12.     scale = 1                                           -- Scale
  13.     X = -11                                             -- X pos
  14.     Y = -11                                             -- Y pos
  15.     anchor = "TOPRIGHT"                                 -- Anchor
  16.     usezonetext = true                                  -- Use Zonetext
  17.     hidetime = false                                -- Hide Time
  18.    
  19. -------------  
  20. -- Borders --
  21. -------------  
  22.     useborders = true                                   -- Enables or disables the white border on the minimap. True/False
  23.     bordersize = 1                                      -- Border size
  24.     rc = 0                                              -- Red
  25.     gc = 0                                              -- Green
  26.     bc = 0                                              -- Blue
  27.     a = 1                                               -- Transperancy
  28.  
  29. -----------
  30. -- Quest --
  31. -----------
  32.     qparent = Minimap                                   -- Use "Minimap" or "UIParent".
  33.     qanchor = "BOTTOMRIGHT"                             -- Where to anchor on the qparent
  34.     qposx = 60                                          -- X Offset
  35.     qposy = -10                                         -- Y Offset
  36.     qheight = 500                                       -- Height of the quest tracker
  37.  
  38. ----------
  39. -- Font --
  40. ----------
  41.     font = "FONTS\\FRIZQT__.ttf"
  42.     timefont = 12                                       -- Clock font size
  43.     timeypos = 8.5                                      -- Time Y pos
  44.     zonefont = 14                                       -- Zone font size
  45.     zoneypos = -10                                      -- Zone Y pos
  46.    
  47. ------------------------------------------------------------------------------------------------------------------------------------   
  48. -- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config-- End Config--
  49. ------------------------------------------------------------------------------------------------------------------------------------
  50.  
  51.  
  52. -- Code Start --
  53. Minimap:SetMaskTexture('Interface\\Buttons\\WHITE8x8')
  54. Minimap:SetScale(scale)
  55. Minimap:SetFrameStrata("LOW")
  56. Minimap:ClearAllPoints()
  57. Minimap:SetPoint(anchor, UIParent, X, Y)
  58.  
  59. -- Zone text
  60. if (usezonetext == true) then
  61. MinimapZoneTextButton:SetParent(Minimap)
  62. MinimapZoneTextButton:SetPoint('CENTER', Minimap, 'TOP', 4, zoneypos)
  63. MinimapZoneTextButton:SetFrameStrata('HIGH')
  64. MinimapZoneText:SetFont(font, zonefont, 'OUTLINE')
  65. MinimapZoneText:SetJustifyH"CENTER"
  66. else
  67. MinimapZoneTextButton:Hide()
  68. end
  69.  
  70. -- Border
  71. if (useborders == true) then
  72.     Minimap:SetBackdrop{edgeFile = 'Interface\\Buttons\\WHITE8x8', edgeSize = bordersize, insets = {left = -bordersize/2, right = -bordersize/2, top = -bordersize/2, bottom = -bordersize/2}}
  73.     Minimap:SetBackdropColor(1, 1, 1, 1)
  74.     Minimap:SetBackdropBorderColor(rc, gc, bc, a)
  75. end
  76.  
  77. -- Hide Stuff
  78. MinimapBorder:Hide()
  79. MinimapBorderTop:Hide()
  80. MinimapZoomIn:Hide()
  81. MinimapZoomOut:Hide()
  82. MiniMapVoiceChatFrame:Hide()
  83. GameTimeFrame:Hide()
  84. MiniMapTracking:Hide()
  85. MiniMapMailFrame:ClearAllPoints()
  86. MiniMapMailIcon:SetTexture(mailicon)
  87. MiniMapMailBorder:Hide()
  88. MinimapNorthTag:SetAlpha(0)
  89.  
  90.  
  91.  
  92. WorldMapFrame:HookScript("OnHide",SetMapToCurrentZone);
  93.  
  94. GuildInstanceDifficulty:ClearAllPoints()
  95. GuildInstanceDifficulty:SetPoint("CENTER", Minimap, "CENTER", -50, 0)
  96.  
  97. -- Mail
  98. if (usezonetext == true) then
  99. MiniMapMailFrame:SetPoint("BOTTOM", Minimap, 0, 3.5)
  100. else
  101. MiniMapMailFrame:SetPoint("TOPRIGHT", Minimap, 3, 3)
  102. end
  103.  
  104. -- Quets mm, Battelfield, Difficulty
  105. WatchFrame:ClearAllPoints()
  106. WatchFrame.ClearAllPoints = function() end
  107. WatchFrame:SetPoint("TOPRIGHT", qparent, qanchor, qposx, qposy)
  108. WatchFrame.SetPoint = function() end
  109. WatchFrame:SetClampedToScreen(true)
  110. WatchFrame:SetHeight(qheight)
  111. WatchFrame:SetScale(0.9)
  112.  
  113. MiniMapWorldMapButton:Hide()
  114.  
  115. -- QueueStatusMinimapButton
  116. QueueStatusMinimapButton:ClearAllPoints()
  117. QueueStatusMinimapButton:SetPoint("BOTTOMLEFT", Minimap, "BOTTOMLEFT", -3, -3)
  118.  
  119. MiniMapInstanceDifficulty:SetParent(Minimap)
  120. MiniMapInstanceDifficulty:ClearAllPoints()
  121. if (usezonetext == true) then
  122. MiniMapInstanceDifficulty:SetPoint('TOP', Minimap, 0, -30)
  123. MiniMapInstanceDifficulty:SetScale(0.6)
  124. else
  125. MiniMapInstanceDifficulty:SetPoint('TOPLEFT', Minimap, 3, -3)
  126. MiniMapInstanceDifficulty:SetScale(0.9)
  127. end
  128. MiniMapInstanceDifficulty:SetFrameStrata('HIGH')
  129.  
  130. -- Time
  131. if (hidetime == true) then
  132. local f = CreateFrame("Frame", nil, UIParent)
  133. f:RegisterEvent("ADDON_LOADED")
  134. f:SetScript("OnEvent", function(self, event, name)
  135.     if name == "Blizzard_TimeManager" then
  136.         TimeManagerClockButton:Hide()
  137.         TimeManagerClockButton:SetScript("OnShow", function(self)
  138.             TimeManagerClockButton:Hide()
  139.         end)
  140.     end
  141. end)
  142. else
  143.  
  144. LoadAddOn('Blizzard_TimeManager')
  145. local clockFrame, clockTime = TimeManagerClockButton:GetRegions()
  146. clockFrame:Hide()
  147. clockTime:Show()
  148. clockTime:SetFont(font, timefont, 'OUTLINE')
  149. TimeManagerClockButton:ClearAllPoints()
  150. TimeManagerClockButton:SetPoint('CENTER', Minimap, 'BOTTOM', -3, timeypos)
  151.  
  152.  
  153. GameTimeFrame:HookScript('OnEvent', function()
  154.     if CalendarGetNumPendingInvites() > 0 then
  155.         clockTime:SetTextColor(0, 1, 0)
  156.     else
  157.         clockTime:SetTextColor(MinimapZoneText:GetTextColor())
  158.     end
  159. end)
  160. end
  161.  
  162. Minimap:EnableMouseWheel(true)
  163. Minimap:SetScript('OnMouseWheel', function(self, delta)
  164.     if delta > 0 then
  165.         Minimap_ZoomIn()
  166.     else
  167.         Minimap_ZoomOut()
  168.     end
  169. end)
  170.  
  171. Minimap:SetScript('OnMouseUp', function(self, button)
  172.     if (button == 'MiddleButton') then
  173.         ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, self, - (Minimap:GetWidth() * 0.7), -3)
  174.     elseif (button == 'RightButton') then
  175.         ToggleCalendar()
  176.     else
  177.         Minimap_OnClick(self)
  178.     end
  179. end)
  180.  
  181. function GetMinimapShape() return 'SQUARE' end

Also: You may easily swap which button opens the calendar and tracking menu. The last function in the file, "MiddleButton" is mapped to tracking menu, "RightButton" is mapped to the calendar. Swap these two values to switch which button opens which menu.
Last edited by Clamsoda : 09-26-12 at 08:29 PM.
Report comment to moderator  
Reply With Quote
Unread 09-02-12, 02:46 PM  
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view AddOns

Forum posts: 275
File comments: 1200
Uploads: 12
Please update this! Getting this error:


Message: Interface\AddOns\Arp_Minimap\Arp_Minimap.lua:113: attempt to index global 'MiniMapBattlefieldFrame' (a nil value)
Time: 09/02/12 21:45:23
Count: 1
Stack: Interface\AddOns\Arp_Minimap\Arp_Minimap.lua:113: in main chunk

Locals: mailicon = "Interface\AddOns\Arp_Minimap\mail"
blankTex = "Interface\Buttons\WHITE8x8"
backdrop = <table> {
insets = <table> {
}
bgFile = "Interface\Buttons\WHITE8x8"
edgeSize = 1
edgeFile = "Interface\Buttons\WHITE8x8"
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = 0.9
(*temporary) = <userdata>
(*temporary) = "BOTTOMRIGHT"
(*temporary) = 60
(*temporary) = -10
(*temporary) = <userdata>
(*temporary) = nil
(*temporary) = "attempt to index global 'MiniMapBattlefieldFrame' (a nil value)"
Report comment to moderator  
Reply With Quote
Unread 09-01-11, 08:11 PM  
Conceald
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
how do i show the mail icon over the time?
Report comment to moderator  
Reply With Quote
Unread 01-13-11, 08:36 PM  
dreamcatcher
A Black Drake
 
dreamcatcher's Avatar
AddOn Author - Click to view AddOns

Forum posts: 82
File comments: 24
Uploads: 1
The Right-click tracking select is really the Middle-Click
The Middle-Click calendar toggle is really the Left-Click
Report comment to moderator  
Reply With Quote
Unread 12-13-10, 10:27 AM  
Donmc
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Right click tracking isn't working for me for some reason. Merely pings the map when i right click.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: