View Single Post
07-27-13, 04:09 PM   #24
Akatosh
A Black Drake
AddOn Compiler - Click to view compilations
Join Date: Jun 2013
Posts: 84
Originally Posted by Akatosh View Post
Ok I remove that line, Now I have a little problem... I have no zeros on left side of the tex, I edit my last post to explain it, you can help me to fix that?
I see the light man!!! I have no idea how can appear in my mind but works good now, I see the code of coords... And I say to me... Umm that be very similar, I put ".i" and nothing changed, ummm maybe if y put 2 appear 1 number more, and bammm.

The part of "OnLoad" be the some.

Now in OnUpdate:

local minutes, hour, minute
local t = date("*t", time())
hour = t.hour
minute = t.min
minutes = (hour*60) + minute
if (minutes > 1440) then
minutes = minutes - 1440
end
minutes = abs(minutes)
hour = floor(minutes/60)
minute = format("%02d", mod(minutes, 60))
if minutes > 719 then
if minutes > 779 then
hour = floor(minutes/60) - 12
end
self.text:SetText(string.format("|cffffffff%2i:%2i|r pm", hour,minute))
else
if (hour == 0) then
hour = 12
end
self.text:SetText(string.format("|cffffffff%2i:%.2i|r am", hour,minute))
end
Thanks for all, now I can zocus on the part of zone and subzone (with colors).

Last edited by Akatosh : 07-27-13 at 04:17 PM.
  Reply With Quote