From 9065b0e95ecd0006793ff92b72beae2e09a8e6d7 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 4 Jan 2009 17:15:25 +0100 Subject: [PATCH] Added new "Hide on Vehicle" preset option, currently in use by the PetBar to hide the single "Attack" button being shown on the engineering chopper mounts and possible other Vehicle-type mounts. --- Bar.lua | 2 ++ Options/Bar.lua | 8 +++++++- PetBar.lua | 1 + locale/deDE.lua | 2 ++ locale/enUS.lua | 2 ++ locale/esES.lua | 2 ++ locale/esMX.lua | 2 ++ locale/frFR.lua | 2 ++ locale/koKR.lua | 2 ++ locale/ruRU.lua | 2 ++ locale/zhCN.lua | 2 ++ locale/zhTW.lua | 7 ++++--- 12 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Bar.lua b/Bar.lua index 92c5406..ea1ca25 100644 --- a/Bar.lua +++ b/Bar.lua @@ -340,6 +340,8 @@ function Bar:InitVisibilityDriver(returnOnly) table_insert(self.hidedriver, "hide") elseif key == "possess" then table_insert(self.hidedriver, "[bonusbar:5]hide") + elseif key == "vehicle" then + table_insert(self.hidedriver, "[target=vehicle, exists]hide") elseif directVisCond[key] then table_insert(self.hidedriver, ("[%s]hide"):format(key)) elseif key == "stance" then diff --git a/Options/Bar.lua b/Options/Bar.lua index 96ec417..baa665b 100644 --- a/Options/Bar.lua +++ b/Options/Bar.lua @@ -185,7 +185,13 @@ function Bar:GetOptionObject() type = "toggle", name = L["Hide when Possessing"], desc = L["Hide this bar when you are possessing a NPC."], - width = "full", + disabled = customEnabled, + }, + vehicle = { + order = 16, + type = "toggle", + name = L["Hide on Vehicle"], + desc = L["Hide this bar when you are riding on a vehicle."], disabled = customEnabled, }, combat = { diff --git a/PetBar.lua b/PetBar.lua index 1e8da54..fe400ea 100644 --- a/PetBar.lua +++ b/PetBar.lua @@ -15,6 +15,7 @@ local defaults = { profile = Bartender4:Merge({ hidehotkey = true, visibility = { nopet = true, + vehicle = true, }, }, Bartender4.ButtonBar.defaults) } diff --git a/locale/deDE.lua b/locale/deDE.lua index 5cebc12..636d0c1 100644 --- a/locale/deDE.lua +++ b/locale/deDE.lua @@ -74,11 +74,13 @@ if not L then return end -- L["Hide Macro Text"] = true -- L["Hide in Combat"] = true -- L["Hide in Stance/Form"] = true +-- L["Hide on Vehicle"] = true -- L["Hide out of Combat"] = true -- L["Hide the Hotkey on the buttons of this bar."] = true -- L["Hide the Macro Text on the buttons of this bar."] = true -- L["Hide this bar in a specific Stance or Form."] = true -- L["Hide this bar when you are possessing a NPC."] = true +-- L["Hide this bar when you are riding on a vehicle."] = true -- L["Hide this bar when you have a pet."] = true -- L["Hide this bar when you have no pet."] = true -- L["Hide when Possessing"] = true diff --git a/locale/enUS.lua b/locale/enUS.lua index bec7bf7..17322c0 100644 --- a/locale/enUS.lua +++ b/locale/enUS.lua @@ -74,11 +74,13 @@ L["Hide Hotkey"] = true L["Hide Macro Text"] = true L["Hide in Combat"] = true L["Hide in Stance/Form"] = true +L["Hide on Vehicle"] = true L["Hide out of Combat"] = true L["Hide the Hotkey on the buttons of this bar."] = true L["Hide the Macro Text on the buttons of this bar."] = true L["Hide this bar in a specific Stance or Form."] = true L["Hide this bar when you are possessing a NPC."] = true +L["Hide this bar when you are riding on a vehicle."] = true L["Hide this bar when you have a pet."] = true L["Hide this bar when you have no pet."] = true L["Hide when Possessing"] = true diff --git a/locale/esES.lua b/locale/esES.lua index a1de973..709762b 100644 --- a/locale/esES.lua +++ b/locale/esES.lua @@ -74,11 +74,13 @@ if not L then return end -- L["Hide Macro Text"] = true -- L["Hide in Combat"] = true -- L["Hide in Stance/Form"] = true +-- L["Hide on Vehicle"] = true -- L["Hide out of Combat"] = true -- L["Hide the Hotkey on the buttons of this bar."] = true -- L["Hide the Macro Text on the buttons of this bar."] = true -- L["Hide this bar in a specific Stance or Form."] = true -- L["Hide this bar when you are possessing a NPC."] = true +-- L["Hide this bar when you are riding on a vehicle."] = true -- L["Hide this bar when you have a pet."] = true -- L["Hide this bar when you have no pet."] = true -- L["Hide when Possessing"] = true diff --git a/locale/esMX.lua b/locale/esMX.lua index be004cf..cc17893 100644 --- a/locale/esMX.lua +++ b/locale/esMX.lua @@ -74,11 +74,13 @@ if not L then return end -- L["Hide Macro Text"] = true -- L["Hide in Combat"] = true -- L["Hide in Stance/Form"] = true +-- L["Hide on Vehicle"] = true -- L["Hide out of Combat"] = true -- L["Hide the Hotkey on the buttons of this bar."] = true -- L["Hide the Macro Text on the buttons of this bar."] = true -- L["Hide this bar in a specific Stance or Form."] = true -- L["Hide this bar when you are possessing a NPC."] = true +-- L["Hide this bar when you are riding on a vehicle."] = true -- L["Hide this bar when you have a pet."] = true -- L["Hide this bar when you have no pet."] = true -- L["Hide when Possessing"] = true diff --git a/locale/frFR.lua b/locale/frFR.lua index 4a16efe..bb2598c 100644 --- a/locale/frFR.lua +++ b/locale/frFR.lua @@ -74,11 +74,13 @@ L["Hide Hotkey"] = "Cacher les raccourcis" L["Hide Macro Text"] = "Cacher texte macros" L["Hide in Combat"] = "Cacher en combat" L["Hide in Stance/Form"] = "Cacher en posture/forme" +-- L["Hide on Vehicle"] = true L["Hide out of Combat"] = "Cacher hors combat" L["Hide the Hotkey on the buttons of this bar."] = "Cache les raccourcis clavier des boutons de cette barre." L["Hide the Macro Text on the buttons of this bar."] = "Cache le texte des macros des boutons de cette barre." L["Hide this bar in a specific Stance or Form."] = "Cache cette barre dans une posture ou une forme spécifique." L["Hide this bar when you are possessing a NPC."] = "Cache cette barre quand vous possédez un PNJ." +-- L["Hide this bar when you are riding on a vehicle."] = true L["Hide this bar when you have a pet."] = "Cache cette barre quand vous avez un familier." L["Hide this bar when you have no pet."] = "Cache cette barre quand vous n'avez pas de familier." L["Hide when Possessing"] = "Cacher quand possession" diff --git a/locale/koKR.lua b/locale/koKR.lua index 8961b45..444dc85 100644 --- a/locale/koKR.lua +++ b/locale/koKR.lua @@ -74,11 +74,13 @@ L["Hide Hotkey"] = "단축키 숨기기" L["Hide Macro Text"] = "매크로 이름 숨기기" L["Hide in Combat"] = "전투중 숨기기" L["Hide in Stance/Form"] = "태세/폼 숨기기" +-- L["Hide on Vehicle"] = true L["Hide out of Combat"] = "전투종료 숨기기" L["Hide the Hotkey on the buttons of this bar."] = "버튼의 단축키 글자를 표시하지 않습니다." L["Hide the Macro Text on the buttons of this bar."] = "버튼의 매크로 이름을 표시하지 않습니다." L["Hide this bar in a specific Stance or Form."] = "현재 행동바에서 특정 태세나 폼을 숨깁니다." L["Hide this bar when you are possessing a NPC."] = "NPC를 지배하면 바를 숨깁니다." +-- L["Hide this bar when you are riding on a vehicle."] = true L["Hide this bar when you have a pet."] = "소환수가 나타나면 바를 숨깁니다." L["Hide this bar when you have no pet."] = "소환수가 사라지면 바를 숨깁니다." L["Hide when Possessing"] = "지배 숨기기" diff --git a/locale/ruRU.lua b/locale/ruRU.lua index 1824d44..0fa31b7 100644 --- a/locale/ruRU.lua +++ b/locale/ruRU.lua @@ -74,11 +74,13 @@ L["Hide Hotkey"] = "Скрыть горячие клавиши" L["Hide Macro Text"] = "Скрывать макросы" L["Hide in Combat"] = "Скрывать в бою" -- L["Hide in Stance/Form"] = true +-- L["Hide on Vehicle"] = true -- L["Hide out of Combat"] = true L["Hide the Hotkey on the buttons of this bar."] = "Не отображать сочетания клавиш на кнопках этой панели." L["Hide the Macro Text on the buttons of this bar."] = "Не отображать текст/название макросов на кнопках этой панели." -- L["Hide this bar in a specific Stance or Form."] = true -- L["Hide this bar when you are possessing a NPC."] = true +-- L["Hide this bar when you are riding on a vehicle."] = true -- L["Hide this bar when you have a pet."] = true -- L["Hide this bar when you have no pet."] = true -- L["Hide when Possessing"] = true diff --git a/locale/zhCN.lua b/locale/zhCN.lua index 0ca957f..86ff3f3 100644 --- a/locale/zhCN.lua +++ b/locale/zhCN.lua @@ -74,11 +74,13 @@ L["Hide Hotkey"] = "隐藏快捷键" L["Hide Macro Text"] = "隐藏宏名称" L["Hide in Combat"] = "战斗中隐藏" L["Hide in Stance/Form"] = "姿态/变形中隐藏" +-- L["Hide on Vehicle"] = true L["Hide out of Combat"] = "脱离战斗隐藏" L["Hide the Hotkey on the buttons of this bar."] = "在该动作条上不显示按钮的快捷键提示。" L["Hide the Macro Text on the buttons of this bar."] = "在该动作条上不显示宏的名称。" L["Hide this bar in a specific Stance or Form."] = "在特定的姿态或变形中隐藏." L["Hide this bar when you are possessing a NPC."] = "在和 NPC 对话时隐藏." +-- L["Hide this bar when you are riding on a vehicle."] = true L["Hide this bar when you have a pet."] = "在有宠物情况下隐藏。" L["Hide this bar when you have no pet."] = "在没有宠物情况下隐藏。" L["Hide when Possessing"] = "在你控制时隐藏" diff --git a/locale/zhTW.lua b/locale/zhTW.lua index 7978d80..1d2518d 100644 --- a/locale/zhTW.lua +++ b/locale/zhTW.lua @@ -1,6 +1,5 @@ --- Generated by Babelfish script, do not add strings manually, only translate existing strings. +-- Generated by Babelfish script, do not add strings manually, only translate existing strings. -- Please make sure to save the file as UTF-8, BUT WITHOUT THE UTF-8 BOM HEADER; ¶ ---revise TChinese translation 12/DEC/08 天明@眾星之子 local L = LibStub("AceLocale-3.0"):NewLocale("Bartender4", "zhTW") if not L then return end @@ -43,7 +42,7 @@ L["Configure the padding of the buttons."] = "設定按鈕間距" L["Configure the scale of the bar."] = "設定動作條大小" L["Copy Conditionals"] = "條件複製" L["Create a copy of the auto-generated conditionals in the custom configuration as a base template."] = "複製一個自動生成條件的副本 定制配置為基礎的範本" -L["Custom Conditionals"] ="自訂條件" +L["Custom Conditionals"] = "自訂條件" L["Default Bar State"] = "預設動作條狀態" L["Disabled"] = "關閉" L["Disabled in Combat"] = "戰鬥中關閉" @@ -75,11 +74,13 @@ L["Hide Hotkey"] = "隱藏熱鍵" L["Hide Macro Text"] = "隱藏巨集文字" L["Hide in Combat"] = "戰鬥中隱藏" L["Hide in Stance/Form"] = "姿態/型態隱藏" +-- L["Hide on Vehicle"] = true L["Hide out of Combat"] = "非戰鬥時隱藏" L["Hide the Hotkey on the buttons of this bar."] = "隱藏這個動作條的熱鍵文字" L["Hide the Macro Text on the buttons of this bar."] = "隱藏這個動作條的巨集名稱" L["Hide this bar in a specific Stance or Form."] = "在使用某指定姿態或變形後隱藏" L["Hide this bar when you are possessing a NPC."] = "當控制NPC時隱藏" +-- L["Hide this bar when you are riding on a vehicle."] = true L["Hide this bar when you have a pet."] = "當你有寵物時隱藏" L["Hide this bar when you have no pet."] = "當你沒有寵物時隱藏" L["Hide when Possessing"] = "控制中隱藏"