mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +00:00
unitframes: use frame specific buff indicators
This commit is contained in:
+27
-8
@@ -198,14 +198,6 @@ function pfUI:LoadConfig()
|
|||||||
pfUI:UpdateConfig("unitframes", nil, "selfingroup", "0")
|
pfUI:UpdateConfig("unitframes", nil, "selfingroup", "0")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "selfinraid", "0")
|
pfUI:UpdateConfig("unitframes", nil, "selfinraid", "0")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "raidforgroup", "0")
|
pfUI:UpdateConfig("unitframes", nil, "raidforgroup", "0")
|
||||||
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, "indicator_time", "1")
|
|
||||||
pfUI:UpdateConfig("unitframes", nil, "indicator_stacks", "1")
|
|
||||||
pfUI:UpdateConfig("unitframes", nil, "indicator_size", "10")
|
|
||||||
|
|
||||||
pfUI:UpdateConfig("unitframes", nil, "clickcast", "")
|
pfUI:UpdateConfig("unitframes", nil, "clickcast", "")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "clickcast_shift", "")
|
pfUI:UpdateConfig("unitframes", nil, "clickcast_shift", "")
|
||||||
@@ -387,6 +379,17 @@ function pfUI:LoadConfig()
|
|||||||
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_pos", "CENTER")
|
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_pos", "CENTER")
|
||||||
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_size", ".65")
|
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_size", ".65")
|
||||||
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_class", "1")
|
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_class", "1")
|
||||||
|
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "show_buffs", "1")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "show_hots", "0")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "all_hots", "0")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "show_procs", "0")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "show_totems", "0")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "all_procs", "0")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "indicator_time", "1")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "indicator_stacks", "1")
|
||||||
|
pfUI:UpdateConfig("unitframes", unit, "indicator_size", "10")
|
||||||
|
|
||||||
pfUI:UpdateConfig("unitframes", unit, "clickcast", "0")
|
pfUI:UpdateConfig("unitframes", unit, "clickcast", "0")
|
||||||
pfUI:UpdateConfig("unitframes", unit, "faderange", "0")
|
pfUI:UpdateConfig("unitframes", unit, "faderange", "0")
|
||||||
pfUI:UpdateConfig("unitframes", unit, "alpha_visible", "1")
|
pfUI:UpdateConfig("unitframes", unit, "alpha_visible", "1")
|
||||||
@@ -1032,5 +1035,21 @@ function pfUI:MigrateConfig()
|
|||||||
pfUI_config.unitframes.debuffs_class = nil
|
pfUI_config.unitframes.debuffs_class = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- migrate buff indicators into seperate options (> 4.6.2)
|
||||||
|
if checkversion(4, 6, 2) and pfUI_config.unitframes.show_hots then
|
||||||
|
local unitframes = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "ptarget", "fallback", "tttarget" }
|
||||||
|
local options = { "show_hots", "all_hots", "show_procs", "show_totems", "all_procs", "indicator_time", "indicator_stacks", "indicator_size" }
|
||||||
|
|
||||||
|
for _, unitframe in pairs(unitframes) do
|
||||||
|
for _, option in pairs(options) do
|
||||||
|
pfUI_config.unitframes[unitframe][option] = pfUI_config.unitframes[option]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, option in pairs(options) do
|
||||||
|
pfUI_config.unitframes[option] = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
pfUI_config.version = pfUI.version.string
|
pfUI_config.version = pfUI.version.string
|
||||||
end
|
end
|
||||||
|
|||||||
+143
-185
@@ -322,6 +322,7 @@ function pfUI.uf:UpdateConfig()
|
|||||||
end
|
end
|
||||||
|
|
||||||
f.dispellable = nil
|
f.dispellable = nil
|
||||||
|
f.indicators = nil
|
||||||
|
|
||||||
f.alpha_visible = tonumber(f.config.alpha_visible)
|
f.alpha_visible = tonumber(f.config.alpha_visible)
|
||||||
f.alpha_outrange = tonumber(f.config.alpha_outrange)
|
f.alpha_outrange = tonumber(f.config.alpha_outrange)
|
||||||
@@ -1307,7 +1308,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- indicators
|
-- indicators
|
||||||
if component == "all" or component == "aura" then
|
if component == "all" or ( component == "all" or component == "aura" ) then
|
||||||
unit.dispellable = unit.dispellable or pfUI.uf:SetupDebuffFilter((unit.config.debuff_ind_class == "0" and true or nil))
|
unit.dispellable = unit.dispellable or pfUI.uf:SetupDebuffFilter((unit.config.debuff_ind_class == "0" and true or nil))
|
||||||
|
|
||||||
if table.getn(unit.dispellable) > 0 and unit.config.debuff_indicator ~= "0" then
|
if table.getn(unit.dispellable) > 0 and unit.config.debuff_indicator ~= "0" then
|
||||||
@@ -1419,8 +1420,8 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
unit.hp.bar.debuffindicators:Hide()
|
unit.hp.bar.debuffindicators:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
pfUI.uf:SetupBuffFilter()
|
unit.indicators = unit.indicators or pfUI.uf:SetupBuffIndicators(unit.config)
|
||||||
if table.getn(pfUI.uf.buffs) > 0 and unit.config.buff_indicator == "1" then
|
if table.getn(unit.indicators) > 0 and unit.config.buff_indicator == "1" then
|
||||||
local pos = 1
|
local pos = 1
|
||||||
|
|
||||||
for i=1,32 do
|
for i=1,32 do
|
||||||
@@ -1432,7 +1433,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
|
|
||||||
if texture then
|
if texture then
|
||||||
-- match filter
|
-- match filter
|
||||||
for _, filter in pairs(pfUI.uf.buffs) do
|
for _, filter in pairs(unit.indicators) do
|
||||||
if filter == string.lower(texture) then
|
if filter == string.lower(texture) then
|
||||||
pfUI.uf:AddIcon(unit, pos, texture, timeleft, count)
|
pfUI.uf:AddIcon(unit, pos, texture, timeleft, count)
|
||||||
pos = pos + 1
|
pos = pos + 1
|
||||||
@@ -1689,9 +1690,9 @@ function pfUI.uf:ClickAction(button)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pfUI.uf:AddIcon(frame, pos, icon, timeleft, stacks)
|
function pfUI.uf:AddIcon(frame, pos, icon, timeleft, stacks)
|
||||||
local showtime = C.unitframes.indicator_time == "1" and true or nil
|
local showtime = frame.config.indicator_time == "1" and true or nil
|
||||||
local showstacks = C.unitframes.indicator_stacks == "1" and true or nil
|
local showstacks = frame.config.indicator_stacks == "1" and true or nil
|
||||||
local iconsize = tonumber(C.unitframes.indicator_size)
|
local iconsize = tonumber(frame.config.indicator_size)
|
||||||
|
|
||||||
if not frame.hp then return end
|
if not frame.hp then return end
|
||||||
local frame = frame.hp.bar
|
local frame = frame.hp.bar
|
||||||
@@ -1772,203 +1773,160 @@ function pfUI.uf:SetupDebuffFilter(allclasses)
|
|||||||
return debuffs
|
return debuffs
|
||||||
end
|
end
|
||||||
|
|
||||||
function pfUI.uf:SetupBuffFilter()
|
function pfUI.uf:SetupBuffIndicators(config)
|
||||||
if pfUI.uf.buffs then return end
|
|
||||||
|
|
||||||
local _, myclass = UnitClass("player")
|
local _, myclass = UnitClass("player")
|
||||||
|
local indicators = {}
|
||||||
|
|
||||||
pfUI.uf.buffs = {}
|
if config.show_buffs == "1" then -- buffs
|
||||||
|
if myclass == "DRUID" then
|
||||||
|
-- Mark of the Wild
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_regeneration")
|
||||||
|
-- Gift of the Wild
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_giftofthewild")
|
||||||
|
-- Thorns
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_thorns")
|
||||||
|
end
|
||||||
|
|
||||||
-- [[ DRUID ]]
|
if myclass == "PRIEST" then
|
||||||
if myclass == "DRUID" then
|
-- Prayer Of Fortitude"
|
||||||
-- Mark of the Wild
|
table.insert(indicators, "interface\\icons\\spell_holy_wordfortitude")
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_regeneration")
|
table.insert(indicators, "interface\\icons\\spell_holy_prayeroffortitude")
|
||||||
|
-- Prayer of Spirit
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_divinespirit")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_prayerofspirit")
|
||||||
|
-- Shadow Protection
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_shadow_antishadow")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_prayerofshadowprotection")
|
||||||
|
-- Fear Ward
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_excorcism")
|
||||||
|
end
|
||||||
|
|
||||||
-- Gift of the Wild
|
if myclass == "PALADIN" then
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_giftofthewild")
|
-- Blessing of Salvation
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_greaterblessingofsalvation")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_sealofsalvation")
|
||||||
|
-- Blessing of Wisdom
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_sealofwisdom")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_greaterblessingofwisdom")
|
||||||
|
-- Blessing of Sanctuary
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_lightningshield")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_greaterblessingofsanctuary")
|
||||||
|
-- Blessing of Kings
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_magic_magearmor")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_magic_greaterblessingofkings")
|
||||||
|
-- Blessing of Might
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_fistofjustice")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_greaterblessingofkings")
|
||||||
|
-- Blessing of Light
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_prayerofhealing02")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_greaterblessingoflight")
|
||||||
|
end
|
||||||
|
|
||||||
-- Thorns
|
if myclass == "WARLOCK" then
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_thorns")
|
-- Fire Shield
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_fire_firearmor")
|
||||||
|
-- Blood Pact
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_shadow_bloodboil")
|
||||||
|
-- Soulstone
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_shadow_soulgem")
|
||||||
|
-- Unending Breath
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_shadow_demonbreath")
|
||||||
|
-- Detect Greater Invisibility or Detect Invisibility
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_shadow_detectinvisibility")
|
||||||
|
-- Detect Lesser Invisibility
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_shadow_detectlesserinvisibility")
|
||||||
|
-- Paranoia
|
||||||
|
table.insert(indicators, "interface\\icons\\Spell_Shadow_AuraOfDarkness")
|
||||||
|
end
|
||||||
|
|
||||||
|
if myclass == "WARRIOR" then
|
||||||
|
-- Battle Shout
|
||||||
|
table.insert(indicators, "interface\\icons\\ability_warrior_battleshout")
|
||||||
|
-- Commanding Shout (TBC)
|
||||||
|
table.insert(indicators, "interface\\icons\\ability_warrior_rallyingcry")
|
||||||
|
end
|
||||||
|
|
||||||
|
if myclass == "MAGE" then
|
||||||
|
-- Arcane Intellect
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_magicalsentry")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_arcaneintellect")
|
||||||
|
-- Dampen Magic
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_abolishmagic")
|
||||||
|
-- Amplify Magic
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_flashheal")
|
||||||
|
end
|
||||||
|
|
||||||
|
if myclass == "HUNTER" then
|
||||||
|
-- Misdirection (TBC)
|
||||||
|
table.insert(indicators, "interface\\icons\\ability_hunter_misdirection")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- [[ PRIEST ]]
|
if config.show_procs == "1" then -- procs
|
||||||
if myclass == "PRIEST" then
|
if myclass == "SHAMAN" or config.all_procs == "1" then
|
||||||
-- Prayer Of Fortitude"
|
-- Ancestral Fortitude
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_wordfortitude")
|
table.insert(indicators, "interface\\icons\\spell_nature_undyingstrength")
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_prayeroffortitude")
|
-- Healing Way
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_healingway")
|
||||||
|
-- Totemic Power (known issue: one conflicts with Blessed Sunfruit buff)
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_spiritualguidence")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_devotion")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_holy_holynova")
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_magic_magearmor")
|
||||||
|
end
|
||||||
|
|
||||||
-- Prayer of Spirit
|
if myclass == "PRIEST" or config.all_procs == "1" then
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_divinespirit")
|
-- Inspiration
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_prayerofspirit")
|
table.insert(indicators, "interface\\icons\\inv_shield_06")
|
||||||
|
end
|
||||||
-- Shadow Protection
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_shadow_antishadow")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_prayerofshadowprotection")
|
|
||||||
|
|
||||||
-- Fear Ward
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_excorcism")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- [[ PALADIN ]]
|
if config.show_hots == "1" then -- hots
|
||||||
if myclass == "PALADIN" then
|
if myclass == "PRIEST" or config.all_hots == "1" then
|
||||||
-- Blessing of Salvation
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_greaterblessingofsalvation")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_sealofsalvation")
|
|
||||||
|
|
||||||
-- Blessing of Wisdom
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_sealofwisdom")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_greaterblessingofwisdom")
|
|
||||||
|
|
||||||
-- Blessing of Sanctuary
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_lightningshield")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_greaterblessingofsanctuary")
|
|
||||||
|
|
||||||
-- Blessing of Kings
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_magic_magearmor")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_magic_greaterblessingofkings")
|
|
||||||
|
|
||||||
-- Blessing of Might
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_fistofjustice")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_greaterblessingofkings")
|
|
||||||
|
|
||||||
-- Blessing of Light
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_prayerofhealing02")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_greaterblessingoflight")
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- [[ WARLOCK ]]
|
|
||||||
if myclass == "WARLOCK" then
|
|
||||||
-- Fire Shield
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_fire_firearmor")
|
|
||||||
|
|
||||||
-- Blood Pact
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_shadow_bloodboil")
|
|
||||||
|
|
||||||
-- Soulstone
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_shadow_soulgem")
|
|
||||||
|
|
||||||
-- Unending Breath
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_shadow_demonbreath")
|
|
||||||
|
|
||||||
-- Detect Greater Invisibility or Detect Invisibility
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_shadow_detectinvisibility")
|
|
||||||
|
|
||||||
-- Detect Lesser Invisibility
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_shadow_detectlesserinvisibility")
|
|
||||||
|
|
||||||
-- Paranoia
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\Spell_Shadow_AuraOfDarkness")
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- [[ WARRIOR ]]
|
|
||||||
if myclass == "WARRIOR" then
|
|
||||||
-- Battle Shout
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\ability_warrior_battleshout")
|
|
||||||
|
|
||||||
-- Commanding Shout (TBC)
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\ability_warrior_rallyingcry")
|
|
||||||
end
|
|
||||||
|
|
||||||
-- [[ MAGE ]]
|
|
||||||
if myclass == "MAGE" then
|
|
||||||
-- Arcane Intellect
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_magicalsentry")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_arcaneintellect")
|
|
||||||
|
|
||||||
-- Dampen Magic
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_abolishmagic")
|
|
||||||
|
|
||||||
-- Amplify Magic
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_flashheal")
|
|
||||||
end
|
|
||||||
|
|
||||||
-- [[ HUNTER ]]
|
|
||||||
if myclass == "HUNTER" then
|
|
||||||
-- Misdirection (TBC)
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\ability_hunter_misdirection")
|
|
||||||
end
|
|
||||||
|
|
||||||
-- PROCS
|
|
||||||
-- [[ SHAMAN ]]
|
|
||||||
if (pfUI_config.unitframes.all_procs == "1" or myclass == "SHAMAN") and pfUI_config.unitframes.show_procs == "1" then
|
|
||||||
-- Ancestral Fortitude
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_undyingstrength")
|
|
||||||
|
|
||||||
-- Healing Way
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_healingway")
|
|
||||||
|
|
||||||
-- Totemic Power (known issue: one conflicts with Blessed Sunfruit buff)
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_spiritualguidence")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_devotion")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_holynova")
|
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_magic_magearmor")
|
|
||||||
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")
|
|
||||||
end
|
|
||||||
|
|
||||||
-- HOTS
|
|
||||||
if pfUI_config.unitframes.show_hots == "1" then
|
|
||||||
if (pfUI_config.unitframes.all_hots == "1" or myclass == "PRIEST") then
|
|
||||||
-- Renew
|
-- Renew
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_renew")
|
table.insert(indicators, "interface\\icons\\spell_holy_renew")
|
||||||
|
|
||||||
-- Power Word: Shield
|
-- Power Word: Shield
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_powerwordshield")
|
table.insert(indicators, "interface\\icons\\spell_holy_powerwordshield")
|
||||||
|
|
||||||
-- Prayer of Mending (TBC)
|
-- Prayer of Mending (TBC)
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_holy_prayerofmendingtga")
|
table.insert(indicators, "interface\\icons\\spell_holy_prayerofmendingtga")
|
||||||
end
|
end
|
||||||
if (pfUI_config.unitframes.all_hots == "1" or myclass == "DRUID") then
|
|
||||||
|
if myclass == "DRUID" or config.all_hots == "1" then
|
||||||
-- Regrowth
|
-- Regrowth
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_resistnature")
|
table.insert(indicators, "interface\\icons\\spell_nature_resistnature")
|
||||||
|
|
||||||
-- Rejuvenation
|
-- Rejuvenation
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\spell_nature_rejuvenation")
|
table.insert(indicators, "interface\\icons\\spell_nature_rejuvenation")
|
||||||
|
|
||||||
-- Lifebloom
|
-- Lifebloom
|
||||||
table.insert(pfUI.uf.buffs, "interface\\icons\\inv_misc_herb_felblossom")
|
table.insert(indicators, "interface\\icons\\inv_misc_herb_felblossom")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if config.show_totems == "1" and myclass == "SHAMAN" then -- totems
|
||||||
|
-- Strength of Earth Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_earthbindtotem")
|
||||||
|
-- Stoneskin Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_stoneskintotem")
|
||||||
|
-- Mana Spring Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_manaregentotem")
|
||||||
|
-- Mana Tide Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_frost_summonwaterelemental")
|
||||||
|
-- Healing Spring Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\inv_spear_04")
|
||||||
|
-- Tranquil Air Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_brilliance")
|
||||||
|
-- Grace of Air Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_invisibilitytotem")
|
||||||
|
-- Grounding Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_groundingtotem")
|
||||||
|
-- Nature Resistance Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_nature_natureresistancetotem")
|
||||||
|
-- Fire Resistance Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_fireresistancetotem_01")
|
||||||
|
-- Frost Resistance Totem
|
||||||
|
table.insert(indicators, "interface\\icons\\spell_frostresistancetotem_01")
|
||||||
|
end
|
||||||
|
|
||||||
|
return indicators
|
||||||
end
|
end
|
||||||
|
|
||||||
function pfUI.uf:GetLevelString(unitstr)
|
function pfUI.uf:GetLevelString(unitstr)
|
||||||
|
|||||||
+12
-11
@@ -1493,16 +1493,6 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
|||||||
CreateConfig(nil, T["Show Self In Group Frames"], C.unitframes, "selfingroup", "checkbox")
|
CreateConfig(nil, T["Show Self In Group Frames"], C.unitframes, "selfingroup", "checkbox")
|
||||||
CreateConfig(nil, T["Hide Group Frames While In Raid"], C.unitframes.group, "hide_in_raid", "checkbox")
|
CreateConfig(nil, T["Hide Group Frames While In Raid"], C.unitframes.group, "hide_in_raid", "checkbox")
|
||||||
|
|
||||||
CreateConfig(U[c], T["Indicators"], nil, nil, "header")
|
|
||||||
CreateConfig(nil, T["Show Hots as Buff Indicators"], C.unitframes, "show_hots", "checkbox")
|
|
||||||
CreateConfig(nil, T["Show Hots of all Classes"], C.unitframes, "all_hots", "checkbox")
|
|
||||||
CreateConfig(nil, T["Show Procs as Buff Indicators"], C.unitframes, "show_procs", "checkbox")
|
|
||||||
CreateConfig(nil, T["Show Totems as Buff Indicators"], C.unitframes, "show_totems", "checkbox")
|
|
||||||
CreateConfig(nil, T["Show Procs of all Classes"], C.unitframes, "all_procs", "checkbox")
|
|
||||||
CreateConfig(nil, T["Buff Indicator Show Time"], C.unitframes, "indicator_time", "checkbox")
|
|
||||||
CreateConfig(nil, T["Buff Indicator Show Stacks"], C.unitframes, "indicator_stacks", "checkbox")
|
|
||||||
CreateConfig(nil, T["Buff Indicator Size"], C.unitframes, "indicator_size")
|
|
||||||
|
|
||||||
CreateConfig(U[c], T["Colors"], nil, nil, "header")
|
CreateConfig(U[c], T["Colors"], nil, nil, "header")
|
||||||
CreateConfig(nil, T["Enable Pastel Colors"], C.unitframes, "pastel", "checkbox")
|
CreateConfig(nil, T["Enable Pastel Colors"], C.unitframes, "pastel", "checkbox")
|
||||||
CreateConfig(nil, T["Health Bar Color"], C.unitframes, "custom", "dropdown", pfUI.gui.dropdowns.uf_color)
|
CreateConfig(nil, T["Health Bar Color"], C.unitframes, "custom", "dropdown", pfUI.gui.dropdowns.uf_color)
|
||||||
@@ -1602,7 +1592,6 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
CreateConfig(U[c], T["Show Raid Mark"], C.unitframes[c], "raidicon", "checkbox")
|
CreateConfig(U[c], T["Show Raid Mark"], C.unitframes[c], "raidicon", "checkbox")
|
||||||
CreateConfig(U[c], T["Raid Mark Size"], C.unitframes[c], "raidiconsize")
|
CreateConfig(U[c], T["Raid Mark Size"], C.unitframes[c], "raidiconsize")
|
||||||
CreateConfig(U[c], T["Show Class Buff Indicators"], C.unitframes[c], "buff_indicator", "checkbox")
|
|
||||||
CreateConfig(U[c], T["Display Overheal"], C.unitframes[c], "overhealperc", "dropdown", pfUI.gui.dropdowns.uf_overheal)
|
CreateConfig(U[c], T["Display Overheal"], C.unitframes[c], "overhealperc", "dropdown", pfUI.gui.dropdowns.uf_overheal)
|
||||||
|
|
||||||
if c == "raid" then
|
if c == "raid" then
|
||||||
@@ -1640,6 +1629,18 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
|||||||
CreateConfig(U[c], T["Automatic Level Text Color"], C.unitframes[c], "levelcolor", "checkbox")
|
CreateConfig(U[c], T["Automatic Level Text Color"], C.unitframes[c], "levelcolor", "checkbox")
|
||||||
CreateConfig(U[c], T["Automatic Class Text Color"], C.unitframes[c], "classcolor", "checkbox")
|
CreateConfig(U[c], T["Automatic Class Text Color"], C.unitframes[c], "classcolor", "checkbox")
|
||||||
|
|
||||||
|
CreateConfig(U[c], T["Indicators"], nil, nil, "header")
|
||||||
|
CreateConfig(U[c], T["Enable Indicators"], C.unitframes[c], "buff_indicator", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Show Time Left"], C.unitframes[c], "indicator_time", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Show Stacks"], C.unitframes[c], "indicator_stacks", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Indicator Size"], C.unitframes[c], "indicator_size")
|
||||||
|
CreateConfig(U[c], T["Show Buff Indicators"], C.unitframes[c], "show_buffs", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Show Hots Indicators"], C.unitframes[c], "show_hots", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Show Hots of all Classes"], C.unitframes[c], "all_hots", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Show Procs Indicators"], C.unitframes[c], "show_procs", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Show Procs of all Classes"], C.unitframes[c], "all_procs", "checkbox")
|
||||||
|
CreateConfig(U[c], T["Show Totems Indicators"], C.unitframes[c], "show_totems", "checkbox")
|
||||||
|
|
||||||
CreateConfig(U[c], T["Dispel Indicators"], nil, nil, "header")
|
CreateConfig(U[c], T["Dispel Indicators"], nil, nil, "header")
|
||||||
CreateConfig(U[c], T["Show Dispel Indicators"], C.unitframes[c], "debuff_indicator", "dropdown", pfUI.gui.dropdowns.uf_debuff_indicator)
|
CreateConfig(U[c], T["Show Dispel Indicators"], C.unitframes[c], "debuff_indicator", "dropdown", pfUI.gui.dropdowns.uf_debuff_indicator)
|
||||||
CreateConfig(U[c], T["Only Class Dispellable"], C.unitframes[c], "debuff_ind_class", "checkbox")
|
CreateConfig(U[c], T["Only Class Dispellable"], C.unitframes[c], "debuff_ind_class", "checkbox")
|
||||||
|
|||||||
Reference in New Issue
Block a user