Commit b358efa2 authored by Tukz's avatar Tukz
Browse files

for /who command, shaman color

parent 3ffc326d
......@@ -97,4 +97,24 @@ function GetColoredName(event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, a
end
return arg2
end
\ No newline at end of file
end
-- Temp, for /who command, shaman color.
local function UpdateWhoShamanColor()
local WhoOffset = FauxScrollFrame_GetOffset(WhoListScrollFrame)
local WhoIndex, Button, Text
for i=1, WHOS_TO_DISPLAY, 1 do
WhoIndex = WhoOffset + i;
Button = _G["WhoFrameButton"..i]
Text = _G["WhoFrameButton"..i.."Class"]
local Info = C_FriendList.GetWhoInfo(WhoIndex)
if Info and Info.filename == "SHAMAN" and Text then
Text:SetTextColor(unpack(T.Colors.class["SHAMAN"]))
end
end
end
hooksecurefunc("WhoList_Update", UpdateWhoShamanColor)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment