A simple square map interface.
These default MiniMap buttons are attached to the border frame and can be toggled on / off via the Interface menu or “/squaremap” command:
Calendar / Mission Reports / Tracking / Instance Difficulty Flag
Other MiniMap options that can be toggled on / off via the Interface menu or “/squaremap” command:
Boss Health Frames / Clock / Zone Name
These objects are hidden with no option to enable:
Zoom In / Out Buttons / World Map Button / North Compass Pointer
Other Features:
- Toggled options are saved per character.
- The MiniMap is zoomable using your mouse wheel.
- The MiniMap defaults to the standard in-game location (upper right) but can be moved anywhere by holding down ALT + LEFT CLICK and dragging.
- Position is saved per character.
- Gathering Nodes are detected using the mask of the default circular interface. This cannot be modified. Even though a square map interface gives you more viewable areas around you gathering nodes are hard-coded to a circular interface.
Map Location Reset Instructions (Potentially Dangerious)
Moved the map into a position on your screen that you don't like? Reset the default map position by deleting this file and relaunching WoW. You must be logged out completely for this to work. Use with caution as this will effect the position of other addons and in-game item placements.
File: layout-local.txt
Location: \WTF\ACCOUNT\ACCOUNTNAME\SERVERNAME\CHARACTERNAME
Map Location Reset Instructions (Safe)
You can selectively delete only the map location portion of the code without effecting the position placement of other items or addons by removing only this portion and restarting your game. This will reset Square Map to the default location on your screen without a complete reset of any other moved items.
Code To Remove From layout-local.txt
Frame: Minimap
FrameLevel: X
Anchor: X
X: X
Y: X
W: X
H: X
Recommendations
Want to clear additional buttons created by other addons around your minimap? I highly suggest using the addon MBB. It works great in addition to Square Map.
11/24/20 - The launch of Shadowlands and the introduction of Covenants removes the traditional Mission Report icon from the minimap until you've joined a Covenant at max level. It will then display the icon of your chosen Covenant. I'm still leveling and have a full time job so any code revisions will come after I max. Thanks for your patience, I miss the option too but understand the system they implemented.
Solved some coding issues with the Shadowlands 9.0.1 release. Going to come back and keep cleaning up code and icon placements around the map since some of those anchors changed as well. Thanks for sticking with me! The Mission Report button can now be properly attached to the map! More code changes that I literally just learned about but fixed one of the main issues with my ALPHA and BETA releases. Going to take some time and cleanup the addon description as well as the change log history since we're going on 6+ years since I started this project.
SquareMap v9.0.1-10.27.20-BETA
Solved some coding issues with the map boarder since patch 9.0.1 changed how all of that works. Moved some of the standard map icons slightly to the edge of the map rather than being centered over the edge. I noted several addons that add a button to the map would follow a path around the edge that did not mirror the way I'd force set these icons to be located. Now that behavior matches. There are a few icons I still have to set and will be updating those locations further in the coming weeks. I have to do various things to trigger them to appear so it just takes a little time.
Things I could not solve:
- I cannot get the Garrison/Order Hall/Warfronts icon to follow path directions any more. For some reason with the 9.0.1 update it broke that attachment. I can still call it to be enabled or disabled and set it's size but I cannot set it's location around the map anymore. If someone has coding guru to figure this out let me know! I've resorted to using the addon MoveAnything to force place this on the minimap where I wanted it. It's not idea and I'm sorry I can't force set it right now. I've spent two days attempting all sorts of code mumbo jumbo and just cannot get to adhere to any attempts to set it's position.
- The sheer amount of addons that want to put a button on the minimap is amazing. I run a lot of addons so my map was completely cluttered. I solved this with the addon MBB. I cannot suggest this addon highly enough. Check out the comment section to see code changes to make it work in 9.0.1 until the addon author gets around to it.
- Removed the code that tells the minimap where to appear by default on your screen. If you want a true default upper-right-hand corner of your screen location delete this section from your characters local-layout.txt while not logged in.
Frame: Minimap
FrameLevel: 2
Anchor: BOTTOM
X: 0
Y: 8
W: 140
H: 140
When you log in next your map will be in the default upper-right-hand corner of the screen instead of where I told it to be previously. You can still move the map if you like so only do this if you want to default it back to true original position.
Code Guru's!!!
See some stuff in my code that needs a revamp and tested it yourself because you're uber smart??? Let me know so I can test it myself. If it fixes something or improves the addon I want it. Keep in mind I'm a full time working adult and can't spend tons of time on code even though I still play almost every day. Prost!
Alpha release for Shadowlands. Fixed some immediate issue but others remain. Interested in anyone who can help figure out how to place the border behind the buttons and how to move the Garrison/Order Hall/Missions button back to the location in the code. It will not obey any more. Blizz changed how some of the background textures work and it's got things a bit messy. Poke around the code. If you come up with a fix comment and I'll test. If it works I'll implement and list you as a contributor.
Making some progress. They completely changed how background textures and inherited borders work. Getting there. They also changed how the Garrison/Mission Reports button attaches to the map for some crazy reason.
WOW! What a cluster. The new 9.0.1 patch has changed some coding needs as every xpac does. Working on it now gang. Thanks for your patience.
In reply to szz9pza42:
Good luck! It is serviceable but yes, it needs work :)
v8.3-01.26.20
Updated for patch 8.3. Welcome to Visions of N'Zoth. "Gul'kafh an'qov N'Zoth"
Edit: found it, line 63. In config.lua I changed the 3 "0.75"'s to "0" and the border is black. Yay! Also line 60 controls the thickness.
Thanks for keeping this updated.
Anyway to change border color? Or delete it completely?
I was gonna do it myself but hit a little stumbling block at line 56 in config:
MinimapBackdrop:SetBackdrop({
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
...the subfolders of which are missing AFAIK
v8.1.5-03.27.19
Minor bug fix for Garrison/Order Hall button. Was causing minor bug issues on hover. Updated for patch 8.1.5. Tschuss!
This is one of the few addons I know of (the other one is Farmit which is ancient and abandoned but still great in what it does) that resets its position if you disable it and reload. So what this means is, i always have to make sure this addon is enabled. No big deal, just an observation. I am one of those people that enables and disables addons constantly on many characters, and i have learned to deal with it via old school bat files.
In reply to machinelf:
File: layout-local.txt
Location: \WTF\ACCOUNT\ACCOUNTNAME\SERVERNAME\CHARACTERNAME
Yay, it's back. My UI just isnt the same without Squaremap. Thanks!!!
In reply to machinelf:
Thanks for the helpful debug info. Was just able to log today for the 1st time and wouldn't you know none of these bugs happened to me while testing on BETA. Figures! I'm working on it tonight and hope to have it hammered out, or at least less buggy, very very soon. Stick with me guys and gals.
1x SquareMap\Config.lua:96: attempt to index global 'MiniMapVoiceChatFrame' (a nil value)
SquareMap\Config.lua:96: in main chunk
Locals:
ADDON = "SquareMap"
SquareMap = <table> {
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "HIGH"
(*temporary) = <userdata>
(*temporary) = -16
(*temporary) = 0
(*temporary) = <userdata>
(*temporary) = "attempt to index global 'MiniMapVoiceChatFrame' (a nil value)"
Message: Couldn't open Interface\AddOns\SquareMap\-- http://wowprogramming.com/docs/widgets#minimap
Time: Wed Jul 18 00:41:03 2018
Count: 3
Message: Couldn't open Interface\AddOns\SquareMap\-- MiniMap Code Reference
Time: Wed Jul 18 00:41:03 2018
Count: 3
Message: Couldn't open Interface\AddOns\SquareMap\-- /run print((select(4, GetBuildInfo())));
Time: Wed Jul 18 00:41:03 2018
Count: 3
Message: Couldn't open Interface\AddOns\SquareMap\-- Interface # Output
Time: Wed Jul 18 00:41:03 2018
Count: 3