Skip to content

Commit

Permalink
Configurable role status
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Oct 28, 2023
1 parent 6b1ddc1 commit 5c89e1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Options/StatusConfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function ns.MakeStatusConfig()
"DeadStatus",
"GhostStatus",
"OfflineStatus",
"RoleStatus",
"RunicPowerStatus",
"AltPowerStatus",
"DebuffAlert1",
Expand Down
8 changes: 6 additions & 2 deletions frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5c89e1e

Please sign in to comment.