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.