Originally Posted by Kanegasi
Lua Code:
hooksecurefunc("GuildStatus_Update",function(_) local index,name,rank,online local showOffline=GetGuildRosterShowOffline() local offset=FauxScrollFrame_GetOffset(GuildListScrollFrame) local frame=FriendsFrame.playerStatusFrame and "GuildFrameButton" or "GuildFrameGuildStatusButton" for i=1,GUILDMEMBERS_TO_DISPLAY do index=offset+i name,_,rank,_,_,_,_,_,online=GetGuildRosterInfo(index) if name then if online then -- colors for online players -- Guild Master if rank==0 then _G[frame..i.."Name"]:SetTextColor(1.0,0.82,0.0) -- rank immediately under GM elseif rank==1 then _G[frame..i.."Name"]:SetTextColor(1.0,0.82,0.0) -- and so on elseif rank==2 then _G[frame..i.."Name"]:SetTextColor(1.0,0.82,0.0) end elseif showOffline then -- colors for offline players -- Guild Master if rank==0 then _G[frame..i.."Name"]:SetTextColor(0.5,0.5,0.5) -- rank immediately under GM elseif rank==1 then _G[frame..i.."Name"]:SetTextColor(0.5,0.5,0.5) -- and so on elseif rank==2 then _G[frame..i.."Name"]:SetTextColor(0.5,0.5,0.5) end end end end end)
|
Thank you!
This helps a lot to reach my goal and learn more !