Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-07-13, 12:04 PM   #1
Akatosh
A Black Drake
AddOn Compiler - Click to view compilations
Join Date: Jun 2013
Posts: 84
Helps with Kgpanels!

Hi all!.

I am trying to remove databroker addons and use kgpanels with scrpts for my interface.

I want put a part of the text in class colored, and the other in white.

At this point I have that cripts.

On load:

local font, size, flags = self.text:GetFont()
self.text:SetFont(font, size, "OUTLINE," .. flags)
local _, Class = UnitClass("player")
local Color = RAID_CLASS_COLORS[Class]
self.text:SetTextColor(Color.r,Color.g,Color.b)

self.text:SetJustifyH("CENTER")
self.text:SetJustifyV("CENTER")
FPS_UPDATE = 0
FPS_RATE = 1
OnUpdate:
FPS_UPDATE = FPS_UPDATE + elapsed
if FPS_UPDATE > FPS_RATE then
local fps = GetFramerate()
self.text:SetText(string.format("%0.i fps",fps))
FPS_UPDATE = 0.1
end
Result:




¿Can be posible text color like the example?:




Thx to all!!
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Helps with Kgpanels!


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off