Nenue@51: --- ${PACKAGE_NAME} Nenue@51: -- @file-author@ Nenue@51: -- @project-revision@ @project-hash@ Nenue@51: -- @file-revision@ @file-hash@ Nenue@51: -- Created: 3/22/2016 3:14 PM Nenue@51: local _, A = ... Nenue@51: local B = A.frame Nenue@51: local Aura = B:RegisterModule('BuffFrame') Nenue@51: ----------------------- Nenue@51: -- Buff frames metadata Nenue@51: ----------------------- Nenue@51: local legendAlpha = 0.5 Nenue@51: Aura.guides = {} Nenue@51: Aura.decors = {} Nenue@51: Aura.anchors = {} Nenue@51: Aura.drawn = {} Nenue@51: Aura.positioned = {} Nenue@51: Nenue@51: Aura.displays = {} Nenue@51: Aura.displays.BuffButton = { Nenue@51: legendColor = {0, 1, 0, legendAlpha}, Nenue@51: maxIcons = BUFF_MAX_DISPLAY, Nenue@51: actualIcons = function () return _G.BUFF_ACTUAL_DISPLAY end, Nenue@51: buffName = 'BuffButton', Nenue@51: drawCount = {}, Nenue@51: filters = 'HELPFUL', Nenue@51: anchorTemplate = 'VeneerAnchorTemplate', Nenue@51: } Nenue@51: Aura.displays.DebuffButton = { Nenue@51: legendColor = {1, 0, 0, legendAlpha}, Nenue@51: maxIcons = DEBUFF_MAX_DISPLAY, Nenue@51: actualIcons = function () return _G.DEBUFF_ACTUAL_DISPLAY end, Nenue@51: buffName = 'DebuffButton', Nenue@51: drawCount = {}, Nenue@51: filters = 'HARMFUL', Nenue@51: anchorTemplate = 'VeneerAnchorTemplate', Nenue@51: } Nenue@51: Aura.displays.TempEnchant = { Nenue@51: legendColor = {1, 0, 0.5, legendAlpha}, Nenue@51: maxIcons = NUM_TEMP_ENCHANT_FRAMES, Nenue@51: actualIcons = function () return BuffFrame.numEnchants end, Nenue@51: buffName = 'TempEnchant', Nenue@51: drawCount = {}, Nenue@51: anchorTemplate = 'VeneerAnchorTemplate', Nenue@51: } Nenue@51: Nenue@51: ----------------------- Nenue@51: -- RaidBuff visual args Nenue@51: ----------------------- Nenue@51: Aura.BuffStyles = { Nenue@51: ["active"] = { Nenue@51: SetDesaturated = false, Nenue@51: Color = {1, 1, 1, 1}, Nenue@51: SetBlendMode = 'BLEND', Nenue@51: TextColor = {1,1,1,1}, Nenue@51: }, Nenue@51: ["missing"] = { Nenue@51: SetDesaturated = false, Nenue@51: Color = {1, 0, 0, 0.5}, Nenue@51: SetBlendMode = 'ADD', Nenue@51: TextColor = {1,0,0,1}, Nenue@51: }, Nenue@51: ["available"] = { Nenue@51: SetDesaturated = true, Nenue@51: Color = {0.35, 1, 0.35, 0.5}, Nenue@51: SetBlendMode = 'ADD', Nenue@51: TextColor = {1, 1, 0, 1}, Nenue@51: }, Nenue@51: } Nenue@51: Nenue@51: --- RaidBuff availability criteria Nenue@51: -- @field spellID - UnitAura() == true Nenue@51: -- @field spec - test for spec choice Nenue@51: -- @field auraType - UnitAura() == true, and no other tests of the same value have returned true prior Nenue@51: -- @field talent - test for talent selection Nenue@51: -- @field petFamily - test pet family Nenue@51: -- @field [true] - passive group aura Nenue@51: Aura.ClassRaidBuffs = { Nenue@51: -- stats Nenue@51: [1] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 160206, spellName = 'Lone Wolf: Power of the Primates', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Dog'}, -- active pet family Nenue@51: {petFamily = 'Gorilla'}, Nenue@51: {petFamily = 'Shale Spider'}, Nenue@51: {petFamily = 'Worm'}, Nenue@51: }, Nenue@51: ['DRUID'] = { Nenue@51: {spellID = 1126, spellName = 'Mark of the Wild'}, Nenue@51: }, Nenue@51: ['MONK'] = { Nenue@51: {spellID = 115921, spellName = 'Legacy of the Emperor'}, Nenue@51: {spellID = 116781, spellName = 'Legacy of the White Tiger'} -- windwalker, replaces emperor internally Nenue@51: }, Nenue@51: ['PALADIN'] = {spellID = 20217, spellName = 'Blessing of Kings', auraType = 'blessing'}, Nenue@51: }, Nenue@51: Nenue@51: -- stamina Nenue@51: [2] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 160199, spellName = 'Lone Wolf: Fortitude of the Bear', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Bear'}, -- active pet family Nenue@51: {petFamily = 'Goat'}, Nenue@51: {petFamily = 'Rylak'}, Nenue@51: {petFamily = 'Silithid'}, Nenue@51: }, Nenue@51: ['PRIEST'] = { Nenue@51: {spellID = 21562, 'Power Word: Fortitude'} Nenue@51: }, Nenue@51: ['WARRIOR'] = { Nenue@51: {spellID = 469, spellName = 'Commanding Shout', auraType = 'shout'} Nenue@51: }, Nenue@51: ['WARLOCK'] = { Nenue@51: {true} Nenue@51: } Nenue@51: }, Nenue@51: Nenue@51: -- attack power Nenue@51: [3] = { Nenue@51: ['HUNTER'] = { Nenue@51: {true}, Nenue@51: }, Nenue@51: ['DEATHKNIGHT'] = { Nenue@51: {spec = 2}, Nenue@51: {spec = 3}, Nenue@51: }, Nenue@51: ['WARRIOR'] = { Nenue@51: {spellName = 'Battle Shout', auraType = 'shout'} Nenue@51: } Nenue@51: }, Nenue@51: Nenue@51: -- HASTE Nenue@51: [4] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 160203, spellName = 'Lone Wolf: Haste of the Hyena', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Hyena'}, -- active pet family Nenue@51: {petFamily = 'Sporebat'}, Nenue@51: {petFamily = 'Rylak'}, Nenue@51: {petFamily = 'Wasp'}, Nenue@51: }, Nenue@51: ['DEATHKNIGHT'] = { Nenue@51: {spec = 2}, -- unholy aura Nenue@51: {spec = 3}, Nenue@51: }, Nenue@51: ['PRIEST'] = { Nenue@51: {spec = 3}, -- mind quickening Nenue@51: }, Nenue@51: ['ROGUE'] = { Nenue@51: true -- swiftblade's Nenue@51: }, Nenue@51: ['SHAMAN'] = { Nenue@51: true -- grace of air Nenue@51: }, Nenue@51: }, Nenue@51: Nenue@51: -- SPELL POWER Nenue@51: [5] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 160205, spellName = 'Lone Wolf: Wisdom of the Serpent', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Waterstrider'}, -- active pet family Nenue@51: {petFamily = 'Serpent'}, Nenue@51: {petFamily = 'Silithid'}, Nenue@51: }, Nenue@51: ['MAGE'] = { Nenue@51: {spellID = 1459, spellName = 'Arcane Brilliance'}, -- arcane brilliance Nenue@51: {spellID = 61316, spellName = 'Dalaran Brilliance'}, -- dalaran brilliance Nenue@51: }, Nenue@51: ['WARLOCK'] = { Nenue@51: {spellID = 109773,spellName = 'Dark Intent' } Nenue@51: }, Nenue@51: }, Nenue@51: Nenue@51: -- CRITICAL STRIKE Nenue@51: [6] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 160200, spellName = 'Lone Wolf: Ferocity of the Raptor', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Devilsaur'}, -- active pet family Nenue@51: {petFamily = 'Quilen'}, Nenue@51: {petFamily = 'Raptor'}, Nenue@51: {petFamily = 'Shale Spider'}, Nenue@51: {petFamily = 'Waterstrider'}, Nenue@51: {petFamily = 'Wolf'}, Nenue@51: }, Nenue@51: ['DRUID'] = { Nenue@51: {spec = 2, spellID = 17007, auraType = 'druidform'} Nenue@51: }, Nenue@51: ['MAGE'] = { Nenue@51: {spellID = 1459, spellName = 'Arcane Brilliance'}, -- arcane brilliance Nenue@51: {spellID = 61316, spellName = 'Dalaran Brilliance'}, -- dalaran brilliance Nenue@51: }, Nenue@51: ['MONK'] = { Nenue@51: {spellID = 116781, spellName = 'Legacy of the White Tiger', spec = 2} -- windwalker Nenue@51: } Nenue@51: }, Nenue@51: Nenue@51: -- MASTERY Nenue@51: [7] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 160198, spellName = 'Lone Wolf: Grace of the Cat', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Cat'}, -- active pet family Nenue@51: {petFamily = 'Hydra'}, Nenue@51: {petFamily = 'Spirit Beast'}, Nenue@51: {petFamily = 'Tallstrider'}, Nenue@51: }, Nenue@51: ['DEATHKNIGHT'] = { Nenue@51: {spec = 1} Nenue@51: }, Nenue@51: ['DRUID'] = { Nenue@51: {spec = 1, spellID = 24907, auraType = 'druidform'}, Nenue@51: }, Nenue@51: ['PALADIN'] = { Nenue@51: {spec = 1, spellID = 19740, spellName = 'Blessing of Might', auraType = 'blessing'} Nenue@51: }, Nenue@51: ['SHAMAN'] = {true}, Nenue@51: }, Nenue@51: Nenue@51: -- MULTISTRIKE Nenue@51: [8] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 172968, spellName = 'Lone Wolf: Quickness of the Dragonhawk', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Bat'}, -- active pet family Nenue@51: {petFamily = 'Clefthoof'}, Nenue@51: {petFamily = 'Corehound'}, Nenue@51: {petFamily = 'Dragonhawk'}, Nenue@51: {petFamily = 'Wind Serpent'}, Nenue@51: }, Nenue@51: ['MONK'] = { Nenue@51: {spec = 2 } Nenue@51: }, -- Windflurry, Nenue@51: ['PRIEST'] = { Nenue@51: {spec = 3 } Nenue@51: }, -- quickening, Nenue@51: ['ROGUE'] = {true}, -- swiftblade's Nenue@51: ['WARLOCK'] = { Nenue@51: {spellID = 109773,spellName = 'Dark Intent' } Nenue@51: }, Nenue@51: }, Nenue@51: Nenue@51: -- VERSATILITY Nenue@51: [9] = { Nenue@51: ['HUNTER'] = { Nenue@51: {talent = {155228}, spellID = 172967, spellName = 'Lone Wolf: Versatility of the Ravager', auraType = 'lonewolf'}, Nenue@51: {petFamily = 'Ravager'}, -- active pet family Nenue@51: {petFamily = 'Boar'}, Nenue@51: {petFamily = 'Porcupine'}, Nenue@51: {petFamily = 'Clefthoof'}, Nenue@51: {petFamily = 'Stag'}, Nenue@51: {petFamily = 'Worm'}, Nenue@51: {petFamily = 'Bird of Prey'}, Nenue@51: }, Nenue@51: ['DEATH KNIGHT'] = { Nenue@51: {spec = 2}, -- unholy aura Nenue@51: {spec = 3}, Nenue@51: }, Nenue@51: ['DRUID'] = { Nenue@51: {spellID = 1126, spellName = 'Mark of the Wild'}, Nenue@51: }, Nenue@51: ['PALADIN'] = { Nenue@51: {spec = 2}, -- retribution Nenue@51: }, Nenue@51: ['WARRIOR'] = { Nenue@51: {spec = 2}, -- arms or fury Nenue@51: {spec = 3}, Nenue@51: }, Nenue@51: } Nenue@51: } Nenue@51: Nenue@51: ------------------------- Nenue@51: -- Default config values Nenue@51: ------------------------- Nenue@51: Aura.defaults = { Nenue@51: -- defaulted to on for first-time setup Nenue@51: ConfigMode = true, Nenue@51: GuidesMode = true, Nenue@51: Nenue@51: BuffButtonAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', -300, -5}, Nenue@51: BuffButtonMax = 24, Nenue@51: BuffButtonPerRow = 10, Nenue@51: BuffButtonSize = 50, Nenue@51: BuffButtonSpacing = 4, Nenue@51: BuffButtonZoom = 15, Nenue@51: BuffButtonVertexColor = {}, Nenue@51: BuffButtonPoint = {'TOPRIGHT', 'TOPRIGHT'}, Nenue@51: BuffButtonDurationSize = 16, Nenue@51: BuffButtonDurationPoint = {'BOTTOM', 'BOTTOM', 0, -1}, Nenue@51: BuffButtonCountSize = 18, Nenue@51: BuffButtonCountPoint = {'TOPRIGHT', 'TOPRIGHT', -3, -3}, Nenue@51: BuffButtonRelativeX = -1, Nenue@51: BuffButtonRelativeY = -1, Nenue@51: Nenue@51: BuffButtonColor = {1, 1, 1, 1}, Nenue@51: BuffButtonPlayerColor = {1,1,1,1}, Nenue@51: BuffButtonRaidColor = {0.25,1,0.25,1}, Nenue@51: BuffButtonBossColor = {1,0.5,0,1}, Nenue@51: BuffButtonBorder = 1, Nenue@51: Nenue@51: BuffButtonWarningFade = true, Nenue@51: BuffButtonShowSelfCast = true, Nenue@51: Nenue@51: DebuffButtonAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', -300, -200}, Nenue@51: DebuffButtonMax = 12, Nenue@51: DebuffButtonPerRow = 10, Nenue@51: DebuffButtonSize = 50, Nenue@51: DebuffButtonSpacing = 4, Nenue@51: DebuffButtonDurationSize = 16, Nenue@51: DebuffButtonZoom = 15, Nenue@51: DebuffButtonVertexColor = {}, Nenue@51: DebuffButtonPoint = {'TOPRIGHT','TOPRIGHT'}, Nenue@51: DebuffButtonRelativeX = -1, Nenue@51: DebuffButtonRelativeY = -1, Nenue@51: Nenue@51: Nenue@51: TempEnchantAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', -200, -300}, Nenue@51: TempEnchantMax = 2, Nenue@51: TempEnchantPerRow = 10, Nenue@51: TempEnchantSize = 50, Nenue@51: TempEnchantSpacing = 4, Nenue@51: TempEnchantDurationSize = 16, Nenue@51: TempEnchantZoom = 15, Nenue@51: TempEnchantVertexColor = {}, Nenue@51: TempEnchantPoint = {'TOPRIGHT', 'TOPRIGHT'}, Nenue@51: TempEnchantRelativeX = -1, Nenue@51: TempEnchantRelativeY = -1, Nenue@51: TempEnchantColor = {1,0,0.5,1}, Nenue@51: Nenue@51: ConsolidatedBuffAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', 0, 0}, Nenue@51: ConsolidatedBuffIcon = false, Nenue@51: ConsolidatedBuffMax = 9, Nenue@51: ConsolidatedBuffSize = 16, Nenue@51: ConsolidatedBuffParent = 'BuffButton', Nenue@51: ConsolidatedBuffPosition = 1, Nenue@51: ConsolidatedBuffSpacing = 1, Nenue@51: ConsolidatedBuffBorder = 0, Nenue@51: ConsolidatedBuffPerRow = 3, Nenue@51: ConsolidatedBuffPoint = {'TOPRIGHT', 'TOPRIGHT'}, Nenue@51: ConsolidatedBuffRelativeX = -1, Nenue@51: ConsolidatedBuffRelativeY = -1, Nenue@51: ConsolidatedBuffDurationSize = 0, Nenue@51: ConsolidatedBuffDurationPoint = {'BOTTOM', 'BOTTOM', 0, 0}, Nenue@51: ConsolidatedBuffCountPoint = {'BOTTOM', 'BOTTOM', 0, 0}, Nenue@51: Nenue@51: RaidShowMissing = true, Nenue@51: Nenue@51: }