From 4ca8075cfd32dbd4790b8c66c2219d8fbb583505 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 9 Nov 2008 12:00:44 +0100 Subject: [PATCH] Added Bindings.xml to allow binding of keys through the Blizzard KeyBinding menu --- Bartender4.lua | 20 +++++++ Bindings.xml | 143 ++++++++++++++++++++++++++++++++++++++++++++++++ locale/deDE.lua | 1 + locale/enUS.lua | 1 + locale/esES.lua | 1 + locale/esMX.lua | 1 + locale/frFR.lua | 1 + locale/koKR.lua | 1 + locale/ruRU.lua | 1 + locale/zhCN.lua | 1 + locale/zhTW.lua | 1 + 11 files changed, 172 insertions(+) create mode 100644 Bindings.xml diff --git a/Bartender4.lua b/Bartender4.lua index e7ce7f3..58a468a 100644 --- a/Bartender4.lua +++ b/Bartender4.lua @@ -36,6 +36,26 @@ function Bartender4:OnInitialize() if LDB then createLDBLauncher() end + + BINDING_HEADER_Bartender4 = "Bartender4" + BINDING_CATEGORY_Bartender4 = "Action Bars" + for i=1,10 do + if i > 1 then + _G[('BINDING_CATEGORY_BT4BLANK%d'):format(i)] = "Action Bars" -- myBindings2 compat + _G[('BINDING_HEADER_BT4BLANK%d'):format(i)] = "Bartender4 " .. L["Bar %s"]:format(i) + end + for k=1,12 do + _G[("BINDING_NAME_CLICK BT4Button%dSecure:LeftButton"):format(((i-1)*12)+k)] = ("Bartender4 %s %s"):format(L["Bar %s"]:format(i), L["Button %s"]:format(k)) + end + end + BINDING_HEADER_BT4PET = "Bartender4 " .. L["Pet Bar"] + BINDING_CATEGORY_BT4PET = "Action Bars" + BINDING_HEADER_BT4STANCE = "Bartender4 " .. L["Stance Bar"] + BINDING_CATEGORY_BT4STANCE = "Action Bars" + for k=1,10 do + _G[("BINDING_NAME_CLICK BT4PetButton%d:LeftButton"):format(k)] = ("Bartender4 %s %s"):format(L["Pet Bar"], L["Button %s"]:format(k)) + _G[("BINDING_NAME_CLICK BT4StanceButton%d:LeftButton"):format(k)] = ("Bartender4 %s %s"):format(L["Stance Bar"], L["Button %s"]:format(k)) + end end function Bartender4:HideBlizzard() diff --git a/Bindings.xml b/Bindings.xml new file mode 100644 index 0000000..430df3c --- /dev/null +++ b/Bindings.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/locale/deDE.lua b/locale/deDE.lua index 165d493..e137279 100644 --- a/locale/deDE.lua +++ b/locale/deDE.lua @@ -16,6 +16,7 @@ if not L then return end -- L["Bars"] = true -- L["Bars unlocked. Move them now and click Lock when you are done."] = true -- L["Bartender4"] = true +-- L["Button %s"] = true -- L["Button Grid"] = true -- L["Button Lock"] = true -- L["Button Look"] = true diff --git a/locale/enUS.lua b/locale/enUS.lua index 36eba6a..307607e 100644 --- a/locale/enUS.lua +++ b/locale/enUS.lua @@ -16,6 +16,7 @@ L["Bar Style & Layout"] = true L["Bars"] = true L["Bars unlocked. Move them now and click Lock when you are done."] = true L["Bartender4"] = true +L["Button %s"] = true L["Button Grid"] = true L["Button Lock"] = true L["Button Look"] = true diff --git a/locale/esES.lua b/locale/esES.lua index 9232686..49549c3 100644 --- a/locale/esES.lua +++ b/locale/esES.lua @@ -16,6 +16,7 @@ if not L then return end -- L["Bars"] = true -- L["Bars unlocked. Move them now and click Lock when you are done."] = true -- L["Bartender4"] = true +-- L["Button %s"] = true -- L["Button Grid"] = true -- L["Button Lock"] = true -- L["Button Look"] = true diff --git a/locale/esMX.lua b/locale/esMX.lua index 903e2b5..48c5968 100644 --- a/locale/esMX.lua +++ b/locale/esMX.lua @@ -16,6 +16,7 @@ if not L then return end -- L["Bars"] = true -- L["Bars unlocked. Move them now and click Lock when you are done."] = true -- L["Bartender4"] = true +-- L["Button %s"] = true -- L["Button Grid"] = true -- L["Button Lock"] = true -- L["Button Look"] = true diff --git a/locale/frFR.lua b/locale/frFR.lua index 5177b55..6c6d05b 100644 --- a/locale/frFR.lua +++ b/locale/frFR.lua @@ -16,6 +16,7 @@ L["Bar Style & Layout"] = "Disposition & style de la barre" L["Bars"] = "Barres" L["Bars unlocked. Move them now and click Lock when you are done."] = "Barres déverrouillées. Déplacez-les maintenant et cliquez sur Verr. une fois que vous avez terminé." L["Bartender4"] = "Bartender4" +-- L["Button %s"] = true L["Button Grid"] = "Grille des boutons" L["Button Lock"] = "Verrouiller les boutons" L["Button Look"] = "Look des boutons" diff --git a/locale/koKR.lua b/locale/koKR.lua index f5f3272..e8bb1c8 100644 --- a/locale/koKR.lua +++ b/locale/koKR.lua @@ -16,6 +16,7 @@ L["Bar Style & Layout"] = "바 스타일 & 배치" L["Bars"] = "바" -- L["Bars unlocked. Move them now and click Lock when you are done."] = true -- L["Bartender4"] = true +-- L["Button %s"] = true L["Button Grid"] = "버튼 무늬" L["Button Lock"] = "버튼 고정" L["Button Look"] = "버튼 외형" diff --git a/locale/ruRU.lua b/locale/ruRU.lua index 662af35..4cbd20c 100644 --- a/locale/ruRU.lua +++ b/locale/ruRU.lua @@ -16,6 +16,7 @@ L["Bar Style & Layout"] = "Расположение и вид панелей" L["Bars"] = "Панели" -- L["Bars unlocked. Move them now and click Lock when you are done."] = true -- L["Bartender4"] = true +-- L["Button %s"] = true L["Button Grid"] = "Пустые кнопоки" L["Button Lock"] = "Блокировать кнопки" L["Button Look"] = "Вид кнопок" diff --git a/locale/zhCN.lua b/locale/zhCN.lua index 6e180c0..712022e 100644 --- a/locale/zhCN.lua +++ b/locale/zhCN.lua @@ -16,6 +16,7 @@ L["Bar Style & Layout"] = "动作条风格与布局" L["Bars"] = "动作条" L["Bars unlocked. Move them now and click Lock when you are done."] = "动作条已解锁. 现在可以移动,完成后点击锁定." L["Bartender4"] = "Bartender4" +-- L["Button %s"] = true L["Button Grid"] = "显示空按钮" L["Button Lock"] = "按钮锁定" L["Button Look"] = "按钮外观" diff --git a/locale/zhTW.lua b/locale/zhTW.lua index 8ea5a1c..2de68fb 100644 --- a/locale/zhTW.lua +++ b/locale/zhTW.lua @@ -16,6 +16,7 @@ L["Bar Style & Layout"] = "動作條樣式和佈局" L["Bars"] = "動作條" -- L["Bars unlocked. Move them now and click Lock when you are done."] = true -- L["Bartender4"] = true +-- L["Button %s"] = true L["Button Grid"] = "顯示空按鈕" L["Button Lock"] = "按鈕鎖定" L["Button Look"] = "按鈕外觀"