Update Aardwolf_Clock.xml

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

@ -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="5.01">
<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.02">
</plugin>
@ -102,8 +102,8 @@ font = "f"
checked_time = false
footer_text = {}
font_name = GetAlphaOption("output_font_name")
font_size = GetOption("output_font_height")
font_name = GetVariable("font_name") or GetAlphaOption("output_font_name")
font_size = tonumber(GetVariable("font_size")) or GetOption("output_font_height")
if not GetVariable("showTitleBar") then
SetVariable("showTitleBar", "true")
@ -167,10 +167,25 @@ function createWindow()
fontSize, -- title_font_size
true -- defer_showing
)
table.insert(clockWin.menu_table, "Change font")
table.insert(clockWin.menu_table, "Show title bar")
table.insert(clockWin.menu_table, "Hide title bar")
table.insert(clockWin.menu_table, "Compact mode")
table.insert(clockWin.menu_table, "Full mode")
table.insert(
clockWin.menu_handlers,
function()
wantedFont = utils.fontpicker()
SetVariable("font_name", wantedFont.name)
font_name = wantedFont.name
SetVariable("font_size", wantedFont.size)
font_size = wantedFont.size
SaveState()
clockWin:hide()
createWindow()
Execute("aardclock time")
end
)
table.insert(
clockWin.menu_handlers,
function()

Loading…
Cancel
Save