NURFED_SAVED["hpscript"] = [[ if(perc > 0.8) then r = ((1-perc)/0.20); g = (1); else if(perc > 0.20) then r = (1); g = ((perc-0.2)/0.6); else r = (1); g = (0); end end b = (0.25*(perc)) ]] NURFED_SAVED["mana"] = { 0.35, 0.35, 1.00 }; -- mana NURFED_SAVED["rage"] = { 1.00, 0.50, 0.50 }; -- rage NURFED_SAVED["focus"] = { 1.00, 0.75, 0.50 }; -- focus NURFED_SAVED["enery"] = { 1.00, 1.00, 0.00 }; -- energy NURFED_SAVED["happiness"] = { 0.50, 0.60, 0.72 }; -- happiness local dwBorderSize = 1; local dwDistance = 150; local dwFrameHeight = 45; local dwPortraitSize = dwFrameHeight; local dwHealthBarWidth = 130; local dwHealthBarHeight = 17; local dwHealthTextWidth = 71; local dwHealthTextHeight = dwHealthBarHeight; local dwSmallFrameWidth = dwHealthBarWidth+dwHealthTextWidth-dwBorderSize; local dwBigFrameWidth = dwSmallFrameWidth+dwPortraitSize-dwBorderSize; local dwManaBarHeight = 13; local dwManaBarWidth = dwHealthBarWidth; local dwManaTextWidth = dwHealthTextWidth; local dwManaTextHeight = dwManaBarHeight; local dwLevelWidth = 24; local dwLowHeight = dwPortraitSize-(dwHealthBarHeight+dwManaBarHeight-dwBorderSize*2); local dwNameWidth = 67; local dwFeedbackWidth = 60; local dwMissingWidth = dwSmallFrameWidth-(dwLevelWidth+dwNameWidth+dwFeedbackWidth+2+dwBorderSize*2); local dwBuffSize = 20; local dwDeBuffSize = 28; local dwPlayerCastbarHeight = 25; local dwPlayerCastbarWidth = dwPortraitSize+dwHealthBarWidth+dwHealthTextWidth; local dwTargetCastbarHeight = 15; local dwTargetCastbarWidth = 75; local dwFocusCastbarHeight = 20; local dwFocusCastbarWidth = dwBigFrameWidth; local dwPartyCastbarHeight = 17; local dwPartyCastbarWidth = 80; local dwSpaceBetweenSelfAndCasting = 100; local dwPartyPetWidth = 55; local dwPartyPetHeight = dwBuffSize+dwBorderSize*2; local dwPartyTargetWidth = 80; local dwPartyTargetHeight = dwBuffSize+dwBorderSize; local dwScale = 1; local dwBgAlpha = 0.4; --NEED TO ADD FOR UNIT_MINI --NEED EXCESSIVES BUFFS/DEBUFFS on target if (not Nurfed_UnitsLayout) then Nurfed_UnitsLayout = {}; Nurfed_UnitsLayout.Name = "|cffff0000dw|r"; Nurfed_UnitsLayout.Author = "Deedub"; --Frame Templates Nurfed_UnitsLayout.templates = { Nurfed_UnitCharcoal_Outline= { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 15, "OUTLINE"}, TextColor = { 1, 1, 1 }, }, Nurfed_UnitCharcoal_15 = { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 15}, ShadowColor = { 0, 0, 0, 0.75}, ShadowOffset = { 1, -1 }, TextColor = { 1, 1, 1 }, }, Nurfed_UnitCharcoal_14 = { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 14}, ShadowColor = { 0, 0, 0, 0.75}, ShadowOffset = { 1, -1 }, TextColor = { 1, 1, 1 }, }, Nurfed_UnitCharcoal_13 = { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 13}, ShadowColor = { 0, 0, 0, 0.75}, ShadowOffset = { 1, -1 }, TextColor = { 1, 1, 1 }, }, Nurfed_UnitCharcoal_11 = { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 11}, ShadowColor = { 0, 0, 0, 0.75}, ShadowOffset = { 1, -1 }, TextColor = { 1, 1, 1 }, }, Nurfed_UnitCharcoal_11_Outline = { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 11, "OUTLINE"}, TextColor = { 1, 1, 1 }, }, Nurfed_UnitCharcoal_Name = { type = "Font", Font = { NRF_FONT.."Charcoal.ttf", 18, "OUTLINE" }, TextColor = { 1, 1, 1 }, }, Nurfed_No_border = { bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "", tile = false, tileSize = 16, edgeSize = dwBorderSize, insets = { left = 0, right = 0, top = 0, bottom = 0 }, }, Nurfed_Dw_backdrop = { bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = NRF_IMG.."PlainBackdrop.tga", tile = false, tileSize = 0, edgeSize = dwBorderSize, insets = { left = 0, right = 0, top = 0, bottom = 0 }, }, Nurfed_Unit_Miss = { type = "FontString", size = { dwMissingWidth, dwLowHeight-dwBorderSize }, layer = "ARTWORK", FontObject = "Nurfed_UnitCharcoal_15", JustifyH = "RIGHT", JustifyV = "TOP", TextColor = { 1, 0, 0 }, vars = { format = "$miss" }, }, Nurfed_Unit_Hp_frame = { type = "Frame", FrameStrata = "LOW", FrameLevel = 2, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, size = { dwHealthBarWidth, dwHealthBarHeight }, children = { Nurfed_Unit_hp = { type = "StatusBar", FrameStrata = "LOW", Orientation = "HORIZONTAL", StatusBarTexture = NRF_IMG.."statusbar6", vars = { ani = "fade" }, Anchor = { "topleft", "$parent", "topleft", dwBorderSize, -dwBorderSize }, size = { dwHealthBarWidth-dwBorderSize*2, dwHealthBarHeight-dwBorderSize*2 }, }, }, }, Nurfed_Unit_Mp_frame = { type = "Frame", FrameStrata = "LOW", FrameLevel = 2, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, size = { dwManaBarWidth, dwManaBarHeight }, children = { Nurfed_Unit_mp = { type = "StatusBar", FrameStrata = "LOW", Orientation = "HORIZONTAL", StatusBarTexture = NRF_IMG.."statusbar6", vars = { ani = "none" }, Anchor = { "topleft", "$parent", "topleft", dwBorderSize, -dwBorderSize }, size = { dwManaBarWidth-dwBorderSize*2, dwManaBarHeight-dwBorderSize*2 }, }, }, }, Nurfed_Unit_Hptext_frame = { type = "Frame", FrameStrata = "Background", FrameLevel = 1, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, size = { dwHealthTextWidth, dwHealthTextHeight }, children = { Nurfed_Unit_hptext = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_UnitCharcoal_14", JustifyH = "CENTER", JustifyV = "MIDDLE", size = { dwHealthTextWidth-dwBorderSize*2, dwHealthTextHeight-dwBorderSize*2 }, vars = { format = "$cur/$max", color = true }, Anchor = { "TOPLEFT", "$parent", "TOPLEFT", dwBorderSize, -dwBorderSize}, }, }, }, Nurfed_Unit_Mptext_frame = { type = "Frame", FrameStrata = "LOW", FrameLevel = 2, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, size = { dwManaTextWidth, dwManaTextHeight }, children = { Nurfed_Unit_mptext = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_UnitCharcoal_11", JustifyH = "CENTER", JustifyV = "MIDDLE", size = { dwManaTextWidth-dwBorderSize*2, dwManaTextHeight-dwBorderSize*2 }, vars = { format = "$cur/$max" }, Anchor = { "TOPLEFT", "$parent", "TOPLEFT", dwBorderSize, -dwBorderSize }, }, }, }, Nurfed_Portrait_frame = { type = "Frame", FrameStrata = "BACKGROUND", FrameLevel = 2, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, size = { dwPortraitSize, dwPortraitSize }, children = { Nurfed_Unit_portrait = { type = "Texture", FrameStrata = "BACKGROUND", FrameLevel = 3, size = { dwPortraitSize-dwBorderSize*2, dwPortraitSize-dwBorderSize*2 }, Anchor = { "topleft", "$parent", "topleft", dwBorderSize, -dwBorderSize }, vars = { isportrait = true }, }, }, }, Nurfed_Maintext_frame = { type = "Frame", FrameStrata = "BACKGROUND", FrameLevel = 1, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, size = { dwSmallFrameWidth, dwLowHeight }, children = { level = { type = "FontString", layer = "OVERLAY", size = { dwLevelWidth, dwLowHeight-dwBorderSize }, FontObject = "Nurfed_UnitCharcoal_15", JustifyH = "LEFT", JustifyV = "TOP", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 2, 0 }, vars = { format = "$level" }, }, name = { type = "FontString", size = { dwNameWidth, dwLowHeight-dwBorderSize }, layer = "OVERLAY", FontObject = "Nurfed_UnitCharcoal_15", JustifyH = "LEFT", JustifyV = "TOP", Anchor = { "BOTTOMLEFT", "$parentlevel", "BOTTOMRIGHT", 0, 0 }, vars = { format = "$name" }, }, feedback = { type = "MessageFrame", layer = "OVERLAY", size = { dwFeedbackWidth, dwLowHeight-dwBorderSize+1 }, FontObject = "Nurfed_UnitCharcoal_15", JustifyH = "RIGHT", JustifyV = "TOP", Anchor = { "BOTTOMLEFT", "$parentname", "BOTTOMRIGHT", 0, -1 }, FadeDuration = 0, TimeVisible = 1.5, FrameLevel = 3, }, }, }, Nurfed_Party_pet = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { dwPartyPetWidth, dwPartyPetHeight }, FrameStrata = "LOW", Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, children = { hp = { type = "StatusBar", size = { dwPartyPetWidth-dwBorderSize*2, dwPartyPetHeight-dwBorderSize*2 }, FrameStrata = "LOW", Orientation = "HORIZONTAL", StatusBarTexture = NRF_IMG.."statusbar6", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", dwBorderSize, dwBorderSize }, children = { text = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_UnitCharcoal_13", JustifyH = "RIGHT", JustifyV = "MIDDLE", TextColor = { 1, .25, 0 }, Anchor = "all", vars = { format = "|cffff0000$miss" }, }, }, }, }, Hide = true, }, Nurfed_Party_target = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { dwPartyTargetWidth, dwPartyTargetHeight }, FrameStrata = "LOW", Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, children = { hp = { type = "StatusBar", size = { dwPartyTargetWidth-dwBorderSize*2, dwPartyTargetHeight-dwBorderSize*2 }, FrameStrata = "LOW", FrameLevel = 2, Orientation = "HORIZONTAL", StatusBarTexture = NRF_IMG.."statusbar6", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", dwBorderSize, dwBorderSize }, children = { text = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_UnitCharcoal_11_Outline", JustifyH = "RIGHT", JustifyV = "BOTTOM", TextColor = { 1, 1, 1 }, Anchor = "all", vars = { format = "|cffff0000$perc " }, }, }, }, name = { type = "FontString", layer = "OVERLAY", size = { dwPartyTargetWidth-dwBorderSize*2, dwPartyTargetHeight-dwBorderSize*2 }, FontObject = "Nurfed_UnitCharcoal_11_Outline", JustifyH = "LEFT", JustifyV = "TOP", Anchor = {"TOPLEFT", "$parent", "TOPLEFT", 0, -1}, vars = { format = " $name" }, }, }, Hide = true, }, Nurfed_Unit_mini = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { 75, 33 }, FrameStrata = "LOW", Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, children = { hp = { type = "StatusBar", size = { 69, 14 }, FrameStrata = "LOW", Orientation = "HORIZONTAL", StatusBarTexture = NRF_IMG.."statusbar6", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 3, 3 }, children = { text = { type = "FontString", layer = "OVERLAY", FontObject = "Nurfed_UnitCharcoal_13", JustifyH = "RIGHT", JustifyV = "MIDDLE", TextColor = { 1, .25, 0 }, Anchor = "all", vars = { format = "|cffff0000$miss" }, }, }, }, name = { type = "FontString", size = { 70, 12 }, layer = "OVERLAY", Font = { NRF_FONT.."Charcoal.ttf", 12, "OUTLINE" }, JustifyH = "LEFT", ShadowColor = { 0, 0, 0, 0.75 }, ShadowOffset = { -1, -1 }, Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 3, -2 }, vars = { format = "$name" }, }, }, Hide = true, }, Nurfed_Player_casting = { type = "Frame", size = { dwPlayerCastbarWidth, dwPlayerCastbarHeight }, Backdrop = "Nurfed_No_border", BackdropColor = { 0, 0, 0, dwBgAlpha }, FrameLevel = 1, children = { casting = { type = "StatusBar", --size = { dwPlayerCastbarWidth, dwPlayerCastbarHeight }, Orientation = "HORIZONTAL", Anchor = "all", StatusBarTexture = NRF_IMG.."statusbar6", FrameLevel = 2, children = { text = { type = "FontString", layer = "ARTWORK", JustifyH = "LEFT", JustifyV = "MIDDLE", FontObject = "Nurfed_UnitCharcoal_15", Anchor = "all", vars = { format = "$spell ($rank)" }, }, time = { type = "FontString", layer = "ARTWORK", JustifyH = "RIGHT", JustifyV = "MIDDLE", FontObject = "Nurfed_UnitCharcoal_15", Anchor = "all", }, }, Hide = true, }, }, Hide = true, }, Nurfed_Focus_casting = { type = "Frame", size = { dwFocusCastbarWidth-dwFocusCastbarHeight+1, dwFocusCastbarHeight }, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, FrameLevel = 1, children = { casting = { type = "StatusBar", size = { dwFocusCastbarWidth-dwFocusCastbarHeight-dwBorderSize*2, dwFocusCastbarHeight-dwBorderSize*2 }, Orientation = "HORIZONTAL", Anchor = { "BOTTOMLEFT", dwBorderSize, dwBorderSize }, StatusBarTexture = NRF_IMG.."statusbar6", FrameLevel = 2, children = { text = { type = "FontString", layer = "ARTWORK", JustifyH = "LEFT", JustifyV = "MIDDLE", FontObject = "Nurfed_UnitCharcoal_15", Anchor = "all", vars = { format = "$spell ($rank)" }, }, time = { type = "FontString", layer = "ARTWORK", JustifyH = "RIGHT", JustifyV = "MIDDLE", FontObject = "Nurfed_UnitCharcoal_15", Anchor = "all", }, icon = { type = "Texture", layer = "ARTWORK", size = { dwFocusCastbarHeight-dwBorderSize*2, dwFocusCastbarHeight-dwBorderSize*2 }, Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMLEFT", -1, 0 }, }, iconborder = { type = "Frame", FrameStrata = "Background", FrameLevel = 1, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, size = { dwFocusCastbarHeight+1, dwFocusCastbarHeight }, Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMLEFT", 1, -1 }, }, }, Hide = true, }, }, Hide = true, }, Nurfed_Party_casting = { type = "Frame", size = { dwPartyCastbarWidth, dwPartyCastbarHeight }, Backdrop = "Nurfed_Dw_backdrop", BackdropColor = { 0, 0, 0, dwBgAlpha }, FrameLevel = 1, children = { casting = { type = "StatusBar", size = { dwPartyCastbarWidth-dwPartyCastbarHeight, dwPartyCastbarHeight-dwBorderSize*2 }, Orientation = "HORIZONTAL", Anchor = { "BOTTOMLEFT", dwPartyCastbarHeight-dwBorderSize, dwBorderSize }, StatusBarTexture = NRF_IMG.."statusbar6", FrameLevel = 2, children = { icon = { type = "Texture", layer = "ARTWORK", size = { dwPartyCastbarHeight-dwBorderSize*2, dwPartyCastbarHeight-dwBorderSize*2 }, Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMLEFT", 0, 0 }, }, }, Hide = true, }, }, Hide = true, }, Nurfed_Party = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { dwSmallFrameWidth, dwFrameHeight }, FrameStrata = "LOW", ClampedToScreen = true, Movable = true, Mouse = true, Scale = dwScale, children = { buff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize}, Anchor = { "TOPLEFT", "$parentpet", "TOPRIGHT", 0, -1 } }, buff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff1", "RIGHT", 0, 0 } }, buff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff2", "RIGHT", 0, 0 } }, buff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff3", "RIGHT", 0, 0 } }, buff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff4", "RIGHT", 0, 0 } }, buff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff5", "RIGHT", 0, 0 } }, buff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff6", "RIGHT", 0, 0 } }, buff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff7", "RIGHT", 0, 0 } }, buff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff8", "RIGHT", 0, 0 } }, buff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff9", "RIGHT", 0, 0 } }, debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "TOPLEFT", "$parent", "TOPRIGHT", 0, 0 } }, debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 0, 0 } }, debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff2", "RIGHT", 0, 0 } }, debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 0, 0 } }, debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff4", "RIGHT", 0, 0 } }, debuff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff5", "RIGHT", 0, 0 } }, debuff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff6", "RIGHT", 0, 0 } }, debuff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff7", "RIGHT", 0, 0 } }, debuff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff8", "RIGHT", 0, 0 } }, debuff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff9", "RIGHT", 0, 0 } }, debuff11 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff10", "RIGHT", 0, 0 } }, debuff12 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff11", "RIGHT", 0, 0 } }, debuff13 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff12", "RIGHT", 0, 0 } }, debuff14 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff13", "RIGHT", 0, 0 } }, debuff15 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff14", "RIGHT", 0, 0 } }, debuff16 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff15", "RIGHT", 0, 0 } }, hp = { template = "Nurfed_Unit_Hp_frame", Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, }, hptext = { template = "Nurfed_Unit_Hptext_frame", Anchor = { "TOPLEFT", "$parenthp", "TOPRIGHT", -dwBorderSize, 0 }, }, mp = { template = "Nurfed_Unit_Mp_frame", Anchor = { "TOPLEFT", "$parenthp", "BOTTOMLEFT", 0, dwBorderSize }, }, mptext = { template = "Nurfed_Unit_Mptext_frame", Anchor = { "TOPLEFT", "$parentmp", "TOPRIGHT", -dwBorderSize, 0 }, }, relation = { template = "Nurfed_Maintext_frame", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 }, }, hpmiss = { template = "Nurfed_Unit_Miss", Anchor = { "BOTTOMLEFT", "$parentrelationfeedback", "BOTTOMRIGHT", 0, 1 }, }, pvp = { type = "Texture", size = { 25, 25 }, layer = "OVERLAY", Anchor = { "TOPRIGHT", "$parent", "TOPLEFT", 7, 0 }, }, status = { type = "Texture", size = { 20, 20 }, layer = "OVERLAY", Texture = "Interface\\CharacterFrame\\UI-StateIcon", Anchor = { "TOP", "$parentpvp", "BOTTOM", -4, 10 }, }, leader = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-LeaderIcon", Anchor = { "TOP", "$parentstatus", "BOTTOM", 1, 3 }, }, master = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-MasterLooter", Anchor = { "TOP", "$parentleader", "BOTTOM", -1, 2 }, }, pet = { template = "Nurfed_Party_pet", Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT", 0, dwBorderSize }, }, castingframe = { template = "Nurfed_Party_casting", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMRIGHT", -dwBorderSize, 0 }, }, target = { template = "Nurfed_Party_target", Anchor = { "TOPLEFT", "$parent", "BOTTOMRIGHT", -dwBorderSize, dwBorderSize } }, }, vars = { buffwidth = dwHealthBarWidth+dwHealthTextWidth-(dwPartyPetWidth+dwBorderSize), debuffwidth = dwBigFrameWidth}, }, }; --Frame Design Nurfed_UnitsLayout.Layout = { player = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { dwSmallFrameWidth, dwFrameHeight }, FrameStrata = "LOW", ClampedToScreen = true, Movable = true, Mouse = true, Scale = dwScale, children = { debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT", 0, 0 } }, debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 0, 0 } }, debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff2", "RIGHT", 0, 0 } }, debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 0, 0 } }, debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff4", "RIGHT", 0, 0 } }, debuff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff5", "RIGHT", 0, 0 } }, debuff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff6", "RIGHT", 0, 0 } }, debuff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff7", "RIGHT", 0, 0 } }, debuff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "TOPLEFT", "$parentdebuff1", "BOTTOMLEFT", 0, 0 } }, debuff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff9", "RIGHT", 0, 0 } }, debuff11 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff10", "RIGHT", 0, 0 } }, debuff12 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff11", "RIGHT", 0, 0 } }, debuff13 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff12", "RIGHT", 0, 0 } }, debuff14 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff13", "RIGHT", 0, 0 } }, debuff15 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff14", "RIGHT", 0, 0 } }, debuff16 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff15", "RIGHT", 0, 0 } }, hp = { template = "Nurfed_Unit_Hp_frame", Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, }, hptext = { template = "Nurfed_Unit_Hptext_frame", Anchor = { "TOPLEFT", "$parenthp", "TOPRIGHT", -dwBorderSize, 0 }, }, mp = { template = "Nurfed_Unit_Mp_frame", Anchor = { "TOPLEFT", "$parenthp", "BOTTOMLEFT", 0, dwBorderSize }, }, mptext = { template = "Nurfed_Unit_Mptext_frame", Anchor = { "TOPLEFT", "$parentmp", "TOPRIGHT", -dwBorderSize, 0 }, }, relation = { template = "Nurfed_Maintext_frame", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 }, }, hpmiss = { template = "Nurfed_Unit_Miss", Anchor = { "BOTTOMLEFT", "$parentrelationfeedback", "BOTTOMRIGHT", 0, 1 }, }, pvp = { type = "Texture", size = { 25, 25 }, layer = "OVERLAY", Anchor = { "TOPRIGHT", "$parent", "TOPLEFT", 7, 0 }, }, status = { type = "Texture", size = { 20, 20 }, layer = "OVERLAY", Texture = "Interface\\CharacterFrame\\UI-StateIcon", Anchor = { "TOP", "$parentpvp", "BOTTOM", -4, 10 }, }, leader = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-LeaderIcon", Anchor = { "TOP", "$parentstatus", "BOTTOM", 1, 3 }, }, master = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-MasterLooter", Anchor = { "TOP", "$parentleader", "BOTTOM", -1, 2 }, }, group = { type = "FontString", size = { 50, 13 }, layer = "OVERLAY", Font = { NRF_FONT.."Charcoal.ttf", 13, "NONE" }, JustifyH = "LEFT", Anchor = { "BOTTOMRIGHT", "$parentleader", "BOTTOMLEFT", -5, 0 }, }, castingframe = { template = "Nurfed_Player_casting", Anchor = { "BOTTOMLEFT", "$parent", "TOPRIGHT",dwSpaceBetweenSelfAndCasting,0 }, }, }, vars = { unit = "player" }, }, target = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { dwBigFrameWidth, dwFrameHeight }, FrameStrata = "LOW", ClampedToScreen = true, Movable = true, Mouse = true, Scale = dwScale, children = { castingframe = { template = "Nurfed_Party_casting", Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT",0, dwBorderSize }, }, debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parent", "TOPRIGHT", 0, -dwDeBuffSize } }, debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff1", "BOTTOMRIGHT", 0, 0 } }, debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff2", "BOTTOMRIGHT", 0, 0 } }, debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff3", "BOTTOMRIGHT", 0, 0 } }, debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff4", "BOTTOMRIGHT", 0, 0 } }, debuff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff5", "BOTTOMRIGHT", 0, 0 } }, debuff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff6", "BOTTOMRIGHT", 0, 0 } }, debuff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff7", "BOTTOMRIGHT", 0, 0 } }, debuff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff8", "BOTTOMRIGHT", 0, 0 } }, debuff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff9", "BOTTOMRIGHT", 0, 0 } }, debuff11 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff10", "BOTTOMRIGHT", 0, 0 } }, debuff12 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff11", "BOTTOMRIGHT", 0, 0 } }, debuff13 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff12", "BOTTOMRIGHT", 0, 0 } }, debuff14 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff13", "BOTTOMRIGHT", 0, 0 } }, debuff15 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff14", "BOTTOMRIGHT", 0, 0 } }, debuff16 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff15", "BOTTOMRIGHT", 0, 0 } }, buff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize}, Anchor = { "TOPLEFT", "$parentcastingframe", "TOPRIGHT", 0, -1 } }, buff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff1", "RIGHT", 0, 0 } }, buff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff2", "RIGHT", 0, 0 } }, buff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff3", "RIGHT", 0, 0 } }, buff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff4", "RIGHT", 0, 0 } }, buff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff5", "RIGHT", 0, 0 } }, buff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff6", "RIGHT", 0, 0 } }, buff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff7", "RIGHT", 0, 0 } }, buff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "TOPLEFT", "$parentcastingframe", "BOTTOMLEFT", 0, -1 } }, buff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff9", "RIGHT", 0, 0 } }, buff11 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff10", "RIGHT", 0, 0 } }, buff12 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff11", "RIGHT", 0, 0 } }, buff13 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff12", "RIGHT", 0, 0 } }, buff14 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff13", "RIGHT", 0, 0 } }, buff15 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff14", "RIGHT", 0, 0 } }, buff16 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff15", "RIGHT", 0, 0 } }, buff17 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff16", "RIGHT", 0, 0 } }, buff18 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff17", "RIGHT", 0, 0 } }, buff19 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff18", "RIGHT", 0, 0 } }, buff20 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff19", "RIGHT", 0, 0 } }, buff21 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff20", "RIGHT", 0, 0 } }, buff22 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff21", "RIGHT", 0, 0 } }, target = { template = "Nurfed_Unit_mini", Anchor = { "TOPLEFT", "$parent", "TOPRIGHT", -dwBorderSize, -dwDeBuffSize } }, targettarget = { template = "Nurfed_Unit_mini", Anchor = { "TOPLEFT", "$parenttarget", "TOPRIGHT", -dwBorderSize, 0 } }, model_frame = { template = "Nurfed_Portrait_frame", Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, }, hp = { template = "Nurfed_Unit_Hp_frame", Anchor = { "TOPLEFT", "$parentmodel_frame", "TOPRIGHT", -dwBorderSize, 0 }, }, hptext = { template = "Nurfed_Unit_Hptext_frame", Anchor = { "TOPLEFT", "$parenthp", "TOPRIGHT", -dwBorderSize, 0 }, }, mp = { template = "Nurfed_Unit_Mp_frame", Anchor = { "TOPLEFT", "$parenthp", "BOTTOMLEFT", 0, dwBorderSize }, }, mptext = { template = "Nurfed_Unit_Mptext_frame", Anchor = { "TOPLEFT", "$parentmp", "TOPRIGHT", -dwBorderSize, 0 }, }, pvp = { type = "Texture", size = { 20, 20 }, layer = "OVERLAY", Anchor = { "RIGHT", "$parent", "LEFT", 13, 0 }, }, relation = { template = "Nurfed_Maintext_frame", Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMRIGHT", -dwBorderSize, 0 }, }, hpmiss = { template = "Nurfed_Unit_Miss", Anchor = { "BOTTOMLEFT", "$parentrelationfeedback", "BOTTOMRIGHT", 0, 1 }, }, status = { type = "Texture", size = { 20, 20 }, layer = "OVERLAY", Texture = "Interface\\CharacterFrame\\UI-StateIcon", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -2, -1 }, }, leader = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-LeaderIcon", Anchor = { "BOTTOMLEFT", "$parentstatus", "BOTTOMRIGHT", -2, 0 }, }, master = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-MasterLooter", Anchor = { "BOTTOMLEFT", "$parentleader", "BOTTOMRIGHT", -2, 2 }, }, combo = { type = "FontString", layer = "OVERLAY", Font = { NRF_FONT.."Charcoal.ttf", 22, "OUTLINE" }, JustifyH = "RIGHT", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMLEFT", 2, 3 }, vars = { unit1 = "player", unit2 = "target" }, }, raidtarget = { type = "Texture", Texture = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", size = { 20, 20 }, layer = "OVERLAY", Anchor = { "TOPRIGHT", "$parent", "TOPLEFT", 0, 0 }, Hide = true, }, }, vars = { unit = "target" }, Anchor = { "TOPLEFT", "Nurfed_player", "TOPRIGHT", dwDistance, 0 } }, pet = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { dwHealthBarWidth+dwPortraitSize, dwFrameHeight }, FrameStrata = "LOW", ClampedToScreen = true, Movable = true, Mouse = true, Scale = dwScale, children = { model_frame = { template = "Nurfed_Portrait_frame", Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, }, hp = { template = "Nurfed_Unit_Hp_frame", Anchor = { "TOPLEFT", "$parentmodel_frame", "TOPRIGHT", -1, 0 }, }, mp = { template = "Nurfed_Unit_Mp_frame", Anchor = { "TOPLEFT", "$parenthp", "BOTTOMLEFT", 0, 1 }, }, name = { type = "FontString", size = { dwNameWidth, dwLowHeight-dwBorderSize }, layer = "OVERLAY", FontObject = "Nurfed_UnitCharcoal_15", JustifyH = "LEFT", JustifyV = "MIDDLE", Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMRIGHT", 4, 0 }, vars = { format = "$name" }, }, happiness = { type = "Texture", Texture = "Interface\\PetPaperDollFrame\\UI-PetHappiness", size = { 14, 14 }, layer = "OVERLAY", Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 50, -4 }, Hide = true, }, combo = { type = "FontString", layer = "OVERLAY", Font = { NRF_FONT.."Charcoal.ttf", 22, "OUTLINE" }, JustifyH = "RIGHT", Anchor = { "BOTTOMRIGHT", "$parent", "BOTTOMLEFT", 2, 3 }, vars = { unit1 = "pet", unit2 = "target" }, }, buff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT", 4, 2 } }, buff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff1", "RIGHT", 0, 0 } }, buff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff2", "RIGHT", 0, 0 } }, buff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff3", "RIGHT", 0, 0 } }, buff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff4", "RIGHT", 0, 0 } }, buff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff5", "RIGHT", 0, 0 } }, buff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff6", "RIGHT", 0, 0 } }, buff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff7", "RIGHT", 0, 0 } }, buff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentbuff8", "RIGHT", 0, 0 } }, debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "TOPLEFT", "$parentbuff1", "BOTTOMLEFT", 0, -1 } }, debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 0, 0 } }, debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff2", "RIGHT", 0, 0 } }, debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 0, 0 } }, debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff4", "RIGHT", 0, 0 } }, debuff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff5", "RIGHT", 0, 0 } }, debuff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff6", "RIGHT", 0, 0 } }, debuff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff7", "RIGHT", 0, 0 } }, debuff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", Anchor = { "LEFT", "$parentdebuff8", "RIGHT", 0, 0 } }, target = { template = "Nurfed_Unit_mini", Anchor = { "TOPRIGHT", "$parent", "BOTTOMRIGHT", 0, dwBorderSize } }, }, vars = { unit = "pet", buffwidth = dwHealthBarWidth, debuffwidth = dwHealthBarWidth }, }, focus = { type = "Button", uitemp = "SecureUnitButtonTemplate", size = { dwBigFrameWidth, dwFrameHeight }, FrameStrata = "LOW", ClampedToScreen = true, Movable = true, Mouse = true, Scale = dwScale, children = { buff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize}, Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT", 0, 0 } }, buff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff1", "RIGHT", 0, 0 } }, buff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff2", "RIGHT", 0, 0 } }, buff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff3", "RIGHT", 0, 0 } }, buff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff4", "RIGHT", 0, 0 } }, buff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff5", "RIGHT", 0, 0 } }, buff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff6", "RIGHT", 0, 0 } }, buff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff7", "RIGHT", 0, 0 } }, buff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff8", "RIGHT", 0, 0 } }, buff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "TOPLEFT", "$parentbuff1", "BOTTOMLEFT", 0, 0 } }, buff11 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff10", "RIGHT", 0, 0 } }, buff12 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff11", "RIGHT", 0, 0 } }, buff13 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff12", "RIGHT", 0, 0 } }, buff14 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff13", "RIGHT", 0, 0 } }, buff15 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff14", "RIGHT", 0, 0 } }, buff16 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff15", "RIGHT", 0, 0 } }, buff17 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff16", "RIGHT", 0, 0 } }, buff18 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwBuffSize,dwBuffSize},Anchor = { "LEFT", "$parentbuff17", "RIGHT", 0, 0 } }, debuff1 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parent", "TOPLEFT", 0, 0 } }, debuff2 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 0, 0 } }, debuff3 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff2", "RIGHT", 0, 0 } }, debuff4 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 0, 0 } }, debuff5 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff4", "RIGHT", 0, 0 } }, debuff6 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff5", "RIGHT", 0, 0 } }, debuff7 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff6", "RIGHT", 0, 0 } }, debuff8 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff7", "RIGHT", 0, 0 } }, --[[debuff9 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "BOTTOMLEFT", "$parentdebuff1", "TOPLEFT", 0, 0 } }, debuff10 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff9", "RIGHT", 0, 0 } }, debuff11 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff10", "RIGHT", 0, 0 } }, debuff12 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff11", "RIGHT", 0, 0 } }, debuff13 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff12", "RIGHT", 0, 0 } }, debuff14 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff13", "RIGHT", 0, 0 } }, debuff15 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff14", "RIGHT", 0, 0 } }, debuff16 = { type = "Button", uitemp = "TargetDebuffButtonTemplate", size={dwDeBuffSize,dwDeBuffSize}, Anchor = { "LEFT", "$parentdebuff15", "RIGHT", 0, 0 } },]] target = { template = "Nurfed_Unit_mini", Anchor = { "TOPRIGHT", "$parent", "BOTTOMRIGHT", 0, dwBorderSize } }, --targettarget = { template = "Nurfed_Unit_mini", Anchor = { "BOTTOMLEFT", "$parent", "TOPLEFT", 0, -dwBorderSize } }, model_frame = { template = "Nurfed_Portrait_frame", Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, }, hp = { template = "Nurfed_Unit_Hp_frame", Anchor = { "TOPLEFT", "$parentmodel_frame", "TOPRIGHT", -dwBorderSize, 0 }, }, hptext = { template = "Nurfed_Unit_Hptext_frame", Anchor = { "TOPLEFT", "$parenthp", "TOPRIGHT", -dwBorderSize, 0 }, }, mp = { template = "Nurfed_Unit_Mp_frame", Anchor = { "TOPLEFT", "$parenthp", "BOTTOMLEFT", 0, dwBorderSize }, }, mptext = { template = "Nurfed_Unit_Mptext_frame", Anchor = { "TOPLEFT", "$parentmp", "TOPRIGHT", -dwBorderSize, 0 }, }, pvp = { type = "Texture", size = { 20, 20 }, layer = "OVERLAY", Anchor = { "RIGHT", "$parent", "LEFT", 13, 0 }, }, relation = { template = "Nurfed_Maintext_frame", Anchor = { "BOTTOMLEFT", "$parentmodel_frame", "BOTTOMRIGHT", -dwBorderSize, 0 }, }, hpmiss = { template = "Nurfed_Unit_Miss", Anchor = { "BOTTOMLEFT", "$parentrelationfeedback", "BOTTOMRIGHT", 0, 1 }, }, status = { type = "Texture", size = { 20, 20 }, layer = "OVERLAY", Texture = "Interface\\CharacterFrame\\UI-StateIcon", Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", -2, -1 }, }, leader = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-LeaderIcon", Anchor = { "BOTTOMLEFT", "$parentstatus", "BOTTOMRIGHT", -2, 0 }, }, master = { type = "Texture", size = { 15, 15 }, layer = "OVERLAY", Texture = "Interface\\GroupFrame\\UI-Group-MasterLooter", Anchor = { "BOTTOMLEFT", "$parentleader", "BOTTOMRIGHT", -2, 2 }, }, raidtarget = { type = "Texture", Texture = "Interface\\TargetingFrame\\UI-RaidTargetingIcons", size = { 20, 20 }, layer = "OVERLAY", Anchor = { "TOPRIGHT", "$parent", "TOPLEFT", 0, 0 }, Hide = true, }, castingframe = { template = "Nurfed_Focus_casting", Anchor = { "BOTTOMRIGHT", "$parent", "TOPRIGHT",0, dwDeBuffSize }, }, }, vars = { unit = "focus", debuffwidth = dwBigFrameWidth }, }, Nurfed_party1 = { template = "Nurfed_Party", vars = { unit = "party1" }, Anchor = { "BOTTOMLEFT", "Nurfed_player", "TOPLEFT",0, dwBuffSize } }, Nurfed_party2 = { template = "Nurfed_Party", vars = { unit = "party2" }, Anchor = { "BOTTOMLEFT", "Nurfed_party1", "TOPLEFT",0, dwBuffSize } }, Nurfed_party3 = { template = "Nurfed_Party", vars = { unit = "party3" }, Anchor = { "BOTTOMLEFT", "Nurfed_party2", "TOPLEFT",0, dwBuffSize } }, Nurfed_party4 = { template = "Nurfed_Party", vars = { unit = "party4" }, Anchor = { "BOTTOMLEFT", "Nurfed_party3", "TOPLEFT",0, dwBuffSize } }, }; end