mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update Friends skin
This commit is contained in:
@@ -12,7 +12,6 @@ local GetGuildRosterInfo = GetGuildRosterInfo
|
|||||||
local GUILDMEMBERS_TO_DISPLAY = GUILDMEMBERS_TO_DISPLAY
|
local GUILDMEMBERS_TO_DISPLAY = GUILDMEMBERS_TO_DISPLAY
|
||||||
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
|
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
|
||||||
local CUSTOM_CLASS_COLORS = CUSTOM_CLASS_COLORS
|
local CUSTOM_CLASS_COLORS = CUSTOM_CLASS_COLORS
|
||||||
local HookScript = HookScript
|
|
||||||
local hooksecurefunc = hooksecurefunc
|
local hooksecurefunc = hooksecurefunc
|
||||||
|
|
||||||
function LoadSkin()
|
function LoadSkin()
|
||||||
@@ -181,7 +180,8 @@ function LoadSkin()
|
|||||||
local classText = _G["WhoFrameButton"..i.."Class"]
|
local classText = _G["WhoFrameButton"..i.."Class"]
|
||||||
local variableText = _G["WhoFrameButton"..i.."Variable"]
|
local variableText = _G["WhoFrameButton"..i.."Variable"]
|
||||||
|
|
||||||
_, guild, level, race, class, zone = GetWhoInfo(index)
|
local _, guild, level, race, class, zone = GetWhoInfo(index)
|
||||||
|
if class == UNKNOWN then return end
|
||||||
|
|
||||||
if class then
|
if class then
|
||||||
class = strupper(class)
|
class = strupper(class)
|
||||||
@@ -259,16 +259,16 @@ function LoadSkin()
|
|||||||
end
|
end
|
||||||
|
|
||||||
hooksecurefunc("GuildStatus_Update", function()
|
hooksecurefunc("GuildStatus_Update", function()
|
||||||
local _, level, online, classFileName
|
|
||||||
local button, buttonText, classTextColor, levelTextColor
|
|
||||||
|
|
||||||
if FriendsFrame.playerStatusFrame then
|
if FriendsFrame.playerStatusFrame then
|
||||||
for i = 1, GUILDMEMBERS_TO_DISPLAY, 1 do
|
for i = 1, GUILDMEMBERS_TO_DISPLAY, 1 do
|
||||||
button = _G["GuildFrameButton" .. i]
|
local button = _G["GuildFrameButton" .. i]
|
||||||
_, _, _, level, class, _, _, _, online = GetGuildRosterInfo(button.guildIndex)
|
local _, _, _, level, class, _, _, _, online = GetGuildRosterInfo(button.guildIndex)
|
||||||
|
if class == UNKNOWN then return end
|
||||||
|
|
||||||
if class then
|
if class then
|
||||||
class = upper(class)
|
class = upper(class)
|
||||||
end
|
end
|
||||||
|
|
||||||
if class then
|
if class then
|
||||||
if online then
|
if online then
|
||||||
classTextColor = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
|
classTextColor = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
|
||||||
@@ -286,9 +286,12 @@ function LoadSkin()
|
|||||||
for i = 1, GUILDMEMBERS_TO_DISPLAY, 1 do
|
for i = 1, GUILDMEMBERS_TO_DISPLAY, 1 do
|
||||||
button = _G["GuildFrameGuildStatusButton" .. i]
|
button = _G["GuildFrameGuildStatusButton" .. i]
|
||||||
_, _, _, _, class, _, _, _, online = GetGuildRosterInfo(button.guildIndex)
|
_, _, _, _, class, _, _, _, online = GetGuildRosterInfo(button.guildIndex)
|
||||||
|
if class == UNKNOWN then return end
|
||||||
|
|
||||||
if class then
|
if class then
|
||||||
class = upper(class)
|
class = upper(class)
|
||||||
end
|
end
|
||||||
|
|
||||||
if class then
|
if class then
|
||||||
if online then
|
if online then
|
||||||
classTextColor = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
|
classTextColor = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
|
||||||
|
|||||||
Reference in New Issue
Block a user