Download
(4 Kb)
Download
Updated: 04-06-10 07:45 AM
Pictures
File Info
Updated:04-06-10 07:45 AM
Created:unknown
Downloads:17,121
Favorites:132
MD5:
TidyMinimap  Popular! (More than 5000 hits)
Version: 0.8
by: Chrippa [More]
TidyMinimap is a small addon that will tidy your minimap by moving all the custom buttons into it's own frame. I wrote this addon because I wanted similar functionality as FuBar plugins but without FuBar.

There is no in-game configuration, all settings are in the Settings.lua file to keep it simple.

There is a slash command (/tidy) that gives you the name of the minimap button you're currently hovering with your mouse. Use this to add buttons that are not automatically picked up to the Settings.lua.

When upgrading, don't overwrite Settings.lua if you want to keep your old settings.



Workaround for the CT minimap buttons (thanks to woowoowoo):
Edit the CT_Core\CT_Core.lua file and change line 112 from:
minimapFrame = module:getFrame(minimapFrameSkeleton);
to
minimapFrame = module:getFrame(minimapFrameSkeleton, nil, "CTMod2_MinimapButton");

Once you changed that, just add ['CTMod2_MinimapButton'] = true, to your settings.
0.8 (2010-04-04):
- Fixed a bug that broke TidyMinimap when trying to hide borders.


0.7 (2009-12-14):
- Updated for patch 3.3.
- Replaced deprecated :GetFrameType() call with :GetObjectType()


0.6 (2008-11-11):
- Fixed bug introduced in 0.5.
- Added slash commands suggested by Spellshaper:

scan: Force TidyMinimap to look for minimap buttons
name: Prints the name of the frame you're currently hovering

Use with '/tidy command'.
If no command is specified it defaults to the 'name' command.


0.5 (2008-11-10):
- Updated TOC for patch 3.0.
- Improved button scanning once again.


0.4 (2008-07-20):
- Updated with fixes for patch 2.4.3.
- Hiding borders are now optional, defaults to false.


0.3 (2007-07-22):
- Rewrote most of the code to make it easier to read and more
efficient.

