From 5c89e1ea24da27af713c0f65d9f249f2ef7e0d21 Mon Sep 17 00:00:00 2001 From: d87 Date: Sat, 28 Oct 2023 23:48:54 +0700 Subject: [PATCH] Configurable role status --- Aptechka.lua | 2 +- Options/StatusConfig.lua | 1 + frame.lua | 8 ++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Aptechka.lua b/Aptechka.lua index bddf3cd..6cf5548 100644 --- a/Aptechka.lua +++ b/Aptechka.lua @@ -874,7 +874,7 @@ function Aptechka.GetWidgetList() local list = Aptechka.GetWidgetListRaw() list["statusIcon"] = nil list["raidTargetIcon"] = nil - list["roleIcon"] = nil + -- list["roleIcon"] = nil list["debuffIcons"] = nil list["mindcontrol"] = nil -- list["unhealable"] = nil diff --git a/Options/StatusConfig.lua b/Options/StatusConfig.lua index 0fbcf69..e5cd4b7 100644 --- a/Options/StatusConfig.lua +++ b/Options/StatusConfig.lua @@ -30,6 +30,7 @@ function ns.MakeStatusConfig() "DeadStatus", "GhostStatus", "OfflineStatus", + "RoleStatus", "RunicPowerStatus", "AltPowerStatus", "DebuffAlert1", diff --git a/frame.lua b/frame.lua index ddc10d1..1842233 100644 --- a/frame.lua +++ b/frame.lua @@ -440,13 +440,17 @@ local roleCoords = { TANK = { 0, 19/64, 22/64, 41/64 }, HEALER = { 20/64, 39/64, 1/64, 20/64 }, } +local roleColors = { + TANK = { 0.4, 0.4, 1 }, + HEALER = { 0.4, 1, 0.4 }, +} function contentNormalizers.ROLE(job, state, contentType, ...) local timerType, cur, max, count, icon, text, r,g,b, a, tr,tg,tb, texture, texCoords local role = ... texture = "Interface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES" texCoords = roleCoords[role] - text = job.name - r,g,b = 1,1,1 + text = role + r,g,b = unpack(roleColors[role]) return timerType, cur, max, count, icon, text, r,g,b, a, tr,tg,tb, texture, texCoords end