You don't need any other addon to make oBindings work, but be aware that this is a binding management for mad people.
You need to edit the bindings in the lua files (no ingame configuration)
But if you look in the bindings folder inside oBindings folder you will see some examples.
If you want to make a new profile, for example for a druid you do it like this:
First off, make a file in the bindings folder called "druid.lua" (or call it whatever you want, but for the purpose of this we want to make it simple)
Then have this at the top of the file (edit it in notepad or any other simple text editor):
Code:
if(select(2, UnitClass'player') ~= 'DRUID') then return end
local _, bindings = ...
Then we can start on the bindings itself, we start on naming the bindings group, we shall start with feral
Now, this is where the fun stuff starts.
Here is where we insert all the bindings, it's fairly logical if you look at some of the examples
Code:
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
As you can see over here, if we just are listing up 1,2,3,4,5 etc we don't need the number in front of it, but since we skipped 4 we had to insert [5] infront of the 5
also, the first bit is what type of button it is, like "s" stands for spell, and we got 2 others also, "m" for macro and "i" for item
You can also bind normal keys like this:
Code:
V = 's|spell1',
R = 's|spell2',
T = 's|spell3',
F = 'm|/y HELLO',
when it comes to modifiers it's the same there
Code:
ctrl = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
V = 's|spell1',
R = 's|spell2',
T = 's|spell3',
F = 'm|/y HELLO',
},
Code:
bear = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
},
Since you should start to see the logical part in this i will now explain the last part and then i'll paste in a full example for a druid at the end
The last thing you need in the file is something that link your profile to your specc, since we called our profile "feral" we have to use that name again like this:
Code:
oBindings:RegisterKeyBindings('Feral Combat', bindings.base, feral)
'Feral Combat' Is what the specc is called ingame, bindings.base is the base bindings located in base.lua (you should edit these) and the last part is the name of your local profile here.
Full example:
Code:
if(select(2, UnitClass'player') ~= 'DRUID') then return end
local _, bindings = ...
local feral = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
V = 's|spell1',
R = 's|spell2',
T = 's|spell3',
F = 'm|/y HELLO',
ctrl = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
V = 's|spell1',
R = 's|spell2',
T = 's|spell3',
F = 'm|/y HELLO',
},
shift = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
V = 's|spell1',
R = 's|spell2',
T = 's|spell3',
F = 'm|/y HELLO',
},
alt = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
V = 's|spell1',
R = 's|spell2',
T = 's|spell3',
F = 'm|/y HELLO',
},
bear = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
},
cat = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
},
stealth = {
's|spell1', -- button 1
's|spell2', -- button 2
's|spell3', -- button 3
[5] = 's|spell4', -- button 5
},
} -- this is the ending of local feral = {
oBindings:RegisterKeyBindings('Feral Combat', bindings.base, feral)
Here is a list over modifiers that can be used:
- alt
- ctrl
- shift
- possess
- bar2
- bar3
- bar4
- bar5
- bar6
- stealth
- shadowDance
- shadow
- bear
- cat
- moonkintree
- battle
- defensive
- berserker
- demon
When you are done making your profile you have to go to oBindings.toc and edit that file
You should see a list over files that will be loaded, just add your file like this:
Hope this helps, but be aware this is only for mad people