diff --git a/oUF_Simple/core/functions.lua b/oUF_Simple/core/functions.lua index 1010006..3a5c807 100644 --- a/oUF_Simple/core/functions.lua +++ b/oUF_Simple/core/functions.lua @@ -433,6 +433,12 @@ local function CreateRaidMark(self) end L.F.CreateRaidMark = CreateRaidMark +local function CreateReadyCheck(self) + if not self.cfg.readycheck or not self.cfg.readycheck.enabled then return end + return CreateIcon(self.Health,"OVERLAY",2,self.cfg.readycheck.size,self.cfg.readycheck.point) +end +L.F.CreateReadyCheck = CreateReadyCheck + local function CreateRaidDebuffs(self) if not self.cfg.debuffwatch or not self.cfg.debuffwatch.enabled then return end local cfg = self.cfg.debuffwatch @@ -516,6 +522,22 @@ local function PostCreateAura(self,button) button:SetFrameStrata("LOW") end +--DesaturateBuffs +local function DesaturateBuffs(unit,button) + if button.icon then + button.icon:SetDesaturated(not UnitIsFriend("player",unit) and not button.isPlayer) + end +end + +--PostUpdateDebuff +local function PostUpdateDebuff(self,unit,button) + if not button then return end + + if self.desaturateAura then + DesaturateBuffs(unit,button) + end +end + --CreateBuffs local function CreateBuffs(self) if not self.cfg.buffs or not self.cfg.buffs.enabled then return end @@ -530,6 +552,7 @@ local function CreateBuffs(self) frame["growth-y"] = cfg.growthY frame.disableCooldown = cfg.disableCooldown frame.filter = cfg.filter + frame.showStealableBuffs = cfg.stealable or false frame.CustomFilter = cfg.CustomFilter frame.PostCreateIcon = cfg.PostCreateAura or PostCreateAura --frame.PostUpdateIcon = PostUpdateBuff @@ -547,6 +570,7 @@ local function CreateDebuffs(self) local cfg = self.cfg.debuffs local frame = CreateFrame("Frame", nil, self) SetPoint(frame,self,cfg.point) + frame.desaturateAura = cfg.desaturate or false frame.num = cfg.num frame.size = cfg.size frame.spacing = cfg.spacing @@ -557,7 +581,7 @@ local function CreateDebuffs(self) frame.filter = cfg.filter frame.CustomFilter = cfg.CustomFilter frame.PostCreateIcon = cfg.PostCreateAura or PostCreateAura - --frame.PostUpdateIcon = PostUpdateDebuff + frame.PostUpdateIcon = PostUpdateDebuff frame:SetSize(CalcFrameSize(cfg.num,cfg.cols,cfg.size,cfg.size,cfg.spacing,0)) --local t = frame:CreateTexture(nil,"BACKGROUND",nil,-8) --t:SetAllPoints() diff --git a/oUF_Simple/core/style.lua b/oUF_Simple/core/style.lua index 45cb4cf..0a48b38 100644 --- a/oUF_Simple/core/style.lua +++ b/oUF_Simple/core/style.lua @@ -38,6 +38,7 @@ local function CreateStyle(self) self.Debuffs = L.F.CreateDebuffs(self) self.Buffs = L.F.CreateBuffs(self) self.RaidTargetIndicator = L.F.CreateRaidMark(self) + self.ReadyCheckIndicator = L.F.CreateReadyCheck(self) self.RaidDebuffs = L.F.CreateRaidDebuffs(self) end L.F.CreateStyle = CreateStyle \ No newline at end of file diff --git a/oUF_SimpleConfig/boss.lua b/oUF_SimpleConfig/boss.lua index e255b89..a944ef0 100644 --- a/oUF_SimpleConfig/boss.lua +++ b/oUF_SimpleConfig/boss.lua @@ -92,6 +92,7 @@ L.C.boss = { growthX = "LEFT", growthY = "DOWN", disableCooldown = false, + stealable = true, }, --debuffs debuffs = { @@ -105,6 +106,7 @@ L.C.boss = { growthX = "RIGHT", growthY = "DOWN", disableCooldown = true, + desaturate = true, }, setup = { point = "TOP", diff --git a/oUF_SimpleConfig/focus.lua b/oUF_SimpleConfig/focus.lua index 23dd34b..9fff383 100644 --- a/oUF_SimpleConfig/focus.lua +++ b/oUF_SimpleConfig/focus.lua @@ -78,6 +78,7 @@ L.C.focus = { growthX = "RIGHT", growthY = "DOWN", disableCooldown = false, + stealable = true, }, --debuffs debuffs = { @@ -91,5 +92,6 @@ L.C.focus = { growthX = "RIGHT", growthY = "DOWN", disableCooldown = true, + desaturate = true, }, } diff --git a/oUF_SimpleConfig/raid.lua b/oUF_SimpleConfig/raid.lua index 93dd4e1..bbc3a5e 100644 --- a/oUF_SimpleConfig/raid.lua +++ b/oUF_SimpleConfig/raid.lua @@ -61,6 +61,12 @@ L.C.raid = { point = {"CENTER","CENTER",0,0}, size = 22, }, + --ready check + readycheck = { + enabled = true, + size = {12,12}, + point = {"CENTER","CENTER",0,0}, + }, setup = { template = nil, visibility = "custom [group:raid] show; hide", diff --git a/oUF_SimpleConfig/target.lua b/oUF_SimpleConfig/target.lua index 37304db..3cb0cd5 100644 --- a/oUF_SimpleConfig/target.lua +++ b/oUF_SimpleConfig/target.lua @@ -107,6 +107,7 @@ L.C.target = { growthX = "RIGHT", growthY = "UP", disableCooldown = true, + stealable = true, }, debuffs = { enabled = true, @@ -119,5 +120,6 @@ L.C.target = { growthX = "RIGHT", growthY = "DOWN", disableCooldown = true, + desaturate = true, }, } diff --git a/oUF_SimpleConfig/targettarget.lua b/oUF_SimpleConfig/targettarget.lua index 491ad1a..53e8f18 100644 --- a/oUF_SimpleConfig/targettarget.lua +++ b/oUF_SimpleConfig/targettarget.lua @@ -58,5 +58,6 @@ L.C.targettarget = { growthX = "RIGHT", growthY = "DOWN", disableCooldown = true, + desaturate = true, }, } \ No newline at end of file