Alright! I changed "Addon" to "Minimap" - everything works now! I can view coords, the map is formatted as oMinimap states and I can right click to zoom out of the world map. :D
I did a bit of tweaking to re-align and re-size the coordinates - things should be just fine now. Thank you all very, very much! I certainly hope I don't run into any troubles.
Edit: What I should say, is I just looked at Moon's coords.lua code, and changed "Addon" to "Minimap" in the 2 spots where it appeared. I was doing this while you posted your code, p3lim, so I have not tried it. What I'm using is working; so hopefully there will be no sudden problems. ^^"
1) Copy the Minimap.lua file.
2) Paste to desktop.
3) Remove all code from file, and paste in Moon's code.
4) Title the file "coords" because I have no idea what else to call it. XD
5) Move "coords.lua" to the "core" folder.
6) Start up WoW.
The result: Absolutely nothing. oMinimap doesn't register this new .lua file. :( Should there be something in minimap.lua to tell the addon to refer to the "coords.lua"...?
Hm, now I'm not sure if I'm inserting the code incorrectly, but I removed the old code pertaining to Coords and put in the piece Moon Witch wrote and unfortunately, my map's become distorted. The code has been put in after this line:
The map retains all of the default Blizzard appearance settings (round boarder, zoom buttons etc) but the map itself is set to a square form, the tracking button is squared, and the mail icon is appearing as the envelope icon. If I remove Moon Witch's code, everything displays as it should.
I noticed there is no sort of closure to the code Moon Witch provided, so I'm not sure if that's a problem or not. This is the guess of someone who doesn't know LUA at all. ^^''
Ah okay. I wonder if Lanerra has had the same issue since she too was looking to have coordinates displayed in oMinimap.
I keep wondering what exactly is causing this code to cease the world map's zoom out function. Other minimap addons display coordinates without affecting the world map but in the various addons I've been looking at, none of them have a code as simple or straight-forward as the one in this thread. Seems like I may have to go back to SLCoords. :(
Yes, I've tried pMinimap, but I wanted to stick with my modified oMinimap because I'd rather have the envelope than the "New Mail!" text. However, I am not running pMinimap at all - I was referring to your pMap addon. :)
Right now, my character is standing in the Undercity.
1) I click M to bring up map. Undercity map is shown.
2) Right click on the map, but the map does not zoom out.
3) The coordinates shown on oMinimap flicker very briefly to some other coords.
I only have this trouble when running oMinimap AND a map addon (I've tested it with Cartographer and your pMap.)
I've been trying to add coordinates to oMinimap, and got them to show as well as be aligned to my liking using the following:
local coord = self:CreateFontString(nil, "OVERLAY")
coord:SetFont(STANDARD_TEXT_FONT, 13, "OUTLINE")
coord:SetPoint("TOP", 0, 5)
local x, y = GetPlayerMapPosition("player")
Unfortunately, this seems to be affecting the world map. I cannot right-click the world map to zoom out, plus the coords shown on the minimap briefly change to some other coords on during that right-click (too fast to determine what). This does not occur when I have oMinimap disabled. Unfortunately, I only managed to assemble this code modification by looking at p3lim's "pMinimap" - mimicking what he coded to have "New Mail!" text appear instead of an envelope icon. Basically, I have no idea how to remedy this problem and would really appreciate any help. I will resort to reinstalling SLCoords if need be, but I'd much rather have the coords integrated into oMinimap itself.
The only other modification I've made to the default oMinimap code is to change that drop-shadow to a solid border outline. This modification was made a few days ago and hadn't affected the minimap's performance at all.