-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvyzor.trigger
More file actions
633 lines (544 loc) · 20.8 KB
/
vyzor.trigger
File metadata and controls
633 lines (544 loc) · 20.8 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<TriggerPackage>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>TestChat</name>
<script>local chat_list = {"john", "jane", "b o b"}
local chat2_list = {"billy", "bubba", "gertrude", "agnis"}
local n
for _, name in ipairs( chat_list ) do
if matches[2] == name then
n = 1
break
end
end
if not n then
for _, name in ipairs( chat2_list ) do
if matches[2] == name then
n = 2
break
end
end
end
if not n then
error( "Unmatched name!" )
end
if n == 1 then
if matches[2] == "john" then
chat:Echo( matches[2], line )
elseif matches[2] == "jane" then
chat:Paste( matches[2] )
else
chat:Append( matches[2] )
end
elseif n == 2 then
if matches[2] == "billy" then
chat2:Paste( matches[2] )
elseif matches[2] == "bubba" then
chat2:Append( matches[2] )
else
chat2:Echo( matches[2], line )
end
end</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^\[(.+)\]: (.+) $</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</TriggerPackage>
<TimerPackage/>
<AliasPackage>
<Alias isActive="yes" isFolder="no">
<name>Unload Vyzor</name>
<script>echo("Vyzor: Unloading modules...\n")
for index in pairs( package.loaded ) do
if index:find( "vyzor", 1, true ) then
echo(string.format("Vyzor: Found module %s.\n", index))
package.loaded[index] = nil
end
end
echo("Vyzor: Unloaded all modules.\n")
Vyzor = nil</script>
<command></command>
<packageName></packageName>
<regex>^U$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Change Options</name>
<script>-- There appears to be a Mudlet bug: the scroll bar isn't
-- adjusted properly after the resize. Text comes in where
-- it's supposed to be, though.
Vyzor.Options.Borders = {Top = 0.3, Bottom = "dynamic"}</script>
<command></command>
<packageName></packageName>
<regex>^co$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Reset Profile</name>
<script>Vyzor.Options:Reset()</script>
<command></command>
<packageName></packageName>
<regex>^rp$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Test Vyzor</name>
<script>-- Change this file for testing.
local image_file = [[C:/Users/Administrator/.config/mudlet/profiles/Midkemia Online/Vyzor/eq_light.png]]
local border = Vyzor.Border(
10,
Vyzor.BorderStyle.Groove,
Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.Name, "white" ) )
)
local margin = Vyzor.Margin( 5 )
local padding = Vyzor.Padding( 5 )
local green = Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.Name, "green" ) )
local background = Vyzor.Background( green )
local image = Vyzor.Image( image_file,
Vyzor.Alignment.Center )
local img_back = Vyzor.Background( image )
local img_border = Vyzor.Border( nil, nil, image )
Vyzor.HUD.Frames["VyzorTop"]:Add( border )
Vyzor.HUD.Frames["VyzorTop"]:Add( margin )
Vyzor.HUD.Frames["VyzorTop"]:Add( padding )
Vyzor.HUD.Frames["VyzorTop"]:Add( image )
Vyzor.HUD.Frames["VyzorBottom"]:Add( border )
Vyzor.HUD.Frames["VyzorBottom"]:Add( margin )
Vyzor.HUD.Frames["VyzorBottom"]:Add( padding )
Vyzor.HUD.Frames["VyzorBottom"]:Add( background )
Vyzor.HUD.Frames["VyzorRight"]:Add( border )
Vyzor.HUD.Frames["VyzorRight"]:Add( margin )
Vyzor.HUD.Frames["VyzorRight"]:Add( padding )
Vyzor.HUD.Frames["VyzorRight"]:Add( img_back )
Vyzor.HUD.Frames["VyzorLeft"]:Add( img_border )
Vyzor.HUD.Frames["VyzorLeft"]:Add( margin )
Vyzor.HUD.Frames["VyzorLeft"]:Add( image )
local right_frame = Vyzor.Frame( "right_frame", .2, .3, .6, .4 )
right_frame:Add( border )
right_frame:Add( background )
right_frame:Add( padding )
Vyzor.HUD.Frames["VyzorRight"]:Add( "right_frame" )
local inner_right = Vyzor.Frame( "inner_right", 0, 0, 1, 1 )
inner_right:Add( border )
inner_right:Add( img_back )
inner_right:Add( padding )
right_frame:Add( inner_right )
local inner_inner = Vyzor.Frame( "inner_inner", 0, 0, 1, 1 )
inner_inner:Add( img_border )
inner_inner:Add( padding )
inner_right:Add( "inner_inner" )
local so_deep = Vyzor.Frame( "so_deep", 0, 0, 1, 1 )
--so_deep:Add( background )
so_deep:Add( border )
so_deep:Add( padding )
inner_inner:Add( so_deep )
local enough = Vyzor.Frame( "enough", 0, 0, 1, 1 )
enough:Add( border )
enough:Add( image )
so_deep:Add( enough )
--Vyzor.HUD:Draw()
second_tc = false
expandAlias("tc")</script>
<command></command>
<packageName></packageName>
<regex>^tv$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestConsole</name>
<script>if not second_tc then
local console_one = Vyzor.MiniConsole( "console_one", 0, 0, .5, .3 )
local console_two = Vyzor.MiniConsole( "console_two", .5, .3, .5, .3, 10 )
local console_three = Vyzor.MiniConsole( "console_three", 0, .6, .5, .3, nil, 15 )
local console_four = Vyzor.MiniConsole( "console_four", 0, .3, .5, .3, 80 )
Vyzor.HUD.Frames["VyzorLeft"]:Add( console_one )
Vyzor.HUD.Frames["VyzorLeft"]:Add( console_two )
Vyzor.HUD.Frames["VyzorLeft"]:Add( console_three )
Vyzor.HUD.Frames["VyzorLeft"]:Add( console_four )
--Vyzor.HUD:Draw()
expandAlias( "tg" )
for i=1, 100 do
echo( "console_one", i .. " " )
echo( "console_two", i .. " " )
echo( "console_three", i .. " " )
echo( "console_four", i .. " " )
end
end
if second_tc then
local num_tbl = {"one", "two", "three", "four"}
local randex = num_tbl[math.random(#num_tbl)]
if math.random(2) == 1 then
local rndm = math.random(10, 101)
Vyzor.HUD.Frames["VyzorLeft"].MiniConsoles["console_" .. randex].WordWrap =
(rndm == 101 and "dynamic") or rndm
echo(string.format("Setting console_%s.WordWrap to %s.\n",
randex, (rndm == 101 and "dynamic")or rndm))
else
local rndm = math.random(5, 16)
Vyzor.HUD.Frames["VyzorLeft"].MiniConsoles["console_" .. randex].FontSize =
(rndm == 16 and "dynamic") or rndm
echo(string.format("Setting console_%s.FontSize to %s.\n",
randex, (rndm == 16 and "dynamic")or rndm))
end
end
second_tc = true</script>
<command></command>
<packageName></packageName>
<regex>^tc$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestMap</name>
<script>local map = Vyzor.Map( 0, .7, 1, .3 )
Vyzor.HUD.Frames["VyzorRight"]:Add( map )
Vyzor.HUD:Draw()</script>
<command></command>
<packageName></packageName>
<regex>^tm$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestGauges</name>
<script>stat = {
current = 1,
maximum = 100
}
local back_color = Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.RGB, "50%", 0, 0 ) )
local front_color = Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.RGB, 255, 0, 0 ) )
local back_back = Vyzor.Background( back_color )
local front_back = Vyzor.Background( front_color )
local gauge_back1 = Vyzor.Frame( "gauge_back", 0, .7, .5, .1 )
gauge_back1:Add( back_back )
local gauge_front1 = Vyzor.Frame( "gauge_front" )
gauge_front1:Add( front_back )
local gauge1 = Vyzor.Gauge( "gauge1", "stat.current", "stat.maximum", gauge_back1, gauge_front1 )
local gauge_back2 = Vyzor.Frame( "gauge_back2", 0, .8, .5, .1 )
gauge_back2:Add( back_back )
local gauge_front2 = Vyzor.Frame( "gauge_front2" )
gauge_front2:Add( front_back )
local gauge2 = Vyzor.Gauge( "gauge2", "stat.current", "stat.maximum", gauge_back2, gauge_front2,
Vyzor.GaugeFill.RightLeft )
local gauge_back3 = Vyzor.Frame( "gauge_back3", .6, .7, .1, .2 )
gauge_back3:Add( back_back )
local gauge_front3 = Vyzor.Frame( "gauge_front3" )
gauge_front3:Add( front_back )
local gauge3 = Vyzor.Gauge( "gauge3", "stat.current", "stat.maximum", gauge_back3, gauge_front3,
Vyzor.GaugeFill.BottomTop )
local gauge_back4 = Vyzor.Frame( "gauge_back4", .8, .7, .1, .2 )
gauge_back4:Add( back_back )
local gauge_front4 = Vyzor.Frame( "gauge_front4" )
gauge_front4:Add( front_back )
local gauge4 = Vyzor.Gauge( "gauge4", "stat.current", "stat.maximum", gauge_back4, gauge_front4,
Vyzor.GaugeFill.TopBottom )
Vyzor.HUD.Frames["VyzorRight"]:Add( gauge1 )
Vyzor.HUD.Frames["VyzorRight"]:Add( gauge2 )
Vyzor.HUD.Frames["VyzorRight"]:Add( gauge3 )
Vyzor.HUD.Frames["VyzorRight"]:Add( gauge4 )
Vyzor.HUD:Draw()</script>
<command></command>
<packageName></packageName>
<regex>^tg$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestGaugeUpdate</name>
<script>stat = stat or {
health = {
current = 1,
maximum = 100
},
mana = {
current = 1,
maximum = 100
},
endurance = {
current = 1,
maximum = 100
},
willpower = {
current = 1,
maximum = 100
},
xp = {
current = 1,
maximum = 100
},
}
stat.health.current = math.random(100)
stat.mana.current = math.random(100)
stat.endurance.current = math.random(100)
stat.willpower.current = math.random(100)
stat.xp.current = math.random(500)
VyzorGaugeUpdate()</script>
<command></command>
<packageName></packageName>
<regex>^tgu$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestColors</name>
<script>local test = Vyzor.Frame("color_test", .3, .3, .3, .3)
test:Add( Vyzor.Color(Vyzor.ColorMode.Name, "green"))
test:Add( Vyzor.Background(
Vyzor.Brush(
Vyzor.Color( Vyzor.ColorMode.RGBA, 100, 0, 0 )
)
))
Vyzor.HUD.Frames["VyzorLeft"]:Add(test)
echo(test.Stylesheet)
Vyzor.HUD:Draw()
test:Echo("This is only a test.\n")</script>
<command></command>
<packageName></packageName>
<regex>^tco$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestBox</name>
<script>local ROWS = 5
local COLS = 3
local CELLS = 2
local MODE = Vyzor.BoxMode.Grid
local id = 0
--echo("Starting box test...\n")
for i = 1, ROWS do
-- echo(" row: " .. i .. "\n")
for j = 1, COLS do
-- echo(" column: " .. j .. "\n")
local container_name = "test_container_" .. i .. ":" .. j
local box_name = "test_box_" .. i .. ":" .. j
local cell_num = CELLS
local cells = {}
for k = 1, cell_num do
-- echo(" cell: " .. k .. "\n")
local cell_name = "test_cell_" .. i .. ":" .. j .. "." .. k
-- echo(" name: " .. cell_name .. "\n")
local cell = Vyzor.Frame( cell_name )
cell:Add(
Vyzor.Background(
Vyzor.Brush(
Vyzor.Color( Vyzor.ColorMode.RGB, math.random(255), math.random(255), math.random(255) )
)
)
)
cells[#cells+1] = cell
id = id + 1
end
CELLS = CELLS + 1
-- echo(" container: " .. container_name .. "\n")
local x = (((j - 1) * COLS) * .1)
-- echo(" x: " .. x .. "\n")
local y = (1 / ROWS * (i - 1))
-- echo(" y: " .. y .. "\n")
local w = (1/COLS) - .1
-- echo(" w: " .. w .. "\n")
local h = (1/ROWS) - .1
-- echo(" h: " .. h .. "\n")
local container = Vyzor.Frame( container_name, x, y, w, h )
container:Add(
Vyzor.Border( 5, Vyzor.BorderStyle.Groove,
Vyzor.Brush(
Vyzor.Color( Vyzor.ColorMode.RGB, math.random(255), math.random(255), math.random(255) )
)
)
)
-- echo(" box: " .. box_name .. "\n")
local box = Vyzor.Box( box_name, MODE, container, cells )
Vyzor.Left:Add( box )
end
end
local control_container = Vyzor.Frame( "control_container", .3, .3, .3, .3 )
control_container:Add(
Vyzor.Border( 5, Vyzor.BorderStyle.Groove,
Vyzor.Brush(
Vyzor.Color( Vyzor.ColorMode.RGB, math.random(255), math.random(255), math.random(255) )
)
)
)
local control_cell = Vyzor.Frame( "control_cell" )
control_cell:Add(
Vyzor.Background(
Vyzor.Brush(
Vyzor.Color( Vyzor.ColorMode.RGB, math.random(255), math.random(255), math.random(255) )
)
)
)
Vyzor.Right:Add(
Vyzor.Box( "control_box", MODE, control_container, { control_cell } )
)
--echo("\nDrawing box test...\n")
Vyzor.HUD:Draw()
--echo("\nBox test complete.\n")</script>
<command></command>
<packageName></packageName>
<regex>^tb$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestGradients</name>
<script>grad_red = Vyzor.Color( Vyzor.ColorMode.RGB, "100%", 0, 0 )
grad_blue = Vyzor.Color( Vyzor.ColorMode.RGB, 0, 0, "100%" )
grad_green = Vyzor.Color( Vyzor.ColorMode.RGB, 0, "100%", 0 )
grad_white = Vyzor.Color( Vyzor.ColorMode.RGB, "100%", "100%", "100%" )
grad_what = Vyzor.Color( Vyzor.ColorMode.RGB, math.random(255), math.random(255), math.random(255) )
local lin_grad = Vyzor.Gradient( Vyzor.GradientMode.Linear,
0.0, 0.0, 1.0, 1.0,
{0.2, grad_red}, {0.4, grad_blue}, {0.6, grad_green}, {0.8, grad_white}, {1.0, grad_what}
)
local rad_grad = Vyzor.Gradient( Vyzor.GradientMode.Radial,
0.0, 0.0, 1.0, 1.0, 1.0,
{0.2, grad_red}, {0.4, grad_blue}, {0.6, grad_green}, {0.8, grad_white}, {1.0, grad_what}
)
local con_grad = Vyzor.Gradient( Vyzor.GradientMode.Conical,
0.5, 0.5, 45,
{0.2, grad_red}, {0.4, grad_blue}, {0.6, grad_green}, {0.8, grad_white}, {1.0, grad_what}
)
local lin_back = Vyzor.Background( Vyzor.Brush( lin_grad ) )
local rad_back = Vyzor.Background( Vyzor.Brush( rad_grad ) )
local con_back = Vyzor.Background( Vyzor.Brush( con_grad ) )
local lin_frame = Vyzor.Frame( "lin_frame", 0.3, 0.1, 0.3, 0.3 )
local rad_frame = Vyzor.Frame( "rad_frame", 0.3, 0.4, 0.3, 0.3 )
local con_frame = Vyzor.Frame( "con_frame", 0.3, 0.7, 0.3, 0.3 )
lin_frame:Add( lin_back )
rad_frame:Add( rad_back )
con_frame:Add( con_back )
Vyzor.HUD.Frames["VyzorRight"]:Add( lin_frame )
Vyzor.HUD.Frames["VyzorRight"]:Add( rad_frame )
Vyzor.HUD.Frames["VyzorRight"]:Add( con_frame )
Vyzor.HUD:Draw()</script>
<command></command>
<packageName></packageName>
<regex>^tgr$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestChat</name>
<script>local chat_back = Vyzor.Frame( "chat_background", 0, 0, 1, .5 )
chat_back:Add( Vyzor.Border( 5, Vyzor.BorderStyle.Groove,
Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.RGB, 0, 255, 0 ) ),
5
)
)
local tab_border = Vyzor.Border( 2, Vyzor.BorderStyle.DotDotDash,
Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.RGB, 255, 0, 0 ) ),
1
)
chat = Vyzor.Chat( "test_chat", chat_back, {"All", "john", "jane", "b o b"}, Vyzor.TabLocation.Left,
.3, nil, nil, {Vyzor.Color( Vyzor.ColorMode.Name, "white" ), tab_border}
)
Vyzor.HUD.Frames["VyzorLeft"]:Add( chat )
local chat_back2 = Vyzor.Frame( "chat_back2", 0, .5, 1, .5 )
chat_back2:Add( Vyzor.Border( 5, Vyzor.BorderStyle.Ridge,
Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.RGB, 0, 0, 255 ) )
)
)
chat2 = Vyzor.Chat( "test_chat2", chat_back2, {"billy", "bubba", "gertrude", "agnis"}, Vyzor.TabLocation.Right,
nil, nil, nil, {Vyzor.Color( Vyzor.ColorMode.RGB, 236, 75, 16 ),
Vyzor.Background( Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.RGB, 0, 0, 255 ) ) )}
)
Vyzor.HUD.Frames["VyzorLeft"]:Add( chat2 )
Vyzor.HUD.Frames["VyzorLeft"]:Add( Vyzor.Border( 5, Vyzor.BorderStyle.Solid,
Vyzor.Brush(
Vyzor.Color( Vyzor.ColorMode.Name, "pink" )
),
5
))
Vyzor.HUD.Draw()</script>
<command></command>
<packageName></packageName>
<regex>^tch$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>TestConverse</name>
<script>
function saySomething ()
local chan_list = {"john", "jane", "b o b", "billy", "bubba", "gertrude", "agnis"}
local chan = chan_list[math.random(#chan_list)]
local alpha = "abcdefghijklmnopqrstuvwxyz"
local text = string.format("[%s]: %s",
chan,
string.rep( alpha:sub(math.random(13), math.random(14, 26)) .. " ", math.random( 10 ) )
)
feedTriggers( text .. "\n" )
echo( "\n" )
end
for i=1, 20 do
tempTimer( math.random(10), saySomething )
end</script>
<command></command>
<packageName></packageName>
<regex>^fillchat$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Vyzor Help</name>
<script>if openWebPage then
openWebPage( getMudletHomeDir():gsub("\\", "/") .. "/vyzor/doc/index.html" )
else
openUrl( getMudletHomeDir():gsub("\\", "/") .. "/vyzor/doc/index.html" )
end
</script>
<command></command>
<packageName></packageName>
<regex>^vy(?:zor)?\s?h(?:elp)?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Test non-Border Frames</name>
<script>local width = Vyzor.HUD.Size.AbsoluteWidth
local height = Vyzor.HUD.Size.AbsoluteHeight
for i=1, 10 do
local frame = Vyzor.Frame( "name" .. i, width * ((i - 1) * .1), height * ((i - 1) * .1), .1, .1 )
frame:Add(
Vyzor.Background(
Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.RGB, 255 * ((i - 1) * .1), 255 * ((i - 1) * .1), 255 * ((i - 1) * .1) ) )
)
)
Vyzor.HUD:Add( frame )
end
Vyzor.HUD:Draw()</script>
<command></command>
<packageName></packageName>
<regex>^tnbf$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>vyzor</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
</Alias>
</AliasPackage>
<ActionPackage/>
<ScriptPackage>
<Script isActive="yes" isFolder="no">
<name>Vyzor</name>
<packageName></packageName>
<script>-- Uncomment this out for quick reloading of Vyzor files.
--expandAlias("U")
if not Vyzor then
echo("Vyzor: Loading modules...\n")
local path = package.path
local homeDirectory = getMudletHomeDir():gsub("\\", "/")
local luaDirectory = string.format("%s/%s", homeDirectory, [[?.lua]])
local initDirectory = string.format("%s/%s", homeDirectory, [[?/init.lua]])
package.path = string.format("%s;%s;%s", luaDirectory, initDirectory, path)
local okay, content = pcall(require, "vyzor")
package.path = path
if okay then
Vyzor = content
else
error(string.format("Vyzor: Error loading module: %s.\n", content))
end
if Vyzor then
echo("Vyzor: Modules successfully loaded.\n")
end
tempTimer( 0, function () raiseEvent( "VyzorLoadEvent" ) end )
end</script>
<eventHandlerList/>
</Script>
</ScriptPackage>
<KeyPackage/>
</MudletPackage>