Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[-----------------------------------------------------------
- oUF_Kygo
- PvE oriented oUF layout.
- Modifications and edits are allowed to be uploaded to http://www.wowinterface.com
- ---------------------------------------------------------------]]
- local _, playerClass = UnitClass("player")
- ------------------------------------------------------------------------
- -- Configurable stuff starts here
- local BUFF_HEIGHT = 13
- local BUFF_SPACING = 0
- local MAX_NUM_BUFFS = 10
- local auraElement = {
- player = "Buffs",
- target = "Debuffs",
- }
- local auraFilter = {
- player = function(element, unit, icon, name, rank, texture, count, debuffType, duration, timeLeft, caster, isStealable, shouldConsolidate, spellID, canApplyAura, isBossDebuff)
- local ok = duration and duration > 0 and duration < 46
- --print(unit, ok and "|cff7fff7fPASS|r" or "|cffff7f7fFAIL|r", name, duration, UnitAura)
- return ok
- end,
- target = function(element, unit, icon, name, rank, texture, count, debuffType, duration, timeLeft, caster, isStealable, shouldConsolidate, spellID, canApplyAura, isBossDebuff)
- local ok = canApplyAura
- --print(unit, ok and "|cff7fff7fPASS|r" or "|cffff7f7fFAIL|r", name, canApplyAura)
- return ok
- end
- }
- -- Configurable stuff ends here
- ------------------------------------------------------------------------
- local function auras_PostCreateIcon(element, icon)
- local frame = element.__owner
- --print("PostCreateIcon", frame.unit)
- local BAR_TEXTURE = frame.Health and "Interface\\AddOns\\oUF_Kygo\\Media\\Minimalist"
- local bar = CreateFrame("StatusBar", nil, icon)
- bar:SetPoint("LEFT", icon, "RIGHT")
- bar:SetWidth(frame:GetWidth() - BUFF_HEIGHT)
- bar:SetHeight(BUFF_HEIGHT)
- bar:SetStatusBarTexture(BAR_TEXTURE)
- bar:SetStatusBarColor(0.3, 0.3, 0.3)
- local stime = bar:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
- stime:SetPoint("RIGHT", -4, 0)
- stime:SetTextColor(1, 1, 1)
- --stime:SetFormattedText("%.1f", duration)
- bar.stime = stime
- local name = bar:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
- name:SetPoint("LEFT", 4, 0)
- name:SetPoint("RIGHT", stime, "LEFT", -2, 0)
- name:SetTextColor(1, 1, 1)
- bar.name = name
- local bg = bar:CreateTexture(nil, "BACKGROUND")
- bg:SetAllPoints(true)
- bg:SetTexture(BAR_TEXTURE)
- bg:SetVertexColor(0.2, 0.2, 0.2)
- bar.bg = bg
- icon.bar = bar
- end
- local function aurabar_OnUpdate(bar, elapsed, name, duration)
- local t = bar.timeLeft - elapsed
- bar:SetValue(t > 0 and t or 0)
- bar.timeLeft = t
- end
- local function auras_PostUpdateIcon(element, unit, icon, index, offset)
- local bar = icon.bar
- local name, _, _, _, _, duration, expirationTime = UnitAura(unit, index, icon.filter, name)
- --print("PostUpdateIcon", name,duration, timeLeft)
- if duration > 0 then
- bar.name:SetText(name)
- bar.stime:SetFormattedText("%.1f", duration)
- bar.timeLeft = expirationTime - GetTime()
- bar:SetMinMaxValues(0, duration)
- bar:SetScript("OnUpdate", aurabar_OnUpdate)
- else
- bar:SetScript("OnUpdate", nil)
- bar:SetMinMaxValues(0, 1)
- bar:SetValue(1)
- end
- end
- --Some Tags
- oUF.Tags.Events["shorthp"] = "UNIT_HEALTH"
- oUF.Tags.Methods["shorthp"] = function(unit)
- if not UnitIsDeadOrGhost(unit) then
- local hp = UnitHealth(unit)
- return AbbreviateLargeNumbers(hp)
- end
- end
- oUF.Tags.Events["shortpp"] = "UNIT_POWER"
- oUF.Tags.Methods["shortpp"] = function(unit)
- if not UnitIsDeadOrGhost(unit) then
- local pp = UnitPower(unit)
- return AbbreviateLargeNumbers(pp)
- end
- end
- oUF.Tags.Events["shortname"] = "UNIT_NAME"
- oUF.Tags.Methods["shortname"] = function(unit)
- local name = UnitName(unit)
- return string.sub(UnitName(unit), 1, 20)
- end
- oUF.Tags.Events["readycheckicon"] = "DoReadyCheck"
- oUF.Tags.SharedEvents["IsInGroup"] = true
- oUF.Tags.Methods["readycheckicon"] = function(unit)
- if unit == "player" and IsInGroup() then
- return [[|TInterface\RAIDFRAME\ReadyCheck-Ready|t]]
- end
- end
- oUF.Tags.Events["rsicon"] = "PLAYER_UPDATE_RESTING"
- oUF.Tags.SharedEvents["PLAYER_UPDATE_RESTING"] = true
- oUF.Tags.Methods["rsicon"] = function(unit)
- if unit == "player" and IsResting() then
- return [[|TInterface\CharacterFrame\UI-StateIcon:0:0:0:-6:64:64:28:6:6:28|t]]
- end
- end
- oUF.Tags.Events["combaticon"] = "PLAYER_REGEN_DISABLED PLAYER_REGEN_ENABLED"
- oUF.Tags.SharedEvents["PLAYER_REGEN_DISABLED"] = true
- oUF.Tags.SharedEvents["PLAYER_REGEN_ENABLED"] = true
- oUF.Tags.Methods["combaticon"] = function(unit)
- if unit == "player" and UnitAffectingCombat("player") then
- return [[|TInterface\CharacterFrame\UI-StateIcon:0:0:0:0:64:64:37:58:5:26|t]]
- end
- end
- oUF.Tags.Events["leadericon"] = "GROUP_ROSTER_UPDATE"
- oUF.Tags.SharedEvents["GROUP_ROSTER_UPDATE"] = true
- oUF.Tags.Methods["leadericon"] = function(unit)
- if UnitIsGroupLeader(unit) then
- return [[|TInterface\GroupFrame\UI-Group-LeaderIcon:0|t]]
- elseif UnitInRaid(unit) and UnitIsGroupAssistant(unit) then
- return [[|TInterface\GroupFrame\UI-Group-AssistantIcon:0|t]]
- end
- end
- oUF.Tags.Events["mastericon"] = "PARTY_LOOT_METHOD_CHANGED GROUP_ROSTER_UPDATE"
- oUF.Tags.SharedEvents["PARTY_LOOT_METHOD_CHANGED"] = true
- oUF.Tags.SharedEvents["GROUP_ROSTER_UPDATE"] = true
- oUF.Tags.Methods["mastericon"] = function(unit)
- local method, pid, rid = GetLootMethod()
- if method ~= "master" then return end
- local munit
- if pid then
- if pid == 0 then
- munit = "player"
- else
- munit = "party" .. pid
- end
- elseif rid then
- munit = "raid" .. rid
- end
- if munit and UnitIsUnit(munit, unit) then
- return [[|TInterface\GroupFrame\UI-Group-MasterLooter:0:0:0:2|t]]
- end
- end
- local function Portrait_PostUpdate(portrait, unit)
- portrait:SetCamera(0)
- end
- local function Style(frame, unit, isSingle)
- frame:SetSize(150, 35)
- frame:RegisterForClicks("AnyUp")
- frame:SetScript("OnEnter", UnitFrame_OnEnter)
- frame:SetScript("OnLeave", UnitFrame_OnLeave)
- -----------------------------------
- -- Frame background and border --
- -----------------------------------
- frame:SetBackdrop({
- bgFile = "Interface\\AddOns\\oUF_Kygo\\Media\\backdrop", tile = false,
- edgeFile = "Interface\\AddOns\\oUF_Kygo\\Media\\backdrop_edge", edgeSize = 5,
- insets = { left = 1, right = 1 , top = 1, bottom = 1 }
- })
- frame:SetBackdropColor(0, 0, 0, .1)
- frame:SetBackdropBorderColor(0, 0, 0, 1)
- -----------------------------------
- -- Health bar --
- -----------------------------------
- local health = CreateFrame("StatusBar", nil, frame)
- health:SetPoint("TOPLEFT", frame, 5, -5)
- health:SetPoint("TOPRIGHT", frame, -5, 5)
- health:SetHeight(20)
- -- Health bar background
- local healthBG = health:CreateTexture(nil, "BACKGROUND")
- healthBG:SetAllPoints()
- healthBG:SetTexture("Interface\\AddOns\\oUF_Kygo\\Media\\Minimalist")
- health.bg = healthBG
- -- Health bar colors
- health:SetStatusBarTexture("Interface\\AddOns\\oUF_Kygo\\Media\\Runes")
- health:SetStatusBarColor(0.2, 0.2, 0.2) -- foreground color
- health.bg:SetVertexColor(0.2, 0, 0) --background color
- --Health bar text
- local healthText = health:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- healthText:SetPoint("RIGHT", health, "RIGHT")
- healthText:SetTextColor(1, 1, 1, 1)
- healthText:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- frame:Tag(healthText, "[raidcolor][dead][shorthp]")
- -- % HP on target and target of target
- if unit == "target" or unit == "targettarget" then
- local healthPer = health:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- healthPer:SetPoint("CENTER", health, "CENTER", 2, 0)
- healthPer:SetTextColor(1, 1, 1, 1)
- healthPer:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 6)
- frame:Tag(healthPer, "[perhp]")
- end
- frame.Health = health
- -----------------------------------
- -- Power bar --
- -----------------------------------
- local power = CreateFrame("StatusBar", nil, frame)
- power:SetPoint("TOPLEFT", health, "BOTTOMLEFT")
- power:SetPoint("TOPRIGHT", health, "BOTTOMRIGHT")
- power:SetPoint("BOTTOM", frame, 0, 5)
- --Power background
- local powerBG = power:CreateTexture(nil, "BACKGROUND")
- powerBG:SetAllPoints()
- powerBG:SetTexture("Interface\\AddOns\\oUF_Kygo\\Media\\Minimalist")
- power:SetStatusBarTexture("Interface\\AddOns\\oUF_Kygo\\Media\\Minimalist")
- powerBG.multiplier = 0.3
- power.bg = powerBG
- --Power Text
- local powerText = power:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- powerText:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 6)
- powerText:SetPoint("RIGHT", power, "RIGHT")
- powerText:SetTextColor(1, 1, 1, 1)
- frame:Tag(powerText, "[shortpp]")
- power.colorPower = true
- frame.Power = power
- ---------------------------------
- -- Name text --
- ---------------------------------
- if unit == "player" or unit == "pet" then
- else
- local name = frame:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- name:SetPoint("LEFT", frame, 5, -22)
- name:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- name:SetTextColor(1, 1, 1, 1)
- frame:Tag(name, "[shortname]")
- end
- ---------------------------------
- --Level and classification text--
- ---------------------------------
- if unit == "player" then
- else
- local level = frame:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- level:SetPoint("RIGHT", frame, "RIGHT", -5, -22)
- level:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- level:SetTextColor(1, 1, 1, 1)
- frame:Tag(level, "[smartlevel][shortclassification]")
- end
- --------------------------------
- -- Misc --
- --------------------------------
- local resting = health:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- resting:SetPoint("TOPLEFT", frame)
- resting:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- frame:Tag(resting, "[rsicon]")
- local master = health:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- master:SetPoint("TOPLEFT", frame, "TOPRIGHT", -15, 0)
- master:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- frame:Tag(master, "[mastericon]")
- --[[
- local combaticon = health:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- combaticon:SetPoint("TOPLEFT", frame)
- combaticon:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- frame:Tag(combaticon, "[combaticon]")
- --]]
- local readycheckicon = health:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- readycheckicon:SetPoint("CENTER", frame)
- readycheckicon:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- frame:Tag(readycheckicon, "[readycheckicon]")
- local leadericon = health:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- leadericon:SetPoint("TOPLEFT", frame)
- leadericon:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- frame:Tag(leadericon, "[leadericon]")
- local LFDRole = health:CreateTexture(nil, "OVERLAY")
- LFDRole:SetSize(12, 12)
- LFDRole:SetPoint("BOTTOMLEFT", health)
- LFDRole:SetTexture[[Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES]]
- frame.LFDRole = LFDRole
- local ReadyCheck = health:CreateTexture(nil, 'OVERLAY')
- ReadyCheck:SetSize(16, 16)
- ReadyCheck:SetPoint('TOP')
- ReadyCheck.finishedTime = 7
- ReadyCheck.fadeTime = 3
- frame.ReadyCheck = ReadyCheck
- local RaidIcon = health:CreateTexture(nil, "OVERLAY")
- RaidIcon:SetSize(16, 16)
- RaidIcon:SetPoint("CENTER", health)
- frame.RaidIcon = RaidIcon
- --------------------------------
- -- Portrait --
- --------------------------------
- if unit == "player" or unit == "target" then
- local portrait = CreateFrame("PlayerModel", nil, frame)
- portrait:SetWidth(30)
- portrait:SetAlpha(1)
- if unit == "player" then
- portrait:SetPoint("TOPRIGHT", frame, "TOPLEFT")
- portrait:SetPoint("BOTTOMRIGHT", frame, "BOTTOMLEFT")
- else
- portrait:SetPoint("TOPLEFT", frame, "TOPRIGHT")
- portrait:SetPoint("BOTTOMLEFT", frame, "BOTTOMRIGHT")
- end
- frame.Portrait = portrait
- end
- if unit == "player" or unit == "target" then
- local portraitBG = frame:CreateTexture(nil, "BACKGROUND")
- portraitBG:SetWidth(32)
- portraitBG:SetTexture(.1, .1, .1)
- portraitBG:SetAlpha(1)
- if unit == "player" then
- portraitBG:SetPoint("TOPRIGHT", frame, "TOPLEFT")
- portraitBG:SetPoint("BOTTOMRIGHT", frame, "BOTTOMLEFT")
- else
- portraitBG:SetPoint("TOPLEFT", frame, "TOPRIGHT")
- portraitBG:SetPoint("BOTTOMLEFT", frame, "BOTTOMRIGHT")
- end
- frame.portraitBG = portraitBG
- end
- ------------------
- -- Aurabars --
- ------------------
- -- Dont change any values
- local auraElementForUnit = auraElement[unit]
- if auraElementForUnit then
- local Auras = CreateFrame("Frame", nil, frame)
- Auras:SetPoint("BOTTOMLEFT", frame, "TOPLEFT", 0, 0)
- Auras:SetWidth(BUFF_HEIGHT + BUFF_SPACING)
- Auras:SetHeight(1)
- Auras["initialAnchor"] = "BOTTOMLEFT"
- Auras["growth-y"] = "UP"
- Auras["spacing-y"] = BUFF_SPACING
- Auras["num"] = MAX_NUM_BUFFS
- Auras["size"] = BUFF_HEIGHT
- Auras.PostCreateIcon = auras_PostCreateIcon
- Auras.PostUpdateIcon = auras_PostUpdateIcon
- Auras.CustomFilter = auraFilter[unit]
- frame[auraElementForUnit] = Auras
- end
- ---------------------------------
- -- Combo Points --
- ---------------------------------
- if unit == "target" and playerClass == "ROGUE" then
- local CPoints = {}
- for index = 1, MAX_COMBO_POINTS do
- local CPoint = health:CreateTexture(nil, "OVERLAY")
- -- Position and size of the combo point.
- CPoint:SetSize(10, 10)
- CPoint:SetPoint("LEFT", health, "LEFT", index * CPoint:GetWidth(), 0, 20)
- CPoint:SetTexture("Interface\\AddOns\\oUF_Kygo\\Media\\OrbFG")
- CPoint:SetVertexColor(1, 0, 0)
- CPoints[index] = CPoint
- end
- frame.CPoints = CPoints
- end
- ----------------------------------------------
- -- Shards, Holy Power, Chi, Shadow Orbs --
- ----------------------------------------------
- local CIf = CreateFrame("Frame", nil, frame)
- CIf:SetSize(210, 32)
- local ClassIcons = {}
- for index = 1, 5 do
- local Icon = health:CreateTexture(nil, "OVERLAY")
- --Icon:SetSize(16, 16) --Just here so I can see the default values
- --Icon:SetPoint("TOPLEFT", frame, "BOTTOMLEFT", index * Icon:GetWidth(), 0, 20) --Just here so I can see the default values
- Icon:SetTexture("Interface\\AddOns\\oUF_Kygo\\Media\\NCPoint")
- ClassIcons[index] = Icon
- if unit == "player" and playerClass == "WARLOCK" then
- CIf:SetPoint("BOTTOM", health, 0, -8)
- Icon:SetSize(35, 10)
- Icon:SetPoint("TOPLEFT", CIf, "BOTTOMLEFT", index * Icon:GetWidth(), 0, 20)
- elseif unit == "player" and playerClass == "MONK" then
- CIf:SetPoint("BOTTOM", health, 0, -8)
- Icon:SetSize(35, 16)
- Icon:SetPoint("TOPLEFT", CIf, "BOTTOMLEFT", index * Icon:GetWidth(), 0, 20)
- elseif unit == "player" and playerClass == "PALADIN" then
- CIf:SetPoint("BOTTOM", health, 4, -8)
- Icon:SetSize(30, 13)
- Icon:SetPoint("TOPLEFT", CIf, "BOTTOMLEFT", index * Icon:GetWidth(), 0, 20)
- elseif unit == "player" and playerClass == "PRIEST" then
- CIf:SetPoint("BOTTOM", health, -12, -8)
- Icon:SetSize(47, 13)
- Icon:SetPoint("TOPLEFT", CIf, "BOTTOMLEFT", index * Icon:GetWidth(), 0, 20)
- end
- end
- frame.ClassIcons = ClassIcons
- -------------------------------
- -- Burning Embers --
- -------------------------------
- if unit == "player" and playerClass == "WARLOCK" then
- local BEf = CreateFrame("Frame", nil, frame)
- BEf:SetPoint("BOTTOM", health, -0, -8)
- BEf:SetSize(210, 15)
- local BurningEmbers = {}
- for index = 1, 4 do
- local BurningEmber = CreateFrame("StatusBar", nil, BEf)
- BurningEmber:SetSize(210 / 6, 15)
- BurningEmber:SetPoint("TOPLEFT", BEf, "BOTTOMLEFT", index * 210 / 6, 1)
- BurningEmber:SetStatusBarTexture("Interface\\AddOns\\oUF_Kygo\\Media\\NCPoint")
- BurningEmber:SetStatusBarColor(0, 1, 1)
- BurningEmbers[index] = BurningEmber
- end
- frame.BurningEmbers = BurningEmbers
- end
- -----------------------------
- -- Eclipse Bar --
- -----------------------------
- if unit == "player" and playerClass == "DRUID" then
- local EclipseBar = CreateFrame("Frame", nil, frame)
- EclipseBar:SetPoint("BOTTOM", health)
- EclipseBar:SetSize(140, 10)
- local SolarBar = CreateFrame("StatusBar", nil, EclipseBar)
- SolarBar:SetPoint("RIGHT", health, "RIGHT", 0, -22)
- SolarBar:SetStatusBarTexture("Interface\\AddOns\\oUF_Kygo\\Media\\Minimalist")
- SolarBar:SetStatusBarColor(0, 191, 255)
- SolarBar:SetReverseFill(1)
- SolarBar:SetSize(140, 10)
- local LunarBar = CreateFrame("StatusBar", nil, EclipseBar)
- LunarBar:SetPoint("LEFT", health, 0, -22)
- LunarBar:SetSize(140, 10)
- LunarBar:SetStatusBarTexture("Interface\\AddOns\\oUF_Kygo\\Media\\Minimalist")
- LunarBar:SetStatusBarColor(255, 255, 0)
- EclipseBar.LunarBar = LunarBar
- EclipseBar.SolarBar = SolarBar
- frame.EclipseBar = EclipseBar
- local spark = SolarBar:CreateTexture(nil, "OVERLAY")
- spark:SetSize(5, 10)
- spark:SetPoint("LEFT", SolarBar)
- spark:SetTexture("Interface\\PlayerFrame\\Direction_Eclipse")
- frame.spark = spark
- local perEclipse = SolarBar:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- perEclipse:SetPoint("CENTER", EclipseBar, 0, -16)
- perEclipse:SetFont("Interface\\AddOns\\oUF_Kygo\\Media\\neuropol.ttf", 10)
- perEclipse:SetTextColor(1, 1, 1)
- frame:Tag(perEclipse, "[pereclipse]")
- end
- ----------------------
- -- Runebar --
- ----------------------
- if unit == "player" and playerClass == "DEATHKNIGHT" then
- local Rf = CreateFrame("Frame", nil, frame)
- Rf:SetSize(110, 15)
- Rf:SetPoint("BOTTOM", health, -40, -8)
- local Runes = {}
- for index = 1, 6 do
- -- Position and size of the rune bar indicators
- local Rune = CreateFrame("StatusBar", nil, Rf)
- Rune:SetSize(100 / 6, 10)
- Rune:SetPoint("TOPLEFT", Rf, "BOTTOMLEFT", index * 100 / 4, 0)
- Rune:SetStatusBarTexture("Interface\\AddOns\\oUF_Kygo\\Media\\Neal")
- Runes[index] = Rune
- end
- -- Register with oUF
- frame.Runes = Runes
- end
- ---------------------
- -- Plug-in's --
- ---------------------
- ---------------------
- -- oUF_Smooth --
- ---------------------
- if IsAddOnLoaded("oUF_Smooth") and not strmatch(unit, ".target$") then
- frame.Health.Smooth = true
- if frame.Power then
- frame.Power.Smooth = true
- end
- end
- --------------------
- -- oUF_SpellRange --
- --------------------
- if IsAddOnLoaded("oUF_SpellRange") then
- frame.SpellRange = {
- insideAlpha = 1,
- outsideAlpha = 0.7,
- }
- elseif unit == "pet" or unit == "party" then
- frame.Range = {
- insideAlpha = 1,
- outsideAlpha = 0.7,
- }
- end
- --------------------
- -- oUF_AuraBars --
- --------------------
- --[[
- if IsAddOnLoaded("oUF_AuraBars") then
- if unit == "player" or unit == "target" then
- frame.AuraBars = CreateFrame("Frame", nil, frame)
- frame.AuraBars:SetHeight(1)
- frame.AuraBars:SetWidth(142)
- frame.AuraBars:SetPoint("TOP", 0, -3)
- frame.AuraBars:SetPoint("RIGHT", -4, 0)
- frame.AuraBars.auraBarHeight = 10
- frame.AuraBars.spellNameSize = 5
- frame.AuraBars.spellTimeSize = 5
- frame.AuraBars.sort = 1
- frame.AuraBars.auraBarTexture = "Interface\\AddOns\\oUF_Kygo\\Media\\Neal"
- frame.AuraBars.filter =
- function(name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, canApplyAura, isBossDebuff)
- if(unitCaster == "player") and duration > 1 and duration < 305 then
- return true
- end
- end
- end
- end
- --]]
- end
- oUF:RegisterStyle("Kygo", Style)
- oUF:SetActiveStyle("Kygo")
- --Spawning units!
- local player = oUF:Spawn("player")
- player:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
- local target = oUF:Spawn("target")
- target:SetPoint("LEFT", player, "RIGHT", 20, 0)
- local pet = oUF:Spawn("pet")
- pet:SetPoint("BOTTOMLEFT", player, "TOPLEFT", 0, 20)
- local tot = oUF:Spawn("targettarget")
- tot:SetPoint("BOTTOMLEFT", target, "TOPLEFT", 0, 20)
- local focus = oUF:Spawn("focus")
- focus:SetPoint("CENTER", player, "CENTER", 0, 40)
- local boss1 = oUF:Spawn("boss1")
- boss1:SetPoint("CENTER", player, "CENTER", 0, 70)
- local boss2 = oUF:Spawn("boss2")
- boss2:SetPoint("CENTER", player, "CENTER", 0, 110)
- local boss3 = oUF:Spawn("boss3")
- boss3:SetPoint("CENTER", player, "CENTER", 0, 140)
- local boss4 = oUF:Spawn("boss4")
- boss4:SetPoint("CENTER", player, "CENTER", 0, 170)
- local boss5 = oUF:Spawn("boss5")
- boss5:SetPoint("CENTER", player, "CENTER", 0, 210)
- local party1 = oUF:Spawn("party1")
- party1:SetPoint("CENTER", player, "CENTER", 0, 110)
- local party2 = oUF:Spawn("party2")
- party2:SetPoint("CENTER", player, "CENTER", 0, 110)
- local party3 = oUF:Spawn("party3")
- party3:SetPoint("CENTER", player, "CENTER", 0, 110)
- local party4 = oUF:Spawn("party4")
- party4:SetPoint("CENTER", player, "CENTER", 0, 110)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement