unitframes: option to show totem indicators

* Removed class check from GUI
This commit is contained in:
stokbaek
2018-04-21 17:51:10 +02:00
committed by Shagu
parent 66452741e9
commit 1e95a78815
11 changed files with 45 additions and 0 deletions
+1
View File
@@ -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")
+35
View File
@@ -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")
+1
View File
@@ -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,
+1
View File
@@ -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,
+1
View File
@@ -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",
+1
View File
@@ -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,
+1
View File
@@ -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,
+1
View File
@@ -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"] = "Оболочки",
+1
View File
@@ -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"] = "皮肤",
+1
View File
@@ -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,
+1
View File
@@ -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")