diff --git a/api/config.lua b/api/config.lua index 59c1545a..10add26a 100644 --- a/api/config.lua +++ b/api/config.lua @@ -113,6 +113,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", nil, "show_hots", "0") pfUI:UpdateConfig("unitframes", nil, "all_hots", "0") pfUI:UpdateConfig("unitframes", nil, "show_procs", "0") + pfUI:UpdateConfig("unitframes", nil, "show_totems", "0") pfUI:UpdateConfig("unitframes", nil, "all_procs", "0") pfUI:UpdateConfig("unitframes", nil, "debuffs_class", "0") pfUI:UpdateConfig("unitframes", nil, "indicator_size", "10") diff --git a/api/unitframes.lua b/api/unitframes.lua index 6d47cb88..30cd6184 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1561,6 +1561,41 @@ function pfUI.uf:SetupBuffFilter() table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_healingway") end + if (pfUI_config.unitframes.all_procs == "1" or myclass == "SHAMAN") and pfUI_config.unitframes.show_totems == "1" then + -- Strength of Earth Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_earthbindtotem") + + -- Stoneskin Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_stoneskintotem") + + -- Mana Spring Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_manaregentotem") + + -- Mana Tide Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_frost_summonwaterelemental") + + -- Healing Spring Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\inv_spear_04") + + -- Tranquil Air Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_brilliance") + + -- Grace of Air Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_invisibilitytotem") + + -- Grounding Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_groundingtotem") + + -- Nature Resistance Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_natureresistancetotem") + + -- Fire Resistance Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_fireresistancetotem_01") + + -- Frost Resistance Totem + table.insert(pfUI.uf.buffs, "interface\\icons\\spell_frostresistancetotem_01") + end + if (pfUI_config.unitframes.all_procs == "1" or myclass == "PRIEST") and pfUI_config.unitframes.show_procs == "1" then -- Inspiration table.insert(pfUI.uf.buffs, "interface\\icons\\inv_shield_06") diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua index 81aa3775..c0cc9e31 100644 --- a/env/translations_deDE.lua +++ b/env/translations_deDE.lua @@ -379,6 +379,7 @@ pfUI_translation["deDE"] = { ["Show Players Only"] = nil, ["Show Procs as Buff Indicators"] = nil, ["Show Procs of all Classes"] = nil, + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = nil, ["Show Self in Group Frames"] = nil, ["Skins"] = nil, diff --git a/env/translations_enUS.lua b/env/translations_enUS.lua index 8ee0c0c0..1d3ec9fe 100644 --- a/env/translations_enUS.lua +++ b/env/translations_enUS.lua @@ -379,6 +379,7 @@ pfUI_translation["enUS"] = { ["Show Players Only"] = nil, ["Show Procs as Buff Indicators"] = nil, ["Show Procs of all Classes"] = nil, + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = nil, ["Show Self in Group Frames"] = nil, ["Skins"] = nil, diff --git a/env/translations_esES.lua b/env/translations_esES.lua index b9a9e0a3..e5f5381b 100644 --- a/env/translations_esES.lua +++ b/env/translations_esES.lua @@ -379,6 +379,7 @@ pfUI_translation["esES"] = { ["Show Players Only"] = "Solamente Mostrar Jugadores", ["Show Procs as Buff Indicators"] = "Mostrar Ocurrencias aleatorias programadas (Procs) como Indicadores de Buffs", ["Show Procs of all Classes"] = "Mostrar Ocurrencias aleatorias programadas (Procs) de Todas las Clases", + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = "Mostrar Icono de JcJ", ["Show Self in Group Frames"] = "Mostrar a ti Mismo en los Marcos del Grupo", ["Skins"] = "Piel", diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua index 69b9a9ff..9388ef51 100644 --- a/env/translations_frFR.lua +++ b/env/translations_frFR.lua @@ -379,6 +379,7 @@ pfUI_translation["frFR"] = { ["Show Players Only"] = "Afficher les joueurs uniquement", ["Show Procs as Buff Indicators"] = "Afficher les procs en tant qu'indicateur d'amélioration", ["Show Procs of all Classes"] = "Afficher les procs de chaque classe", + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = "Afficher l'icône JcJ", ["Show Self in Group Frames"] = "S'afficher dans l'UI Groupe", ["Skins"] = nil, diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua index 9d40496c..6a71879d 100644 --- a/env/translations_koKR.lua +++ b/env/translations_koKR.lua @@ -379,6 +379,7 @@ pfUI_translation["koKR"] = { ["Show Players Only"] = "플레이어만 보기", ["Show Procs as Buff Indicators"] = "무기활성화버프 버프표시기에 보기", ["Show Procs of all Classes"] = "모든 클래스 무기활성화 버프 보기", + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = "PvP아이콘 표시", ["Show Self in Group Frames"] = nil, ["Skins"] = nil, diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua index 995d32c8..94ffdd13 100644 --- a/env/translations_ruRU.lua +++ b/env/translations_ruRU.lua @@ -379,6 +379,7 @@ pfUI_translation["ruRU"] = { ["Show Players Only"] = "Показать только игроков", ["Show Procs as Buff Indicators"] = "Показать проки (Procs) как индикаторы баффов", ["Show Procs of all Classes"] = "Показать проки (Procs) всех классов", + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = "Показать PvP иконку", ["Show Self in Group Frames"] = "Показать себя в окне группы", ["Skins"] = "Оболочки", diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua index 06131121..741a65ce 100644 --- a/env/translations_zhCN.lua +++ b/env/translations_zhCN.lua @@ -379,6 +379,7 @@ pfUI_translation["zhCN"] = { ["Show Players Only"] = "仅显示自己", ["Show Procs as Buff Indicators"] = "在框架的Buff指示器显示触发效果", ["Show Procs of all Classes"] = "显示所有职业的触发效果", + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = "显示PVP图标", ["Show Self in Group Frames"] = "在小队列表中显示自己", ["Skins"] = "皮肤", diff --git a/env/translations_zhTW.lua b/env/translations_zhTW.lua index 81740416..31a5974f 100644 --- a/env/translations_zhTW.lua +++ b/env/translations_zhTW.lua @@ -379,6 +379,7 @@ pfUI_translation["zhTW"] = { ["Show Players Only"] = "僅顯示自己", ["Show Procs as Buff Indicators"] = "在框架的Buff指示器顯示觸發效果", ["Show Procs of all Classes"] = "顯示所有職業的觸發效果", + ["Show Totems as Buff Indicators"] = nil, ["Show PvP Icon"] = "顯示PVP圖示", ["Show Self in Group Frames"] = "在小隊清單中顯示自己", ["Skins"] = nil, diff --git a/modules/gui.lua b/modules/gui.lua index bce8c7ff..774ecd8b 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -804,6 +804,7 @@ pfUI:RegisterModule("gui", function () CreateConfig(nil, this, T["Show Hots as Buff Indicators"], C.unitframes, "show_hots", "checkbox") CreateConfig(nil, this, T["Show Hots of all Classes"], C.unitframes, "all_hots", "checkbox") CreateConfig(nil, this, T["Show Procs as Buff Indicators"], C.unitframes, "show_procs", "checkbox") + CreateConfig(nil, this, T["Show Totems as Buff Indicators"], C.unitframes, "show_totems", "checkbox") CreateConfig(nil, this, T["Show Procs of all Classes"], C.unitframes, "all_procs", "checkbox") CreateConfig(nil, this, T["Buff Indicator Size"], C.unitframes, "indicator_size") CreateConfig(nil, this, T["Only Show Indicators for Dispellable Debuffs"], C.unitframes, "debuffs_class", "checkbox")