Update Aardwolf_Clock.xml

pull/4/head
AardCrowley 6 years ago
parent 1c9e863388
commit c027897c21

@ -6,7 +6,7 @@
<!-- Plugin "Aardwolf_Clock" generated by Plugin Wizard -->
<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="2.7">
<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="2.8">
</plugin>
@ -90,7 +90,7 @@
local win = "AardClock_" .. GetPluginID()
local font = "f"
windowinfo = movewindow.install(win, 7, miniwin.create_absolute_location, true, nil, {mouseup = MoveMouseUp, mousedown = MoveMouseDown})
windowinfo = movewindow.install(win, 7, miniwin.create_absolute_location, true, nil)
checked_time = false
local footer_text = {}
@ -119,7 +119,6 @@
window_width = (20 * font_width) + 11
local cx = math.floor((window_width-5)/2) + 3
local cy = cx + font_height
canRedraw = true
bgDay = 'khaki'
bgNight = 'navy'
@ -366,7 +365,6 @@
end
function onTimer()
if canRedraw then
if checked_time then
last_tick = last_tick or os.clock()
local s = os.clock() - last_tick
@ -378,7 +376,6 @@
Redraw()
end
end
end
function updateDay()
if clock_current.day == clock_seasons[clock_current.Season][1] then
@ -407,14 +404,8 @@
movewindow.save_state(win)
end
function MoveMouseDown()
canRedraw = false
print("Mousedown!")
end
function MoveMouseUp()
canRedraw = true
print("Mouseup!")
function OnPluginClose()
OnPluginDisable()
end
function OnPluginInstall()

Loading…
Cancel
Save