View Single Post
01-20-10, 08:19 AM   #10
Bruners
A Flamescale Wyrmkin
 
Bruners's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 125
Originally Posted by suicidalkatt View Post
Lol.. excessive much.

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

Last edited by Bruners : 01-20-10 at 08:22 AM.
  Reply With Quote