Download
(6Kb)
Download
Updated: 08-15-09 05:56 AM
Pictures
File Info
Updated:08-15-09 05:56 AM
Created:11-08-08 05:54 PM
Downloads:7,424
Favorites:52
MD5:

mBindings  Popular! (More than 5000 hits)

Version: 3
by: Mickelus [More]

Allows you to easily keybind abilities from your spellbook and macros from your macro frame(give your macros different names or this wont work).
Mouseover an ability/macro and press a key to bind them together.
I have also implented a profile system which allows you to easily swap between diffrent sets of keybindings.

mBindProfile(number or string) may be used change profile with a macro or an addon.
Example 1: mBindProfile(1) will load the first profile in the list.
Example 2: mBindProfile("tank") will load a profile named tank.
Example 3: /run if GetActiveTalentGroup()==1 then mBindProfile("damage") else mBindProfile("heal") end will change to the damage profile if you're in primary spec or change to the heal profile if you're in secondary spec.

2 Added macro bindings and profile thingie.
1.01 Fixed a major and a minor bug.
Optional Files (0)


Post A Reply Comment Options
Unread 06-09-11, 05:27 AM  
GOSYDELIX
A Flamescale Wyrmkin
 
GOSYDELIX's Avatar

Forum posts: 120
File comments: 58
Uploads: 0
wtb a update to this!
__________________
Report comment to moderator  
Reply With Quote
Unread 01-17-11, 03:22 PM  
ßlink
A Deviate Faerie Dragon

Forum posts: 19
File comments: 50
Uploads: 0
loved this addon, really wish it would get an update!
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 04:37 PM  
koldblud
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
How do i get this to work with the new cataclysm patch?
Report comment to moderator  
Reply With Quote
Unread 06-14-10, 05:59 AM  
Stoty
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
I understand reasoning, but I think this requirement would be better cevered by a profile copy feature, where you could copy your original profile, then add/modify the extra bindings you wish. This way you could modify just a few bindings, and keep the rest of them, but the profiles would still be completely independent after creation, and after loading a profile, your bindings would be always the same, independent of what profiles, and in what order you had previously loaded.

Of course it's your plugin and the design choices are yours to make, I am happily using my modified version.


Originally posted by Mickelus
You can easily overwrite keys by binding them to spells that do not exist (I think).
The way it is at the moment you can change just a few bindings, lets say you want to use a bunch of items in a boss fight but you still want to keep all the bidnings from your dps/heal/tank profile.
Report comment to moderator  
Reply With Quote
Unread 06-14-10, 05:42 AM  
Mickelus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 117
Uploads: 8
You can easily overwrite keys by binding them to spells that do not exist (I think).
The way it is at the moment you can change just a few bindings, lets say you want to use a bunch of items in a boss fight but you still want to keep all the bidnings from your dps/heal/tank profile.
Report comment to moderator  
Reply With Quote
Unread 06-12-10, 02:55 PM  
Stoty
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
I guess you mean that if you use the same button in both specs, they will be overwritten , so in most cases this does not matter.

In my opinion it's inconsistent with the talent switching feature, where your settings are completely separated. If you leave a button empty on your action bar in profile1, then switch talents back and forth, it won't be filled even if it's filled in profile2.

On the addon setting screen, where I see my bindings, I see that I have profile1 active, and I see that I do not have anything bound to say 'X', however, when I press X, it will still work, and it may be something expensive/undesirable in that spec.

Say, I have 1,2,3 buttons bound to taunts on one spec, and 1 and 2 to heals on another (I mean 3 to be unbound). I am fumble-fingered, and instead of pressing 2, press 3, and instead of missed healing, I get a 'taunt nearest enemy' macro. Not nice.

In short, if you are aware that profile switching works the way it does in the current release does, you can still use the plugin, but it's at best confusing, at worst can lead to/exaggerate mistakes, and I can see no situation where the current operation is better than the one with my patch.

