Tiny clock script

  • FeynmanLogomaker
    15th Jul 2013 Member 0 Permalink

    Sure, it's simple, but it's also kind of useful.

     

    local clockX = 15
    local clockY = 6
    function drawTime()
    tpt.drawtext(15,370,os.date(),255,255,255,100)
    end
    tpt.register_step(drawTime)

     

  • fuzzybug123
    15th Jul 2013 Member 0 Permalink

    @FeynmanLogomaker (View Post)

     

    so just a clock in tpt?

  • mniip
    16th Jul 2013 Developer 0 Permalink
    @FeynmanLogomaker (View Post)
    what's exactly the point
  • jacob1
    16th Jul 2013 Developer 0 Permalink
    usually you only need the time, maybe os.date("%I:%M:%S %p") would work better. (edit: this should be what you want)

    Something like this might be better and allow me to advertise my mod :)

    image



    btw, his looks like this:
    image
  • FeynmanLogomaker
    16th Jul 2013 Member 0 Permalink

    @mniip, the point is for there to be a liitle clock down at the bottom-left hand corner. Your point being?

     

    @jacob1: Go ahead and advertise your mod, it's really good anyways (yes, I saw that. What was it supposed to be, an underscore?)