View Single Post
11-27-20, 12:23 PM   #2
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
SOLVED!

Lua Code:
  1. for _, bar in pairs(self.bars) do
  2.         if bar then
  3.             ClearOverrideBindings(bar)
  4.  
  5.             for _, button in ipairs(bar.buttons) do
  6.                 if button.keyBoundTarget then
  7.                     for k = 1, select('#', GetBindingKey(button.keyBoundTarget)) do
  8.                         local key = select(k, GetBindingKey(button.keyBoundTarget))
  9.                         if key and key ~= '' then
  10.                             SetOverrideBindingClick(bar, false, key, button:GetName())
  11.                         end
  12.                     end
  13.                 end
  14.             end
  15.         end
  16.     end
  Reply With Quote