From 0165ddfafd394aa032ad2922100e90685876fdd3 Mon Sep 17 00:00:00 2001 From: AardCrowley Date: Wed, 24 Jan 2024 19:22:54 -0800 Subject: [PATCH] Update Aardwolf_Clock.xml --- Aardwolf_Clock V2/Aardwolf_Clock.xml | 29 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/Aardwolf_Clock V2/Aardwolf_Clock.xml b/Aardwolf_Clock V2/Aardwolf_Clock.xml index ec36c71..57e48a9 100644 --- a/Aardwolf_Clock V2/Aardwolf_Clock.xml +++ b/Aardwolf_Clock V2/Aardwolf_Clock.xml @@ -6,7 +6,7 @@ - + @@ -113,6 +113,19 @@ if not GetVariable("showDigital") then SetVariable("showDigital", "false") end +function round(v) + local r = 0 + if type(v) == 'number' then + i, f = math.modf(v) + if f >0.5 then + r = i + 1 + else + r = i + end + end + return r +end + function findPos(t) local spt = 12.0 local r = 62 @@ -241,20 +254,6 @@ end require 'tprint' - -function round(v) - local r = 0 - if type(v) == 'number' then - i, f = math.modf(v) - if f >0.5 then - r = i + 1 - else - r = i - end - end - return r -end - PLUGIN_VERSION = GetPluginInfo(GetPluginID(), 19) PLUGIN_NAME = GetPluginInfo(GetPluginID(), 1)