Download
(4Kb)
Download
Updated: 04-06-10 07:45 AM
Pictures
File Info
Updated:04-06-10 07:45 AM
Created:unknown
Downloads:20,294
Favorites:128
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)


Post A Reply Comment Options
Unread 11-03-08, 06:08 PM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Re: TidyMinimap + Barrel

Still working post 3.0.

Originally posted by dranor
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?
I think I fixed the problem with the repositioning...
Sometimes, directly after logging in, TidyMinimap would gather up all minimap buttons, but some would not be repositioned until a ui reload.

Open TidyMinimap.lua and scroll to the very end, you should see a line like this:
Code:
self:RegisterEvent'ADDON_LOADED'
Press enter to insert a new line, and type:
Code:
self:RegisterEvent'PLAYER_LOGIN'
Worked for me. Feedback?
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."
Last edited by Spellshaper : 11-03-08 at 06:09 PM.
Report comment to moderator  
Reply With Quote
Unread 10-05-08, 08:11 AM  
dranor
A Defias Bandit

Forum posts: 3
File comments: 9
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.
Report comment to moderator  
Reply With Quote
Unread 08-06-08, 03:11 AM  
Pseudopod
A Deviate Faerie Dragon

Forum posts: 16
File comments: 104
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.
Report comment to moderator  
Reply With Quote
Unread 08-03-08, 02:13 PM  
kneeki
A Flamescale Wyrmkin
 
kneeki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 134
File comments: 144
Uploads: 5
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?!
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: 6
Has been working good so far out of the box for Wrath Beta
Report comment to moderator  
Reply With Quote
Unread 07-20-08, 07:45 PM  
zieglar
A Kobold Labourer

Forum posts: 0
File comments: 19
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.
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: 6
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.
Report comment to moderator  
Reply With Quote
Unread 07-20-08, 01:10 PM  
zieglar
A Kobold Labourer

Forum posts: 0
File comments: 19
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.
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: 6
Thank you

Thanks for your bug reports. I have now uploaded a 2.4.3 compatible release.
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.
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
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.
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.
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.
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
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: