-- oUF_SimpleConfig: nameplate -- zork, 2016 ----------------------------- -- Variables ----------------------------- local A, L = ... ----------------------------- -- NamePlateCallback ----------------------------- local function NamePlateCallback(...) print(...) end --L.C.NamePlateCallback = NamePlateCallback ----------------------------- -- NamePlateCVars ----------------------------- local cvars = { nameplateMinScale = 1, nameplateMaxScale = 1, nameplateMinScaleDistance = 0, nameplateMaxScaleDistance = 41, nameplateGlobalScale = 1, NamePlateHorizontalScale = 1, NamePlateVerticalScale = 1, nameplateSelfScale = 1, nameplateSelectedScale = 1, nameplateLargerScale = 1.2, nameplateShowFriendlyNPCs = 1, nameplateMinAlpha = 0.5, nameplateMaxAlpha = 0.5, nameplateMinAlphaDistance = 0, nameplateMaxAlphaDistance = 41, nameplateSelectedAlpha = 1 } L.C.NamePlateCVars = cvars ----------------------------- -- NamePlateConfig ----------------------------- --custom filter for nameplate debuffs local function CustomFilter(...) --icons, unit, icon, name, texture, count, dispelType, duration, expiration, caster, isStealable, nameplateShowSelf, spellID, canApply, isBossDebuff, casterIsPlayer, nameplateShowAll local _, _, _, _, _, _, _, _, _, caster, _, _, _, _, _, _, nameplateShowAll = ... return nameplateShowAll or (caster == "player" or caster == "pet" or caster == "vehicle") end L.C.nameplate = { enabled = true, size = {130,26}, point = {"CENTER"}, --relative to the nameplate base! scale = 1*UIParent:GetScale()*L.C.globalscale,--nameplates are not part of uiparent, they must be multiplied by uiparent scale! --healthbar healthbar = { --health and absorb bar cannot be disabled, they match the size of the frame colorTapping = true, colorReaction = true, colorClass = true, colorHealth = true, colorThreat = true, colorThreatInvers = true, frequentUpdates = true, name = { enabled = true, points = { {"LEFT",2,0}, {"RIGHT",-2,0}, }, size = 16, align = "CENTER", tag = "[oUF_SimpleConfig:classification][name]|r", }, health = { font = L.C.fonts.expressway, }, debuffHighlight = true, }, --raidmark raidmark = { enabled = false, size = {18,18}, point = {"CENTER","TOP",0,0}, }, --castbar castbar = { enabled = true, size = {130,26}, point = {"TOP","BOTTOM",0,-5}, name = { enabled = true, points = { {"LEFT",2,0}, {"RIGHT",-2,0}, }, size = 16, }, icon = { enabled = true, size = {26,26}, point = {"RIGHT","LEFT",-6,0}, }, }, --debuffs debuffs = { enabled = true, point = {"BOTTOMLEFT","TOPLEFT",0,5}, num = 5, cols = 5, size = 22, spacing = 5, initialAnchor = "TOPLEFT", growthX = "RIGHT", growthY = "UP", disableCooldown = true, filter = "HARMFUL|INCLUDE_NAME_PLATE_ONLY", CustomFilter = CustomFilter }, }