Download
(49Kb)
Download
Updated: 11-05-08 08:20 PM
Pictures
File Info
Updated:11-05-08 08:20 PM
Created:unknown
Downloads:43,146
Favorites:342
MD5:

Detached MiniMap Buttons  Popular! (More than 5000 hits)

Version: 0.9.47
by: borohir [More]

This mod attempts to 'detach' all your minimap buttons, allowing you to place them anywhere on your screen. Positions are saved per server/character and restored next login.

This is the first version of this mod, I am sure not all kinks are worked out. I have tested it only with the mods I have, so please let me know which mods create buttons that I cannot detach so I can load them and see what-is-what.

Not all minimap buttons are detected at start up (such as FuBar plugin mods, which has its own moving anyway). A slash command is provided so you can rescan for buttons: /dmbs. This will also reposition any buttons it failed to find at startup.

Special thanks to AnduinLothar without whose code and ideas in Mobile Minimap Buttons I would not have thought of this.

Very special thank to acruz2772 on wowinterface for guiding me to changes for TBC! His excellent explanation made things much easier!

Slash Commands:
/dmbs : look for new buttons.
/dmbs nodock : buttons will NOT try to dock to Minimap when close to it.
/dmbs dock : buttons will try to dock to Minimap when close to it. This is default.
/dmbs reset : reset all buttons back to initial positions.
/dmbs config: bring up UI
CHANGES:


0.9.35:Removed the hooking stuff for SMM and lockdown as it is no longer needed! Big thank you to Arjuna of SMM!
Changed variable isMoving to isDragging, this will fix compatability with mods which also use this.isMoving (like ImprovedErrorFrame).
Changed event back to PLAYER_ENTERING_WORLD since VARAIBLES_LOADED didn't help.
Changed TOC to 20003 (no 20004 or 20005?).
0.9.36:Added LFGX support.
Fixed (?) ICU button.
Added UI configuration: /dmbs config. This is a first attempt, if all goes well, I will clean it up and release this as version 1.0.0. Here is what the config does:
The first TAB are global options:
Use Grid X and Y turn on/off positioning buttons by grid coordinates. The sliders specify how big the grid is. Grid anchors
are always TOP and LEFT of the button. X,Y grid scale can be set independent of each other. Grid changes take place without a
restart.
Force Scale to 1.0 forces all buttons to a scale of 1.0 at start up. Good for strange scaled buttons. This only affects buttons at start up.
Lock All Buttons prevents DMBS from dragging buttons. This does not mean other addons cannot move the buttons.
The second TAB contains controls PER BUTTON:
On the left is a list of all the buttons DMBS knows about. Not in the list, then I do nothing to it.
Along the right/bottom are some sliders for moving buttons.
Scale allows you to change the size of a button from 30% to 200%. NOTE THIS DOES NOT WORK FOR ALL BUTTONS, so try it and see.
Force Hidden forces a button to be invisible. Unchecking will attempt to show the button, but the button is not forced to be
visible. NOTE: OTHER ADDONS MAY HIDE/SHOW A BUTTON. I MAKE NO EFFORT TO PREVENT THAT.
Lock Button stops DMBS from dragging a button. This does not mean other addons cannot move the buttons.
At the bottom are some buttons to reset position/center a button in case it gets lost.
0.9.37:Updated TOC for 2.1.
Added support for PoliteWhisper.
0.9.38:Added CraftBot support.
Added XCalc support.
Fixed up the /dmbs help text.
Removed some debug stuff.
Attempted fix for scaling error.
0.9.39:Updated TOC.
Fix for Tracking Frame on PTR.
Added some (maybe all) of the buttons produced by ShardAce.
0.9.40:Added profile copying. Use /dmbs config and select a profile, the use the copt button.
Possible fix for Gatherer notes not appearing. Switched event to VARIABLES_LOADED and then delay by 20 seconds before going after buttons.
Added AtlasLootEnhanced.
Added ClearFont2.
Added PhanxChat.
Added Sunn Viewport.
Fix for ShardAce right click on the count button.
0.9.41:Update 2.3 TOC.
Added command: '/dmbs copy [realm]/char' to copy profiles. If realm is NOT given, then current realm is assumed. Realm/Char names are CASE SENSITIVE.
0.9.42:Try to fix up initialization and button placements. Maybe screwed up when Blizz fixed UIEffectiveScale.
Possible fix for ShardAce Healthstone button.
0.9.43:Fix for Alarm Clock Wrangler.
Update TOC.
Fix for NX button.
Fix for scale being nil when clicking a button in UI.
Check GetLeft(),GetTop sometimes not returning anything?
Added Reinhearthe to TOC. Thanks for the updates!!

0.9.44:Fix for WoTLK tracking button.
0.9.45:Greatly reduce CPU usage (finally!)
0.9.46:Attempt to stop taint issues, check InCombat in Update.
Changed the way included and excluded frames are listed and added many more to skip over.
Fix for Chinchilla mouse scroll.
Add libDBIcon to lookups.
Fixes for tracking icon being wierd.
0.9.47:Fixed scroll bar in config.
Added bejeweled. Use RIGHT mouse to move that one, like tooltip says.
Post A Reply Comment Options
Unread 03-30-08, 06:11 PM  
Tweeker
A Cobalt Mageweaver
 
Tweeker's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 234
File comments: 153
Uploads: 5
update

any plans to update this?
__________________
Report comment to moderator  
Reply With Quote
Unread 12-17-07, 01:36 PM  
TDurden
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 25
Uploads: 1
Code for CTMod

Hi borohir,

Can you post the code for modifying CTMod so its button will work in the mod description above, if you know it? I believe it just means naming the button in CTMod, which for some reason they didn't do.

