View Single Post
01-20-10, 08:25 AM   #11
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Originally Posted by Bruners View Post
well its not that much now is it?

Code:
local _, player = UnitClass("player")
local colors = RAID_CLASS_COLORS
local r, g, b = colors[player].r*255, colors[player].g*255, colors[player].b*255
local string = "%d |cff%02x%02x%02xfps|r ||| %d |cff%02x%02x%02xms|r"
local fps = GetFramerate()
local ms = select(3, GetNetStats())
text:SetText(string.format(string, fps, r, g, b, ms, r, g, b))
And he can easily expand it or use the same variables elsewhere
That's better :3
  Reply With Quote