- Should pick up more buttons. Though, still haven't figured out
a way to pick up the CT addon buttons. They are technically not
minimap buttons (doesn't have the minimap set as their parent).

- Now supports minimap buttons created by addons loaded on demand.

- Moved the frame to bottom of the minimap and turned off nudge in
the default settings.


0.2 (2007-06-22):
- Split the config from the main file (when upgrading, make backup
from the old file if you're not using default settings).

- Added a slash command. Type /tidy when hovering a minimap button
that is not moved correctly, it will display it's name to be put
into the config file.


0.1 (2007-06-18):
- First release.
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
0.7
4kB
Chrippa
12-17-09 02:36 PM
0.6
4kB
Chrippa
11-11-08 09:27 AM


Post A Reply Comment Options
Unread 10-05-08, 08:11 AM  
dranor
A Defias Bandit

Forum posts: 3
File comments: 10
Uploads: 0
TidyMinimap + Barrel

I'm having a little issue with Barrel and TidyMinimap, it seems that TM captures the buttons created by barrel but it doesn't reposition them correctly until you open a profession panel (like enchanting)

Also, how i can make TM place minimap icons in several rows?
Last edited by dranor : 10-05-08 at 08:32 AM.
dranor is offline Report comment to moderator  
Reply With Quote
Unread 08-06-08, 03:11 AM  
Pseudopod
A Deviate Faerie Dragon

Forum posts: 16
File comments: 103
Uploads: 0
Is it somehow possible to set the anchor to center so that if a new button is added, it will stay centered? Also how do I change spacing? When I change the anchor from topright to topleft and growth from left to right, the spacing between the buttons changes from a couple of pixels to don't know how, but anyways there's a much wider gap between the buttons depending on how I set the anchor & growth.

Edit My settings:
layout = {
pos = 'CENTER#UIParent#BOTTOM#-50#60',
anchor = 'topright',
grow = 'left',
scale = 0.9,
borders = true,
},

Somehow the x-position seems to change on its own (like 50 px, dunno if it's because some button disappears or appears, though I can't see why any would do that without changing the settings and within the same session). Any idea what's up with that?
Last edited by Pseudopod : 08-06-08 at 10:34 AM.
Pseudopod is offline Report comment to moderator  
Reply With Quote
Unread 08-03-08, 02:13 PM  
kneeki
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 132
File comments: 156
Uploads: 21
I'm glad I found this addon of yours before I started creating one myself. Just installed it and it started working 'out of the box'!

*cheers from a fellow settings.lua author! Who needs config windows anyway?!
kneeki is offline Report comment to moderator  
Reply With Quote
Unread 07-30-08, 11:01 AM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 11
Has been working good so far out of the box for Wrath Beta
Acacia_ is offline Report comment to moderator  
Reply With Quote
Unread 07-20-08, 07:45 PM  
zieglar
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 0
Originally posted by Chrippa
I'm not sure I understand what you mean, do you want to the buttons to grow down instead of left? If so changing the 'grow' setting in the Settings.lua file to 'down' instead of 'left' should do the trick.
Sorry , My english is pool .
Thank you for your addon and answer.
zieglar is offline Report comment to moderator  
Reply With Quote
Unread 07-20-08, 01:43 PM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 5
Originally posted by zieglar
Is nice addon.
I have some question with TidyMinimap's layout

If I want like this to grow button
b |-
o ||
r ||
d ||
e |v
r |

I should be how to modify in Settings.lua?
thank you.
I'm not sure I understand what you mean, do you want to the buttons to grow down instead of left? If so changing the 'grow' setting in the Settings.lua file to 'down' instead of 'left' should do the trick.
Chrippa is offline Report comment to moderator  
Reply With Quote
Unread 07-20-08, 01:10 PM  
zieglar
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 0
Is nice addon.
I have some question with TidyMinimap's layout

If I want like this to grow button
b |-
o ||
r ||
d ||
e |v
r |

I should be how to modify in Settings.lua?
thank you.
zieglar is offline Report comment to moderator  
Reply With Quote
Unread 07-20-08, 11:09 AM  
Chrippa
A Kobold Labourer
 
Chrippa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 5
Thank you

Thanks for your bug reports. I have now uploaded a 2.4.3 compatible release.
Chrippa is offline Report comment to moderator  
Reply With Quote
Unread 07-16-08, 03:40 AM  
tattooedpierre
An Aku'mai Servant
 
tattooedpierre's Avatar
AddOn Author - Click to view AddOns

Forum posts: 38
File comments: 95
Uploads: 4
In settings.lua add an entry to ignore the new ClockUI:

'['TimeManagerClockButton'] = true,

.. under the section to ignore things (like Mail and BG indicator). For me, this fixed the 2.4.3 errors I got.

Also, someone had said earlier about using a script to identify buttons.. you dont need to do this. The addon has a built-in slash command '/tidy' to identify buttons you're hovering over.
Last edited by tattooedpierre : 07-16-08 at 05:14 AM.
tattooedpierre is offline Report comment to moderator  
Reply With Quote
Unread 07-15-08, 06:37 PM  
Cope
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Error after 2.4.3

Receiving following error after patch and tidyminimap is no longer picking up some minimap buttons.

Date: 2008-07-15 16:55:45
ID: 51
Error occured in: Global
Count: 8
Message: ..\AddOns\TidyMinimap\TidyMinimap.lua line 129:
attempt to call method 'GetTexture' (a nil value)
Debug:
[C]: GetTexture()
TidyMinimap\TidyMinimap.lua:129: updatePositions()
TidyMinimap\TidyMinimap.lua:81: scan()
TidyMinimap\TidyMinimap.lua:89:
TidyMinimap\TidyMinimap.lua:85
Cope is offline Report comment to moderator  
Reply With Quote
Unread 06-14-08, 10:23 AM  
Caffeine
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
The Battleground icon is redrawn on the minimap whenever the UPDATE_BATTLEFIELD_STATUS event is fired. Adding self:RegisterEvent('UPDATE_BATTLEFIELD_STATUS') to the enable method fixes that for me.
Caffeine is offline Report comment to moderator  
Reply With Quote
Unread 10-25-07, 11:02 AM  
Speeddymon
A Murloc Raider

Forum posts: 7
File comments: 24
Uploads: 0
Originally posted by Izadore
Works great in theory. Doesn't actually pick up buttons when you manually add them, it misplaces the bar when you add buttons, and moves the incorrect buttons altogether.

For example:
Code:
		['WoWKB_MiniMapButton'] = true,
		['RecipeRadarMinimapButton'] = true,
		['LfgxButton'] = true,
Added those to the list. The result? LFGX button moved, other 2 stayed in place.
Added 'CECBMiniMapButton', resulting in LFGX and and WoWKB buttons being moved, rest stayed in place.
Removed CECB and kept the rest, WoWKB moved back to a minimap button and LFGX was the only thing remaining. RecipeRadar didn't move at all.

Plus, it moved from being docked at the bottom to being docked at the upperleft of the minimap progressing to the left.

Not sure how well this thing was tested, but it screws things up more than it helps. Sorry. The concept is sound if you can work the bugs out.

EDIT: NM, I see this isn't compatible with FuBar installed from the previous posts. You should really put a note in for that.
Perhaps you should try updating to FuBar 3.0 from wowace.com. Then if that doesn't fix it, use GetMouseFocus():GetName() to find out the real name of the button's frame and grab that instead.
Speeddymon is offline Report comment to moderator  
Reply With Quote
Unread 10-25-07, 11:00 AM  
Speeddymon
A Murloc Raider

Forum posts: 7
File comments: 24
Uploads: 0
If your buttons are moving to somewhere on the minimap, it is most likely due to that addon's builtin positioning code. MobInfo-2 (the version that is current as of this posting) does the same thing when you open the options and click on one of the tabs. I reported the issue to the author for MI2, and he will fix it in the next version. The simple solution is to edit the settings for TidyMinimap and add the top minimap button of the group that is moved to the ignore section.

Point your mouse at that top button and then type /script GetMouseFocus():GetName()

Whatever is printed in the chat window is what you need to put in the settings.lua file.
Speeddymon is offline Report comment to moderator  
Reply With Quote
Unread 10-11-07, 08:48 AM  
redwolf
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I have the same problem. Sometimes when I zone (Into an instance or BG) some, not all of my minimap buttons will move to the left. I think this is a problem with the trinity bars minimap button tho
redwolf is offline Report comment to moderator  
Reply With Quote
Unread 10-04-07, 08:17 PM  
Rockxlee
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
buttons move to middle of screen after zoning out of bg

my mini buttons move to the middle of the screen after a bg game. Anyone else having this problem?
Rockxlee is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: