View Single Post
07/04/14, 05:06 PM   #2
Sasky
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 231
I think that OnUpdate would fire whenever your text field itself is updated. To have something update the clock periodically, try:

Lua Code:
  1. EVENT_MANAGER:RegisterForUpdate("tkClockUpdate", 1000, function()
  2.     tkClock:SetText(GetTimeString())
  3. end))

This will cause it to update text once per second (which is honestly all you really need to do for a clock)
  Reply With Quote