Originally posted by Mickelus
Yes, I'm aware of that, why is it a problem?
Report comment to moderator  
Reply With Quote
Unread 06-12-10, 10:43 AM  
Mickelus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 117
Uploads: 8
Yes, I'm aware of that, why is it a problem?
Report comment to moderator  
Reply With Quote
Unread 06-12-10, 07:23 AM  
Stoty
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Profile changing bug

This is the best bindings mod I've found, however, there is a serious bug in the profile switching code.

When you change profiles, only the bindings in the new profile are added, the ones in the old profile are not removed.

Thus, If you have two profiles, one where you bind a spell to 'x' and another where you bind it to 'y', after changing profiles the spell is bound to both 'x' and 'y'.

Here is the fixed mBindProfile function:


Code:
function mBindProfile(asd)
	--Remove all bindings defined by the current CSV
	--Save the current CSV
	oldCSV = mbindCSV

	if type(asd)=="number" then
		mbindCSV = asd
	elseif type(asd)=="string" then
		for i=1, #mbindSV do
			if mbindSV[i].name==asd then
				asd = i
				mbindCSV = asd
				break
			end
		end
		if type(asd)=="string" then
			print("Profile does not exist.")
			return
		end
	end
	print("Attempting to delete old bindings from "..(mbindSV[oldCSV].name)..".")
	for i=1, #(mbindSV[oldCSV].bindings) do
		--print(mbindSV[oldCSV].bindings[i].name)
		SetBinding(mbindSV[oldCSV].bindings[i].bind1)
		if mbindSV[oldCSV].bindings[i].bind2 then
			SetBinding(mbindSV[oldCSV].bindings[i].bind2)
		end
	end

	print("Attempting to load bindings from "..(mbindSV[mbindCSV].name)..".")
	for i=1, #(mbindSV[mbindCSV].bindings) do
		--print(mbindSV[mbindCSV].bindings[i].name)
		SetBinding(mbindSV[mbindCSV].bindings[i].bind1, mbindSV[mbindCSV].bindings[i].name)
		if mbindSV[mbindCSV].bindings[i].bind2 then
			SetBinding(mbindSV[mbindCSV].bindings[i].bind2, mbindSV[mbindCSV].bindings[i].name)
		end
	end
	updateBindProfile()
end

regards
Last edited by Stoty : 06-12-10 at 07:23 AM.
Report comment to moderator  
Reply With Quote
Unread 10-08-09, 11:28 AM  
Mickelus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 117
Uploads: 8
ooo, seems like there's no such feature =C.
Report comment to moderator  
Reply With Quote
Unread 10-08-09, 09:42 AM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 716
File comments: 428
Uploads: 22
Originally posted by Mickelus
yes
How then, when I hover over an ability in my spellbook and scroll it doesn't bind.
Report comment to moderator  
Reply With Quote
Unread 10-06-09, 12:12 PM  
Mickelus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 117
Uploads: 8
yes
Report comment to moderator  
Reply With Quote
Unread 10-06-09, 05:18 AM  
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 716
File comments: 428
Uploads: 22
Can I bind the mousewheel with this?
Report comment to moderator  
Reply With Quote
Unread 09-09-09, 05:25 PM  
ßlink
A Deviate Faerie Dragon

Forum posts: 19
File comments: 50
Uploads: 0
Originally posted by Mickelus
there's an editbox that should say profile by default, change that to whatever you want to name your profile, press enter and then press the new profile button C=
an edit box where? ingame i see the checkbox and thats it. do i have to create new profiles through the lua?

doh wow addons menu. nvm haha
Last edited by ßlink : 09-09-09 at 05:31 PM.
Report comment to moderator  
Reply With Quote
Unread 09-09-09, 05:18 PM  
Mickelus
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 117
Uploads: 8
there's an editbox that should say profile by default, change that to whatever you want to name your profile, press enter and then press the new profile button C=
Report comment to moderator  
Reply With Quote
Unread 09-09-09, 05:16 PM  
ßlink
A Deviate Faerie Dragon

Forum posts: 19
File comments: 50
Uploads: 0
i do not understand how to make different profiles
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: