Skip to content

Commit

Permalink
add spell icons to tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
bkader committed Mar 22, 2024
1 parent bea4257 commit 4c1beeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Skada/Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1422,14 +1422,13 @@ do

if data.color then
color = data.color
elseif Skada.validclass[data.class] then
elseif data.class and Skada.validclass[data.class] then
color = classcolors(data.class)
end

local title = data.text or data.label
if mode.metadata and mode.metadata.showspots then
title = format("\124cffffffff%d.\124r %s", nr, title)
end
title = (data.spellid and data.icon) and format("|T%s:16:16:0:0:64:64:6:58:6:58|t %s", data.icon, title) or title
title = (mode.metadata and mode.metadata.showspots) and format("\124cffffffff%d.\124r %s", nr, title) or title
tooltip:AddDoubleLine(title, data.valuetext, color.r, color.g, color.b)
elseif nr >= maxnr then
break -- no need to continue
Expand Down
2 changes: 1 addition & 1 deletion Skada/Skada.toc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## DefaultState: enabled
## Author: Kader (|cff808080bkader#5341|r)
## Version: 1.8.86
## X-Date: 2024-03-22 @ 02:27 |cff808080UTC|r
## X-Date: 2024-03-22 @ 23:08 |cff808080UTC|r
## X-Credits: Zarnivoop
## X-Curse-Project-ID: 623633
## X-Category: Combat
Expand Down

0 comments on commit 4c1beeb

Please sign in to comment.