|
|
|
@ -3,10 +3,11 @@
|
|
|
|
|
<!-- Saved on Wednesday, March 09, 2022, 11:04 AM -->
|
|
|
|
|
<!-- MuClient version 5.07-pre -->
|
|
|
|
|
|
|
|
|
|
<!-- Plugin "RoomCharWindow" generated by Plugin Wizard -->
|
|
|
|
|
|
|
|
|
|
<muclient>
|
|
|
|
|
<plugin
|
|
|
|
|
name="NoteExtender"
|
|
|
|
|
name="NoteWindow"
|
|
|
|
|
author="Crowley"
|
|
|
|
|
id="c49e43d9dce931263263088b"
|
|
|
|
|
language="Lua"
|
|
|
|
@ -32,7 +33,7 @@
|
|
|
|
|
</alias>
|
|
|
|
|
|
|
|
|
|
<alias
|
|
|
|
|
match="^notewin (on|off|show|hide)$"
|
|
|
|
|
match="^notewin (on|off|show|hide|clear|help)$"
|
|
|
|
|
enabled="y"
|
|
|
|
|
regexp="y"
|
|
|
|
|
ignore_case="y"
|
|
|
|
@ -145,11 +146,25 @@ end
|
|
|
|
|
function toggleNoteWin(name, line, wildcards)
|
|
|
|
|
if wildcards[1] == "on" or wildcards[1] == "show" then
|
|
|
|
|
noteShow = "true"
|
|
|
|
|
else
|
|
|
|
|
noteShow = "false"
|
|
|
|
|
end
|
|
|
|
|
SetVariable("noteShow", noteShow)
|
|
|
|
|
ColourNote("white", "blue", "Toggled Note Window Status: " .. wildcards[1])
|
|
|
|
|
elseif wildcards[1] == "off" or wildcards[1] == "hide" then
|
|
|
|
|
noteShow = "false"
|
|
|
|
|
SetVariable("noteShow", noteShow)
|
|
|
|
|
ColourNote("white", "blue", "Toggled Note Window Status: " .. wildcards[1])
|
|
|
|
|
elseif wildcards[1] == "clear" then
|
|
|
|
|
NotesWin:clear(false)
|
|
|
|
|
NotesWin:show()
|
|
|
|
|
ColourNote("white", "blue", "Clearing Note Window...")
|
|
|
|
|
elseif wildcards[1] == "help" then
|
|
|
|
|
onHelp()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function onHelp()
|
|
|
|
|
ColourNote("yellow", "", "Basic commands:")
|
|
|
|
|
ColourNote("orange", "", string.format("%-30s - %s", "notewin <on|show|off|hide>", "Toggles the display of the note window."))
|
|
|
|
|
ColourNote("orange", "", string.format("%-30s - %s", "notewin clear", "Clears the note window of existing content."))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
]]>
|
|
|
|
|