View Single Post
07-15-10, 07:30 PM   #44
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Originally Posted by ffcloud2000 View Post
the Z keybind seems to be the only key that wants to work properly.. all the other keybinds after seem to start back at actionid1 like i'd have to assign each id before the bind

for example i changed the first 4 keybinds to

Code:
bars={
 {B=24,W=12,V=-500,H=0,
  K={[13]='Z',[14]='X',[15]='SHIFT-Q',[16]='SHIFT-E',
     'SHIFT-W','SHIFT-A','SHIFT-S','SHIFT-D',
     'F1','F2','F3','F4'}
 }}
Couldn't you instead just create 2 bars and only assign the keybindings to the second one.
Also instead of using nil, because the settings are kept out of global scope you can just use a nil variable i.e.
lua Code:
  1. bars={
  2.  {B=24,W=12,V=-500,H=0,
  3.   K={nil,nil,nil,nil,nil,nil,
  4.      nil,nil,nil,nil,nil,nil,
  5.      'Z','X','SHIFT-Q','SHIFT-E',
  6.      'SHIFT-W','SHIFT-A','SHIFT-S','SHIFT-D',
  7.      'F1','F2','F3','F4',},
  8.  },}

would become
lua Code:
  1. bars={
  2.  {B=24,W=12,V=-500,H=0,
  3.   K={n,n,n,n,n,n,
  4.      n,n,n,n,n,n,
  5.      'Z','X','SHIFT-Q','SHIFT-E',
  6.      'SHIFT-W','SHIFT-A','SHIFT-S','SHIFT-D',
  7.      'F1','F2','F3','F4',},
  8.  },}
ofcourse n could be any variable (r,x,y,z etc.)
  Reply With Quote