I fixed it once before, but since upgrading CTMod I've lost the changes and can't find the code again. Thanks!
Report comment to moderator  
Reply With Quote
Unread 12-05-07, 03:28 PM  
Syxx
An Onyxian Warder
 
Syxx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 350
File comments: 73
Uploads: 1
Attempting to scale any button results in.....

Code:
[2007/12/05 15:04:00-59-x1]: DetachedMiniButtons\DetachedMiniButtons.lua:1350: attempt to perform arithmetic on local 'scale' (a nil value)
DetachedMiniButtons\DetachedMiniButtons.lua:1372: in function `DMBSButtonList_Click'
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Report comment to moderator  
Reply With Quote
Unread 11-21-07, 07:35 PM  
borohir
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 54
Uploads: 1
Re: re: possible fix for Shardace healthstone button

Yes that is correct, the two buttons are separate, since they use different parents. Not sure about the slash commands, didn't know it had any..if any were positioning commands they will most likely not work since I change the buttons parents, I doubt those commands will still move them. I either try to control them or not, not much half way, and not going to try to intercept any slash commands..

b
Report comment to moderator  
Reply With Quote
Unread 11-21-07, 03:28 PM  
Kyrianna
A Deviate Faerie Dragon

Forum posts: 14
File comments: 16
Uploads: 0
re: possible fix for Shardace healthstone button

Tried out the newest version. Now shardace cannot be positioned via it's own slash commands at all and I'm forced to use DMBS to move it. Furthermore the healthstone button seems to be on a separate anchor from the rest of the shardace addon and has to be dragged separately into the row.
Report comment to moderator  
Reply With Quote
Unread 11-17-07, 05:55 PM  
Kyrianna
A Deviate Faerie Dragon

Forum posts: 14
File comments: 16
Uploads: 0
Problem with ShardAce

The newest version seems to be a bit buggy with ShardAce. The healthstone button gets displaced every time I log on now. Requires me to change the button formation twice to fix it back into a line.
Report comment to moderator  
Reply With Quote
Unread 11-16-07, 06:12 AM  
Trokzilla
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
bug?

edit: nm, fixed ^_^
Last edited by Trokzilla : 11-16-07 at 06:55 AM.
Report comment to moderator  
Reply With Quote
Unread 11-14-07, 07:43 PM  
borohir
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 54
Uploads: 1
Re: Love it, except for performance

Revvy: Not sure..could maybe remove the sanity check in the update..Running PerformanceFu I am 5-6th, below ArkInv, Atlas, Bongos, etc..0.8% More buttons you have, longer it takes, but should not be extreme..

b
Last edited by borohir : 11-14-07 at 07:44 PM.
Report comment to moderator  
Reply With Quote
Unread 11-14-07, 02:20 PM  
Revvy
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Love it, except for performance

I've used DMBS for a long time, and I can't imaging not using it. My only concern is the amount of processor cycles it's taking - more than Cartographer or Bongos.
Is there a way to reduce it's greediness?
Report comment to moderator  
Reply With Quote
Unread 10-31-07, 10:41 AM  
Ixonal
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: 2 things

I worked around it by making the opacity of the minimap 0%. Only thing I dislike about this is that I can still click on it to ping the minimap by accident. given that most of the buttons came back when I unchecked the force hidden box, you might just run that subroutine whenever the GUI is loaded (unless you're already doing that, didn't really check that far)

Originally posted by borohir
LOL OK I will comment it at some point...

Not sure about Bongos..I never tried it..i will test it out see whats up..

b
Report comment to moderator  
Reply With Quote
Unread 10-30-07, 10:09 PM  
borohir
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 54
Uploads: 1
Re: 2 things

LOL OK I will comment it at some point...

Not sure about Bongos..I never tried it..i will test it out see whats up..

b
Report comment to moderator  
Reply With Quote
Unread 10-30-07, 07:29 PM  
Ixonal
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
2 things

ok, so one, you need to comment your code better :P

two, there seems to be issues when (using Bongos2's square map mod) you set the map to be invisible, after reloading the UI, all of the minimap buttons disappear. they can be brought back apparently by checking then unchecking Force Hidden, except for Deadly Boss Mods (just won't come back).
Report comment to moderator  
Reply With Quote
Unread 10-28-07, 06:10 PM  
Syxx
An Onyxian Warder
 
Syxx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 350
File comments: 73
Uploads: 1
Btw, I did want to point out a weird thing that happens with Mobmap. The minimap button can be moved but if it's near the edge of were IT expects the minimap to be (The circle) it'll snap back to that.
Did that make sense? hehe Anyhow, it might not be DMB but Mobmap itself but I thought I'd share that incase there is something you can do. it's not terribly annoying but this is the first time I've had to beat a minimap button to death to get it to go where I want it.

Cheers

EDIT: Just tried Shardace. It's no longer annoying! Woohoo!
Last edited by Syxx : 10-28-07 at 06:57 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-07, 09:20 PM  
nogudnik
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 84
Uploads: 1
Odd bug with ShardAce

Just tried out the new version and was able to move the ShardAce buttons around (pretty cool). I did notice one problem though: I can no longer right click on the count button to bring up the sub menu. I can left and right click on the other too buttons though ...

I'll dig around a bit and see if I can find an easy cause, but I figured you'd like to know too
Report comment to moderator  
Reply With Quote
Unread 10-27-07, 11:19 AM  
borohir
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 54
Uploads: 1
I am not sure I got them all, got the Health and count ones for sure. Unfortunately I have no high level lock to test this with, and have not scanned all the code yet to find all buttons. I will do that a little later.
From what I can tell looking at the code, most things use the Count button as the parent? If that is the case we may be ok..

b
Last edited by borohir : 10-27-07 at 11:25 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: