From bd7d2b61fa36ee311a7c8aeffb1d725a9779caca Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 16 May 2018 19:57:25 +0200 Subject: [PATCH] actionbar: add option for pet indicators --- api/config.lua | 1 + env/translations_deDE.lua | 1 + env/translations_enUS.lua | 1 + env/translations_esES.lua | 1 + env/translations_frFR.lua | 1 + env/translations_koKR.lua | 1 + env/translations_ruRU.lua | 1 + env/translations_zhCN.lua | 1 + env/translations_zhTW.lua | 1 + modules/actionbar.lua | 9 ++++++++- modules/gui.lua | 1 + 11 files changed, 18 insertions(+), 1 deletion(-) diff --git a/api/config.lua b/api/config.lua index 8682c099..2e19c402 100644 --- a/api/config.lua +++ b/api/config.lua @@ -544,6 +544,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("bars", nil, "hunterbar", "0") pfUI:UpdateConfig("bars", nil, "keydown", "0") pfUI:UpdateConfig("bars", nil, "pagemaster", "0") + pfUI:UpdateConfig("bars", nil, "showcastable", "0") pfUI:UpdateConfig("bars", nil, "hide_time", "1") pfUI:UpdateConfig("bars", nil, "hide_actionmain", "0") pfUI:UpdateConfig("bars", nil, "hide_bottomleft", "0") diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua index 72524b29..3b79936f 100644 --- a/env/translations_deDE.lua +++ b/env/translations_deDE.lua @@ -385,6 +385,7 @@ pfUI_translation["deDE"] = { ["Show Hots as Buff Indicators"] = nil, ["Show Hots of all Classes"] = nil, ["Show Inactive Tracking"] = nil, + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = nil, ["Show Meters By Default"] = nil, diff --git a/env/translations_enUS.lua b/env/translations_enUS.lua index eaa185bd..34fcbf2b 100644 --- a/env/translations_enUS.lua +++ b/env/translations_enUS.lua @@ -385,6 +385,7 @@ pfUI_translation["enUS"] = { ["Show Hots as Buff Indicators"] = nil, ["Show Hots of all Classes"] = nil, ["Show Inactive Tracking"] = nil, + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = nil, ["Show Meters By Default"] = nil, diff --git a/env/translations_esES.lua b/env/translations_esES.lua index f2fbf218..b9c5ac9e 100644 --- a/env/translations_esES.lua +++ b/env/translations_esES.lua @@ -385,6 +385,7 @@ pfUI_translation["esES"] = { ["Show Hots as Buff Indicators"] = "Mostrar Curación Periódica (HoTs) como Indicador de Buffs", ["Show Hots of all Classes"] = "Mostrar Curación Periódica (HoTs) de Todas las Clases", ["Show Inactive Tracking"] = "Mostrar Rastreo Inactivo", + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "Mostrar Texto de Macro", ["Show Meters By Default"] = nil, diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua index 4f387cbf..bffc0e91 100644 --- a/env/translations_frFR.lua +++ b/env/translations_frFR.lua @@ -385,6 +385,7 @@ pfUI_translation["frFR"] = { ["Show Hots as Buff Indicators"] = "Afficher les soins sur la durée en tant qu'indicateur d'amélioration", ["Show Hots of all Classes"] = "Afficher les soins sur la durée de chaque classe", ["Show Inactive Tracking"] = nil, + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "Afficher le texte des macros", ["Show Meters By Default"] = nil, diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua index f9ac4274..15861e74 100644 --- a/env/translations_koKR.lua +++ b/env/translations_koKR.lua @@ -385,6 +385,7 @@ pfUI_translation["koKR"] = { ["Show Hots as Buff Indicators"] = "핫버프 표시기 보기", ["Show Hots of all Classes"] = "모든 클래스 핫버프 보기", ["Show Inactive Tracking"] = nil, + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "매크로 텍스트 표시", ["Show Meters By Default"] = nil, diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua index 99ebdf1e..e4703f69 100644 --- a/env/translations_ruRU.lua +++ b/env/translations_ruRU.lua @@ -385,6 +385,7 @@ pfUI_translation["ruRU"] = { ["Show Hots as Buff Indicators"] = "Показать лечение со временем (HoT) как индикаторы баффов", ["Show Hots of all Classes"] = "Показать лечение со временем (HoT) всех классов", ["Show Inactive Tracking"] = "Показать неактивное отслеживание", + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = "Показать всплывающую подсказку при наведении мыши на предмет", ["Show Macro Text"] = "Показать текст макросов", ["Show Meters By Default"] = "Показать счетчики по умолчанию", diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua index d2a574c4..6e732080 100644 --- a/env/translations_zhCN.lua +++ b/env/translations_zhCN.lua @@ -385,6 +385,7 @@ pfUI_translation["zhCN"] = { ["Show Hots as Buff Indicators"] = "在框架的Buff指示器显示Hot", ["Show Hots of all Classes"] = "显示所有职业的Hot", ["Show Inactive Tracking"] = "显示已激活的追踪图标", + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "显示宏的名字", ["Show Meters By Default"] = nil, diff --git a/env/translations_zhTW.lua b/env/translations_zhTW.lua index 659eea5d..89d52830 100644 --- a/env/translations_zhTW.lua +++ b/env/translations_zhTW.lua @@ -385,6 +385,7 @@ pfUI_translation["zhTW"] = { ["Show Hots as Buff Indicators"] = "在框架的Buff指示器顯示Hot", ["Show Hots of all Classes"] = "顯示所有職業的Hot", ["Show Inactive Tracking"] = nil, + ["Show Indicator For Castable Pet Actions"] = nil, ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "顯示巨集的名字", ["Show Meters By Default"] = nil, diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 2544578a..022bf769 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -572,7 +572,14 @@ pfUI:RegisterModule("actionbar", function () texture :SetAlpha(0) local castable = _G["PetActionButton"..i..'AutoCastable'] - castable:SetAlpha(0) + if C.bars.showcastable == "1" then + castable:SetWidth(C.bars.icon_size*1.5) + castable:SetHeight(C.bars.icon_size*1.5) + castable:SetParent(button) + castable:SetTexCoord(.08, .9, .08, .9) + else + castable:SetAlpha(0) + end local border = _G["PetActionButton"..i..'Border'] border:SetAlpha(0) diff --git a/modules/gui.lua b/modules/gui.lua index d3b2318d..d48bd405 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1010,6 +1010,7 @@ pfUI:RegisterModule("gui", function () CreateConfig(nil, this, T["Enable Range Based Auto Paging (Hunter)"], C.bars, "hunterbar", "checkbox") CreateConfig(nil, this, T["Enable Action On Key Down"], C.bars, "keydown", "checkbox") CreateConfig(nil, this, T["Switch Bar On Meta Key Press"], C.bars, "pagemaster", "checkbox") + CreateConfig(nil, this, T["Show Indicator For Castable Pet Actions"], C.bars, "showcastable", "checkbox") this.setup = true end end)