|
|
@ -3,10 +3,11 @@
|
|
|
|
<!-- Saved on Wednesday, March 09, 2022, 11:04 AM -->
|
|
|
|
<!-- Saved on Wednesday, March 09, 2022, 11:04 AM -->
|
|
|
|
<!-- MuClient version 5.07-pre -->
|
|
|
|
<!-- MuClient version 5.07-pre -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Plugin "RoomCharWindow" generated by Plugin Wizard -->
|
|
|
|
|
|
|
|
|
|
|
|
<muclient>
|
|
|
|
<muclient>
|
|
|
|
<plugin
|
|
|
|
<plugin
|
|
|
|
name="NoteExtender"
|
|
|
|
name="NoteWindow"
|
|
|
|
author="Crowley"
|
|
|
|
author="Crowley"
|
|
|
|
id="c49e43d9dce931263263088b"
|
|
|
|
id="c49e43d9dce931263263088b"
|
|
|
|
language="Lua"
|
|
|
|
language="Lua"
|
|
|
@ -32,7 +33,7 @@
|
|
|
|
</alias>
|
|
|
|
</alias>
|
|
|
|
|
|
|
|
|
|
|
|
<alias
|
|
|
|
<alias
|
|
|
|
match="^notewin (on|off|show|hide)$"
|
|
|
|
match="^notewin (on|off|show|hide|clear|help)$"
|
|
|
|
enabled="y"
|
|
|
|
enabled="y"
|
|
|
|
regexp="y"
|
|
|
|
regexp="y"
|
|
|
|
ignore_case="y"
|
|
|
|
ignore_case="y"
|
|
|
@ -145,11 +146,25 @@ end
|
|
|
|
function toggleNoteWin(name, line, wildcards)
|
|
|
|
function toggleNoteWin(name, line, wildcards)
|
|
|
|
if wildcards[1] == "on" or wildcards[1] == "show" then
|
|
|
|
if wildcards[1] == "on" or wildcards[1] == "show" then
|
|
|
|
noteShow = "true"
|
|
|
|
noteShow = "true"
|
|
|
|
else
|
|
|
|
SetVariable("noteShow", noteShow)
|
|
|
|
|
|
|
|
ColourNote("white", "blue", "Toggled Note Window Status: " .. wildcards[1])
|
|
|
|
|
|
|
|
elseif wildcards[1] == "off" or wildcards[1] == "hide" then
|
|
|
|
noteShow = "false"
|
|
|
|
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
|
|
|
|
ColourNote("white", "blue", "Toggled Note Window Status: " .. wildcards[1])
|
|
|
|
end
|
|
|
|
SetVariable("noteShow", noteShow)
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|