Update Aardwolf_Clock.xml

master
AardCrowley 10 months ago committed by GitHub
parent 1a62c10b52
commit 0165ddfafd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,7 +6,7 @@
<!-- Plugin "Aardwolf_Clock" generated by Plugin Wizard --> <!-- Plugin "Aardwolf_Clock" generated by Plugin Wizard -->
<muclient> <muclient>
<plugin name="Aardwolf_Clock" author="Crowley, with help from Fiendish" id="28a36788fa20aa062e760ee2" language="Lua" purpose="Displays a realtime clock based on Aardwolf game time" save_state="y" date_written="2018-05-15 11:43:22" requires="4.90" version="5.00"> <plugin name="Aardwolf_Clock" author="Crowley, with help from Fiendish" id="28a36788fa20aa062e760ee2" language="Lua" purpose="Displays a realtime clock based on Aardwolf game time" save_state="y" date_written="2018-05-15 11:43:22" requires="4.90" version="5.01">
</plugin> </plugin>
@ -113,6 +113,19 @@ if not GetVariable("showDigital") then
SetVariable("showDigital", "false") SetVariable("showDigital", "false")
end 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) function findPos(t)
local spt = 12.0 local spt = 12.0
local r = 62 local r = 62
@ -241,20 +254,6 @@ end
require 'tprint' 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_VERSION = GetPluginInfo(GetPluginID(), 19)
PLUGIN_NAME = GetPluginInfo(GetPluginID(), 1) PLUGIN_NAME = GetPluginInfo(GetPluginID(), 1)

Loading…
Cancel
Save