So I tried doing what you said but I'm afraid I'm utterly lost.
My current .lua file looks like this:
Lua Code:
timestampA = GetTimeStamp("start")
timestampB = GetTimeStamp("now")
elapsedSeconds = GetDiffBetweenTimeStamps(now, start)
counter = 1
function TimerUpdate()
TimerCounter:SetText(string.format("Timer: %d", elapsedSeconds))
counter = counter + elapsedSeconds
end
function TimerInitalized()
end
I'm certain that my code above is not even close to being correct and as for the event trigger, I'm not exactly sure how to implement it as my knowledge on custom events and callbacks is extremely limited.
Y' know the saying teach a man to fish and all that...
Well I thought it was a good idea to sail straight off into the middle of the Pacific Ocean to teach myself to fish...I didn't catch a single thing and I drowned miserably.
I think I'll just lick my wounds and try fishing at a pond for the moment.