Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-17-11, 03:45 AM   #1
Tabinou
A Deviate Faerie Dragon
Join Date: May 2011
Posts: 11
Number of decimals in castbar time

Hi,

I'm quite new to lua and oUF.

Took a layout, and try to customize it my way.
I'm trying to have a castbar with the time having 2 decimals (I have 1.7, when i want 1.67). I can't find where to set this up (in my layout ? in oUF directly ?)

My code looks like this:
Code:
self.Castbar = CreateFrame('StatusBar', nil, self)
					self.Castbar:SetFrameStrata('MEDIUM')
					self.Castbar:SetFrameLevel(10)
					self.Castbar:SetWidth(300)
					self.Castbar:SetHeight(26)
					self.Castbar:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -10)
					self.Castbar:SetStatusBarTexture(cfg.Statusbar)
					self.Castbar:SetStatusBarColor(1,1,0)
self.Castbar.Time = self.Castbar:CreateFontString(nil, 'OVERLAY') 
					self.Castbar.Time:SetFont(cfg.Font, 14, 'THINOUTLINE')
					self.Castbar.Time:SetPoint('RIGHT', self.Castbar,'RIGHT',-2, 0)
					self.Castbar.Time:SetWidth(50)
					self.Castbar.Time:SetTextColor(1,1,1)
					self.Castbar.Time:SetJustifyH('RIGHT')
Thanks in advance.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Number of decimals in castbar time


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