From a44b12b76fdc884e48d4a9a0b42cf1d552169a00 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 2 Sep 2008 17:02:51 +0200 Subject: [PATCH] Added LDB launcher plugin --- Bartender4.lua | 30 ++++++++++++++++++++++++++++++ locale/deDE.lua | 2 ++ locale/enUS.lua | 2 ++ locale/esES.lua | 2 ++ locale/frFR.lua | 2 ++ locale/koKR.lua | 2 ++ locale/ruRU.lua | 3 ++- locale/zhCN.lua | 2 ++ locale/zhTW.lua | 2 ++ 9 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Bartender4.lua b/Bartender4.lua index a806297..979c606 100644 --- a/Bartender4.lua +++ b/Bartender4.lua @@ -106,3 +106,33 @@ function Bartender4.modulePrototype:ToggleOptions() end end Bartender4:SetDefaultModulePrototype(Bartender4.modulePrototype) + +local L_BT_LEFT = L["|cffffff00Click|r to toggle bar lock"] +local L_BT_RIGHT = L["|cffffff00Right-click|r to open the options menu"] + +LibStub("LibDataBroker-1.1"):NewDataObject("Bartender4", { + type = "launcher", + text = "Bartender4", + OnClick = function(_, msg) + if msg == "LeftButton" then + if Bartender4.Locked then + Bartender4["Unlock"](Bartender4) + else + Bartender4["Lock"](Bartender4) + end + elseif msg == "RightButton" then + if LibStub("AceConfigDialog-3.0").OpenFrames["Bartender4"] then + LibStub("AceConfigDialog-3.0"):Close("Bartender4") + else + LibStub("AceConfigDialog-3.0"):Open("Bartender4") + end + end + end, + icon = "Interface\\Icons\\INV_Drink_05", + OnTooltipShow = function(tooltip) + if not tooltip or not tooltip.AddLine then return end + tooltip:AddLine("Bartender4") + tooltip:AddLine(L_BT_LEFT) + tooltip:AddLine(L_BT_RIGHT) + end, +}) diff --git a/locale/deDE.lua b/locale/deDE.lua index 18359ce..b10e694 100644 --- a/locale/deDE.lua +++ b/locale/deDE.lua @@ -96,3 +96,5 @@ if not L then return end -- L["Toggle the use of the modifier-based self-cast functionality."] = true -- L["Toggle the use of the right-click self-cast functionality."] = true -- L["Zoom"] = true +-- L["|cffffff00Click|r to toggle bar lock"] = true +-- L["|cffffff00Right-click|r to open the options menu"] = true diff --git a/locale/enUS.lua b/locale/enUS.lua index d94fa1a..6052274 100644 --- a/locale/enUS.lua +++ b/locale/enUS.lua @@ -96,3 +96,5 @@ L["Toggle the button grid."] = true L["Toggle the use of the modifier-based self-cast functionality."] = true L["Toggle the use of the right-click self-cast functionality."] = true L["Zoom"] = true +L["|cffffff00Click|r to toggle bar lock"] = true +L["|cffffff00Right-click|r to open the options menu"] = true diff --git a/locale/esES.lua b/locale/esES.lua index 4c78733..6850a97 100644 --- a/locale/esES.lua +++ b/locale/esES.lua @@ -96,3 +96,5 @@ if not L then return end -- L["Toggle the use of the modifier-based self-cast functionality."] = true -- L["Toggle the use of the right-click self-cast functionality."] = true -- L["Zoom"] = true +-- L["|cffffff00Click|r to toggle bar lock"] = true +-- L["|cffffff00Right-click|r to open the options menu"] = true diff --git a/locale/frFR.lua b/locale/frFR.lua index 73fa3a0..e8d8f10 100644 --- a/locale/frFR.lua +++ b/locale/frFR.lua @@ -96,3 +96,5 @@ L["Toggle the button grid."] = "Affiche ou non la grille des boutons." L["Toggle the use of the modifier-based self-cast functionality."] = "Utilise ou non la fonctionnalité de ciblage auto. basé sur les modificateurs." L["Toggle the use of the right-click self-cast functionality."] = "Utilise ou non la fonctionnalité de ciblage auto. au clic droit." L["Zoom"] = "Zoom" +-- L["|cffffff00Click|r to toggle bar lock"] = true +-- L["|cffffff00Right-click|r to open the options menu"] = true diff --git a/locale/koKR.lua b/locale/koKR.lua index 5fd1628..62c6314 100644 --- a/locale/koKR.lua +++ b/locale/koKR.lua @@ -96,3 +96,5 @@ L["Toggle the button grid."] = "버튼 무늬를 전환합니다." L["Toggle the use of the modifier-based self-cast functionality."] = "기능키-기반 자신에게 시전 기능의 사용을 전환합니다." L["Toggle the use of the right-click self-cast functionality."] = "우-클릭시 자신에게 시전 기능의 사용을 전환합니다." L["Zoom"] = "확대" +-- L["|cffffff00Click|r to toggle bar lock"] = true +-- L["|cffffff00Right-click|r to open the options menu"] = true diff --git a/locale/ruRU.lua b/locale/ruRU.lua index e90abbe..9997141 100644 --- a/locale/ruRU.lua +++ b/locale/ruRU.lua @@ -1,6 +1,5 @@ --[[ $Id$ ]] -- Please make sure to save the file as UTF-8, BUT WITHOUT THE UTF-8 BOM HEADER; ¶ --- Translated by Eritnull ( StingerSoft aka Шептун) & Alekc local L = LibStub("AceLocale-3.0"):NewLocale("Bartender4", "ruRU") if not L then return end @@ -97,3 +96,5 @@ L["Toggle the button grid."] = "Переключение отображения L["Toggle the use of the modifier-based self-cast functionality."] = "Переключение использования функции Чтение на себя по умолчанию." L["Toggle the use of the right-click self-cast functionality."] = "Переключение использования функции ПКМ Чтение на себя." L["Zoom"] = "Увеличение" +-- L["|cffffff00Click|r to toggle bar lock"] = true +-- L["|cffffff00Right-click|r to open the options menu"] = true diff --git a/locale/zhCN.lua b/locale/zhCN.lua index e7af4b1..d188d91 100644 --- a/locale/zhCN.lua +++ b/locale/zhCN.lua @@ -96,3 +96,5 @@ L["Toggle the button grid."] = "勾选该选项将显示空的按钮。" L["Toggle the use of the modifier-based self-cast functionality."] = "关闭/开启 自我施法功能。" L["Toggle the use of the right-click self-cast functionality."] = "关闭/开启 使用右键点击对自己施法功能。" L["Zoom"] = "缩放" +-- L["|cffffff00Click|r to toggle bar lock"] = true +-- L["|cffffff00Right-click|r to open the options menu"] = true diff --git a/locale/zhTW.lua b/locale/zhTW.lua index 85d44b1..c52f3a7 100644 --- a/locale/zhTW.lua +++ b/locale/zhTW.lua @@ -96,3 +96,5 @@ L["Toggle the button grid."] = "顯示空白按鈕" L["Toggle the use of the modifier-based self-cast functionality."] = "切換使用自我施法功能" L["Toggle the use of the right-click self-cast functionality."] = "切換使用右鍵自我施法功能" L["Zoom"] = "放大" +-- L["|cffffff00Click|r to toggle bar lock"] = true +-- L["|cffffff00Right-click|r to open the options menu"] = true