---------------------------------------------------------------------------------------- -- Text Format Vars -- (HP/MP text and status bars) -- $miss = Missing hp/mp -- $cur = current hp/mp -- $max = Max hp/mp -- $perc = Percent hp/mp -- -- (Name/Level text) -- $name = Name -- $level = Level -- $class = Class -- $guild = Guild -- $race = Race -- $rname = PvP Rank Name -- $rnum = PvP Rank Number -- $key = Key Binding -- -- Element Names -- hp, mp, xp, combo, target -- name, level, class, race -- pvp, leader, master, feedback -- group, status, buff, debuff -- raidtarget, highlight, pet, portrait -- -- StatusBar Animations-- glide ---------------------------------------------------------------------------------------- local function hudalpha() if event == "UNIT_HEALTH" and arg1 ~= "player" then return end for _,v in pairs( { Nurfed_hudplayer, Nurfed_hudtarget } ) do if not UnitAffectingCombat("player") then if not UnitName("target") then if UnitHealth("player") == UnitHealthMax("player") then v:SetAlpha(0.7) else v:SetAlpha(0.7) end else v:SetAlpha(0.7) end else v:SetAlpha(1.0) end end end local f=CreateFrame("FRAME") f:RegisterEvent("PLAYER_REGEN_DISABLED") f:RegisterEvent("PLAYER_REGEN_ENABLED") f:RegisterEvent("UNIT_HEALTH") f:RegisterEvent("PlAYER_TARGET_CHANGED") f:SetScript("OnEvent", hudalpha ) --ManaBarColor[0] = { r = 0, g = 1, b = 1, prefix = TEXT(MANA) }; -- mana NURFED_SAVED[MANA] = { 0.00, 1.00, 1.00 } if (not Nurfed_UnitsLayout) then Nurfed_UnitsLayout = {}; Nurfed_UnitsLayout.Name = "|cffff0000The Second HUD|r"; Nurfed_UnitsLayout.Author = "ElderBrE"; --Frame Templates Nurfed_UnitsLayout.templates = { Nurfed_Unit_casting = { type = "Button", size = { 148, 24 }, Backdrop = { bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 12, edgeSize = 10, insets = { left = 2, right = 2, top = 2, bottom = 2 }, }, BackdropColor = { 0, 0, 0, 0 }, children = { casting = { type = "StatusBar", size = { 144, 20 }, Orientation = "HORIZONTAL", Anchor = { "TOP", 0, -2 }, StatusBarTexture = NRF_IMG.."statusbar5", FrameLevel = 1, children = { text = { type = "FontString", layer = "ARTWORK", size = { 144, 18 }, JustifyH = "LEFT", FontObject = "Nurfed_UnitFontSmallFour", ShadowColor = { 0, 0, 0, 0.9 }, ShadowOffset = { -1, -1 }, Anchor = { "CENTER", 4, 1 }, vars = { format = "$spell ($rank)" }, }, time = { type = "FontString", layer = "ARTWORK", JustifyH = "LEFT", FontObject = "Nurfed_UnitFontSmallFour", ShadowColor = { 0, 0, 0, 0.75 }, ShadowOffset = { -1, -1 }, Anchor = { "BOTTOM", "$parent", "TOP", 0, 3 }, }, icon = { type = "Texture", layer = "ARTWORK", size = { 22, 22 }, Anchor = { "RIGHT", "$parent", "LEFT", -4, 0 }, }, }, Hide = true, }, }, Hide = false, }, Nurfed_UnitFontSmallFour = { type = "Font", Font = { NRF_FONT.."framd.ttf", 12, "NONE" }, TextColor = { 1, 1, 1 }, }, Nurfed_Unit_model = { type = "PlayerModel", FrameStrata = "LOW", ModelScale = 1.9, Camera = 0, FrameLevel = 1, }, Nurfed_Model_frame = { type = "Frame", FrameStrata = "LOW", FrameLevel = 1, Backdrop = { bgFile = NRF_IMG.."statusbar6", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 100, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 }, }, BackdropColor = { .06, .13, .22, .95 }, }, Nurfed_UnitCharcoal_Name = { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 10, "NONE" }, TextColor = { 1, 1, 1 }, }, Nurfed_HudFont = { type = "Font", Font = { NRF_FONT.."framd.ttf", 13, "NONE" }, TextColor = { 1, 1, 1 }, JustifyH = "CENTER", ShadowColor = { 0, 0, 0, 1.0 }, ShadowOffset = { 1, -1 }, }, Nurfed_hp_frame = { type = "Frame", FrameStrata = "LOW", FrameLevel = 1, Backdrop = { bgFile = NRF_IMG.."statusbar6", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 70, edgeSize = 12, insets = { left = 2, right = 2, top = 2, bottom = 2 }, }, BackdropColor = { .06, .13, .22, .95 }, children = { text = { type = "FontString", size = { 85, 15 }, layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 10, "NONE" }, JustifyH = "CENTER", Anchor = "all", vars = { format = "$cur / $max" }, }, }, }, Nurfed_hp_hud_frame = { type = "Frame", FrameStrata = "LOW", FrameLevel = 1, Backdrop = { bgFile = NRF_IMG.."statusbar6", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 70, edgeSize = 12, insets = { left = 2, right = 2, top = 2, bottom = 2 }, }, BackdropColor = { .06, .13, .22, .95 }, children = { text = { type = "FontString", size = { 85, 15 }, layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 10, "NONE" }, JustifyH = "CENTER", Anchor = "all", vars = { format = "$cur / $max" }, }, }, }, hudtargettarget = { type = "Button", uitemp = "SecureUnitButtonTemplate", Mouse = false, size = { 128, 22 }, FrameStrata = "LOW", Anchor = { "CENTER", "$parent", "CENTER", -105, 120 }, children = { name = { type = "FontString", layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 15, "OUTLINE" }, JustifyH = "CENTER", JustifyV = "TOP", Anchor = { "CENTER", "$parent", "CENTER", 0, 0 }, FrameLevel = 4, vars = { format = "$name" }, }, hp = { type = "StatusBar", size = { 128, 64 }, FrameStrata = "LOW", Orientation = "HORIZONTAL", StatusBarTexture = NRF_IMG .. "second_casting", Anchor = { "CENTER", "$parent", "CENTER", 0, 15 }, FrameLevel = 1, vars = { ani = "glide" }, children = { bg = { type = "Texture", Texture = NRF_IMG .. "second_target", Anchor = { "CENTER", "$parent", "CENTER", 0, 0 }, --Texture = { 0, 0, 0, 0.40 }, layer = "OVERLAY", }, bg9 = { type = "Texture", size = { 128, 64 }, Texture = NRF_IMG.."second_casting", Anchor = { "CENTER", "$parent", "CENTER", 0, 0 }, VertexColor = { 0, 0, 0, 0.40 }, layer = "BACKGROUND", }, }, }, }, vars = { update = 0, tot = true}, }, }; --Frame Design Nurfed_UnitsLayout.Layout = { hudplayer = { type = "Button", uitemp = "SecureUnitButtonTemplate", vars = { unit = "player" }, size = { 128, 227 }, Mouse = false, FrameStrata = "LOW", Anchor = { "LEFT", "$parent", "CENTER", -275, -45 }, children = { hp = { type = "Texture", layer = "OVERLAY", size = { 200, 256 }, Texture = NRF_IMG.."player_HP", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -35, 30 }, --VertexColor = { 0, 0, 0, 0.90 }, vars = { bar = 256, height = 256, width = 200, fill = "top", }, }, bg1 = { type = "Texture", size = { 200, 256 }, Texture = NRF_IMG.."player_hp", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -35, 30 }, VertexColor = { 0, 0, 0, 0.5 }, }, hpperc = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_HudFont", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMRIGHT", -45, 80 }, vars = { format = "$perc" }, --VertexColor = { 0, 1, 0, 1}, }, model_frame = { template = "Nurfed_Model_frame", size = { 50, 50 }, Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 38, 27 }, }, model = { template = "Nurfed_Unit_model", size = { 40, 40 }, Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", 6, 4 }, }, hp2 = { template = "Nurfed_hp_hud_frame", size = { 80, 20 }, VertexColor = { 0, 0, 0, .15 }, Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", -15, -16 }, }, mp = { type = "Texture", layer = "OVERLAY", size = { 120, 128 }, Texture = NRF_IMG.."second_player_mana", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -2, 109 }, --VertexColor = { 0, 0, 0, 0.60 }, vars = { bar = 128, height = 128, width = 120, fill = "top", }, }, bg2 = { type = "Texture", size = { 120, 128 }, Texture = NRF_IMG.."second_player_mana", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -2, 109 }, VertexColor = { 0, 0, 0, 0.40 }, }, mpperc = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_HudFont", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMRIGHT", -75, 133 }, vars = { format = "$cur" }, VertexColor = { 1, 0, 0, 1}, }, feedbackheal = { type = "MessageFrame", layer = "OVERLAY", size = { 50, 16 }, Font = { NRF_FONT.."Charcoal.ttf", 14, "OUTLINE" }, JustifyH = "CENTER", InsertMode = "BOTTOM", Anchor = { "CENTER", "$parentmodel_frame", "CENTER", 0, 5 }, FadeDuration = 0.5, TimeVisible = 1, vars = { heal = true }, }, feedbackdamage = { type = "MessageFrame", layer = "OVERLAY", size = { 50, 16 }, Font = { NRF_FONT.."Charcoal.ttf", 14, "OUTLINE" }, JustifyH = "CENTER", InsertMode = "TOP", Anchor = { "CENTER", "$parentmodel_frame", "CENTER", 0, -8 }, FadeDuration = 0.5, TimeVisible = 1, vars = { damage = true }, }, debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parent", "CENTER", -20, 80 } }, debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff1", "CENTER", 17, 0 } }, debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff2", "CENTER", 17, 0 } }, debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff3", "CENTER", 17, 0 } }, debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff4", "CENTER", 17, 0 } }, debuff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff5", "CENTER", 17, 0 } }, debuff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff6", "CENTER", 17, 0 } }, debuff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff7", "CENTER", 17, 0 } }, }, }, hudtarget = { type = "Button", uitemp = "SecureUnitButtonTemplate", vars = { unit = "target" }, size = { 128, 227 }, Mouse = false, FrameStrata = "LOW", Anchor = { "LEFT", "$parent", "CENTER", 150, -45 }, children = { hp = { type = "Texture", layer = "OVERLAY", size = { 200, 256 }, Texture = NRF_IMG.."target_hp", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMRIGHT", 25, 30 }, --VertexColor = { 0, 0, 0, 0.90 }, vars = { bar = 256, height = 256, width = 200, fill = "top", }, }, bg3 = { type = "Texture", size = { 200, 256 }, Texture = NRF_IMG.."target_hp", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMRIGHT", 25, 30 }, VertexColor = { 0, 0, 0, 0.40 }, }, hpperc = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_HudFont", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 40, 80 }, vars = { format = "$perc" }, --VertexColor = { 0, 1, 0, 1}, }, model_frame = { template = "Nurfed_Model_frame", size = { 50, 50 }, Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 30, 27 }, }, model = { template = "Nurfed_Unit_model", size = { 40, 40 }, Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", 6, 4 }, }, hp2 = { template = "Nurfed_hp_hud_frame", size = { 80, 20 }, VertexColor = { 0, 1, 0, .5 }, Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMLEFT", -15, -16 }, }, class = { type = "FontString", size = { 125, 14 }, layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 12, "OUTLINE" }, JustifyH = "CENTER", TextColor = { 0.5, 0.5, 0.5 }, Anchor = { "TOP", "$parentmodel_frame", "BOTTOM", 0, -30 }, vars = { format = "$class $level" }, }, guild = { type = "FontString", size = { 125, 14 }, layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 12, "OUTLINE" }, JustifyH = "CENTER", TextColor = { 0.5, 0.5, 0.5 }, Anchor = { "TOP", "$parentclass", "BOTTOM", 0, 0 }, vars = { format = "$guild" }, }, classicon = { type = "Texture", size = { 20, 20 }, layer = "OVERLAY", Texture = "Interface\\Glues\\CharacterCreate\\UI-CharacterCreate-Classes", Anchor = { "RIGHT", "$parentmodel_frame", "LEFT", 2, -12 }, }, name = { type = "FontString", size = { 300, 12 }, layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 12, "OUTLINE" }, JustifyH = "CENTER", Anchor = { "BOTTOM", "$parentclass", "TOP", 0, 0 }, vars = { format = "$name" }, }, raidtarget = { type = "Texture", Texture = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", size = { 14, 14 }, layer = "OVERLAY", Anchor = { "RIGHT", "$parentmodel_frame", "LEFT", -2, 12 }, Hide = true, }, feedbackheal = { type = "MessageFrame", layer = "OVERLAY", size = { 50, 16 }, Font = { NRF_FONT.."Charcoal.ttf", 14, "OUTLINE" }, JustifyH = "CENTER", InsertMode = "BOTTOM", Anchor = { "CENTER", "$parentmodel_frame", "CENTER", 0, 5 }, FadeDuration = 0.5, TimeVisible = 1, vars = { heal = true }, }, feedbackdamage = { type = "MessageFrame", layer = "OVERLAY", size = { 50, 16 }, Font = { NRF_FONT.."Charcoal.ttf", 14, "OUTLINE" }, JustifyH = "CENTER", InsertMode = "TOP", Anchor = { "CENTER", "$parentmodel_frame", "CENTER", 0, -8 }, FadeDuration = 0.5, TimeVisible = 1, vars = { damage = true }, }, mp = { type = "Texture", layer = "OVERLAY", size = { 120, 128 }, Texture = NRF_IMG.."second_target_mana", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMRIGHT", -8, 109 }, --VertexColor = { 0, 0, 0, 0.60 }, vars = { bar = 128, height = 128, width = 120, fill = "top", }, }, bg4 = { type = "Texture", size = { 120, 128 }, Texture = NRF_IMG.."second_target_mana", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMRIGHT", -8, 109 }, VertexColor = { 0, 0, 0, 0.40 }, }, mpperc = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_HudFont", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 60, 133 }, vars = { format = "$perc" }, --VertexColor = { 0, 1, 1, 1}, }, combo1 = { type = "Texture", layer = "OVERLAY", size = { 32, 16 }, Texture = NRF_IMG.."cp1", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMRIGHT", -340, 15 }, vars = { id = 1, }, }, combo2 = { type = "Texture", layer = "OVERLAY", size = { 32, 16 }, Texture = NRF_IMG.."cp2", Anchor = { "LEFT", "$parentcombo1", "RIGHT", 5, 0 }, vars = { id = 2, }, }, combo3 = { type = "Texture", layer = "OVERLAY", size = { 32, 16 }, Texture = NRF_IMG.."cp3", Anchor = { "LEFT", "$parentcombo2", "RIGHT", 5, 0 }, vars = { id = 3, }, }, combo4 = { type = "Texture", layer = "OVERLAY", size = { 32, 16 }, Texture = NRF_IMG.."cp4", Anchor = { "LEFT", "$parentcombo3", "RIGHT", 5, 0 }, vars = { id = 4, }, }, combo5 = { type = "Texture", layer = "OVERLAY", size = { 32, 16 }, Texture = NRF_IMG.."cp5", Anchor = { "LEFT", "$parentcombo4", "RIGHT", 5, 0 }, vars = { id = 5, }, }, castingframe = { template = "Nurfed_Unit_casting", Anchor = { "BOTTOM", "$parent", "TOP", -55, 15 }, }, target = { template = "hudtargettarget", Anchor = { "BOTTOM", "$parent", "TOP", -380, 40 } }, debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parent", "CENTER", -41, -52 } }, debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff1", "CENTER", -17, 0 } }, debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff2", "CENTER", -17, 0 } }, debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff3", "CENTER", -17, 0 } }, debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff4", "CENTER", -17, 0 } }, debuff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff5", "CENTER", -17, 0 } }, debuff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff6", "CENTER", -17, 0 } }, debuff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff7", "CENTER", -17, 0 } }, debuff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff1", "CENTER", 0, 17 } }, debuff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff9", "CENTER", -17, 0 } }, debuff11 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff10", "CENTER", -17, 0 } }, debuff12 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff11", "CENTER", -17, 0 } }, debuff13 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff12", "CENTER", -17, 0 } }, debuff14 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff13", "CENTER", -17, 0 } }, debuff15 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff14", "CENTER", -17, 0 } }, debuff16 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentdebuff15", "CENTER", -17, 0 } }, debuff17 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "BOTTOMRIGHT", "$parentdebuff9", "TOPRIGHT", 0, -1 } }, debuff18 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff17", "LEFT", 0, 0 } }, debuff19 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff18", "LEFT", 0, 0 } }, debuff20 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff19", "LEFT", 0, 0 } }, debuff21 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff20", "LEFT", 0, 0 } }, debuff22 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff21", "LEFT", 0, 0 } }, debuff23 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff22", "LEFT", 0, 0 } }, debuff24 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff23", "LEFT", 0, 0 } }, debuff25 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "BOTTOMRIGHT", "$parentdebuff17", "TOPRIGHT", 0, -1 } }, debuff26 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff25", "LEFT", 0, 0 } }, debuff27 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff26", "LEFT", 0, 0 } }, debuff28 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff27", "LEFT", 0, 0 } }, debuff29 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff28", "LEFT", 0, 0 } }, debuff30 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff29", "LEFT", 0, 0 } }, debuff31 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff30", "LEFT", 0, 0 } }, debuff32 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff31", "LEFT", 0, 0 } }, debuff33 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "BOTTOMRIGHT", "$parentdebuff25", "TOPRIGHT", 0, -1 } }, debuff34 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff33", "LEFT", 0, 0 } }, debuff35 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff34", "LEFT", 0, 0 } }, debuff36 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff35", "LEFT", 0, 0 } }, debuff37 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff36", "LEFT", 0, 0 } }, debuff38 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff37", "LEFT", 0, 0 } }, debuff39 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff38", "LEFT", 0, 0 } }, debuff40 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "RIGHT", "$parentdebuff39", "LEFT", 0, 0 } }, buff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parent", "CENTER", 40, -92 } }, buff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentbuff1", "CENTER", 17, 0 } }, buff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentbuff2", "CENTER", 17, 0 } }, buff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "CENTER", "$parentbuff3", "CENTER", 17, 0 } }, aurafilter = { debuff = { --buff for buffs, debuff for debuffs -- min = 0, --this is the minimum duration -- max = 25, --this is the maximum duration name = { --this is a table containing all the buffs that will always be included ["Sunder Armor"] = true, ["Demoralizing Shout"] = true, ["Taunt"] = true, ["Mocking Blow"] = true, ["Thunder Clap"] = true, ["Cahallenging Shout"] = true, ["Growl"] = true, ["Faerie Fire"] = true, ["Curse of Weakness"] = true, ["Curse of Recklessness"] = true, ["Mortal Strike"] = true, ["Intimidating Shout"] = true, ["Death Coil"] = true, ["Banish"] = true, ["Death Coil"] = true, ["Frost Nova"] = true, ["Banish"] = true, ["Banish"] = true, ["Banish"] = true, ["Banish"] = true, ["Banish"] = true, ["Banish"] = true, ["Banish"] = true, ["Banish"] = true, }, }, }, }, }, petframe = { type = "Button", uitemp = "SecureUnitButtonTemplate", vars = { unit = "pet" }, size = { 64, 256 }, FrameStrata = "LOW", Anchor = { "LEFT", "$parent", "CENTER", -275, -45 }, children = { hp = { type = "Texture", size = { 64, 128 }, layer = "OVERLAY", Texture = NRF_IMG.."pet_hp", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -70, 170 }, --VertexColor = { 0, 0, 0, 0.60 }, vars = { bar = 109, height = 128, width = 64, fill = "top", }, }, bg5 = { type = "Texture", size = { 64, 128 }, Texture = NRF_IMG.."pet_hp", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -70, 170 }, VertexColor = { 0, 0, 0, 0.40 }, }, hpperc = { type = "FontString", layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 12, "NONE" }, JustifyH = "CENTER", ShadowColor = { 0, 0, 0, 1.0 }, ShadowOffset = { 1, -1 }, Anchor = { "TOPLEFT", "$parent", "TOPLEFT", -70, 22 }, vars = { format = "$perc" }, }, mp = { type = "Texture", size = { 64, 128 }, layer = "OVERLAY", Texture = NRF_IMG.."pet_mana", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -70, 60 }, --VertexColor = { 0, 0, 0, 0.60 }, vars = { bar = 109, height = 128, width = 64, fill = "top", }, }, bg6 = { type = "Texture", size = { 64, 128 }, Texture = NRF_IMG.."pet_mana", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -70, 60 }, VertexColor = { 0, 0, 0, 0.40 }, }, mpperc = { type = "FontString", layer = "OVERLAY", Font = { NRF_FONT.."framd.ttf", 12, "NONE" }, JustifyH = "CENTER", ShadowColor = { 0, 0, 0, 1.0 }, ShadowOffset = { 1, -1 }, Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -70, 60 }, vars = { format = "$perc" }, }, }, }, }; end