add_hook("draw2d", "showclock", function () now = os.date("*t"); wx, wy=get_window_size(); draw_text(string.format("%02s:%02s", now.hour, now.min), wx-50, wy-20); end)
nice! but, can you make it so it is 12 hour not 24 hour?
add_hook("draw2d", "showclock", function () now = os.date("*t"); wx, wy=get_window_size(); draw_text(string.format("%02s:%02s", math.fmod(now.hour,12), now.min), wx-50, wy-20); end)
lua code: add_hook("draw2d", "showclock", function () now = os.date("*t"); wx, wy=get_window_size(); draw_text(string.format("%02s:%02s", math.fmod(now.hour,12), now.min), wx-50, wy-20); end)
it shows clock everytime. and on sp too. try restart your toribash.