-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathAuto_Say_Visualizer.xml
66 lines (52 loc) · 1.29 KB
/
Auto_Say_Visualizer.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Thursday, July 10, 2008, 1:28 PM -->
<!-- MuClient version 4.33 -->
<!-- Plugin "Auto_Say_Visualizer" generated by Plugin Wizard -->
<muclient>
<plugin
name="Auto_Say_Visualizer"
author="Nick Gammon"
id="379f2b5475fb85cd8de2a2d5"
language="Lua"
purpose="Colours command window if auto-say active"
date_written="2008-07-10 13:27:28"
requires="4.00"
version="1.01"
>
</plugin>
<!-- Timers -->
<timers>
<timer
enabled="y"
second="1.00"
send_to="10"
active_closed="y"
script="AutoSayVisualize"
>
</timer>
</timers>
<!-- Script -->
<script>
<![CDATA[
bWasAutoSayActive = 0
function AutoSayVisualize()
if GetOption("enable_auto_say") ~= bWasAutoSayActive then
bWasAutoSayActive = GetOption("enable_auto_say")
if bWasAutoSayActive == 1 then
SetOption ("input_background_colour", ColourNameToRGB ("palegreen"))
else
SetOption ("input_background_colour", ColourNameToRGB ("white"))
end -- if
end -- if
end
function OnPluginClose()
SetOption ("input_background_colour", ColourNameToRGB ("white"))
end
function OnPluginDisable()
bWasAutoSayActive = 0
SetOption ("input_background_colour", ColourNameToRGB ("white"))
end
]]>
</script>
</muclient>