-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfrmMapLegend.frm
680 lines (673 loc) · 20.7 KB
/
frmMapLegend.frm
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
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
VERSION 5.00
Begin VB.Form frmMapLegend
AutoRedraw = -1 'True
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
Caption = "Map Legend"
ClientHeight = 2640
ClientLeft = 45
ClientTop = 330
ClientWidth = 6240
Icon = "frmMapLegend.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 2640
ScaleWidth = 6240
Begin VB.Label lblRoomCell
Appearance = 0 'Flat
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
ForeColor = &H00000000&
Height = 135
Index = 1
Left = 2340
TabIndex = 27
Top = 1800
Width = 135
End
Begin VB.Line Line1
BorderColor = &H00808080&
X1 = 4080
X2 = 4080
Y1 = 60
Y2 = 2580
End
Begin VB.Label lblRoomCell
Appearance = 0 'Flat
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
ForeColor = &H00000000&
Height = 135
Index = 0
Left = 2340
TabIndex = 26
Top = 1110
Width = 135
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "NPC Assigned"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 15
Left = 2640
TabIndex = 25
Top = 1110
Width = 1335
End
Begin VB.Label Label5
BackColor = &H00000000&
Caption = "- Right click on an up/down exit to have the option of following and redrawing."
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 495
Left = 4260
TabIndex = 24
Top = 2040
Width = 1875
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Lair Room"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 17
Left = 2640
TabIndex = 23
Top = 1440
Width = 1275
End
Begin VB.Label lblRoomCell
Appearance = 0 'Flat
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
ForeColor = &H00000000&
Height = 135
Index = 2
Left = 2340
TabIndex = 22
Top = 1440
Width = 135
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Command In Room (Remote or Local)"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 375
Index = 16
Left = 2640
TabIndex = 21
Top = 1740
Width = 1335
End
Begin VB.Label lblRoomCell
Appearance = 0 'Flat
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
ForeColor = &H00000000&
Height = 135
Index = 8
Left = 2340
TabIndex = 20
Top = 2220
Width = 135
End
Begin VB.Label lblRoomCell
Appearance = 0 'Flat
BackColor = &H0000FFFF&
BorderStyle = 1 'Fixed Single
ForeColor = &H00000000&
Height = 135
Index = 7
Left = 2340
TabIndex = 19
Top = 480
Width = 135
End
Begin VB.Label lblRoomCell
Appearance = 0 'Flat
BackColor = &H0000FF00&
BorderStyle = 1 'Fixed Single
ForeColor = &H00000000&
Height = 135
Index = 6
Left = 2340
TabIndex = 18
Top = 180
Width = 135
End
Begin VB.Label lblRoomCell
Appearance = 0 'Flat
BackColor = &H00FFFF00&
BorderStyle = 1 'Fixed Single
ForeColor = &H00FFFF00&
Height = 135
Index = 5
Left = 2340
TabIndex = 17
Top = 780
Width = 135
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Starting Point"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 13
Left = 2640
TabIndex = 16
Top = 2220
Width = 1275
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Class / Race / Level / Alignment / Ability"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 375
Index = 9
Left = 840
TabIndex = 15
Top = 1620
Width = 1275
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Timed"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 8
Left = 840
TabIndex = 14
Top = 2040
Width = 1095
End
Begin VB.Line linLegend
BorderColor = &H00000040&
BorderWidth = 5
Index = 9
X1 = 180
X2 = 660
Y1 = 1740
Y2 = 1740
End
Begin VB.Line linLegend
BorderColor = &H00004000&
BorderWidth = 5
Index = 8
X1 = 180
X2 = 660
Y1 = 2100
Y2 = 2100
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Door / Gate"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 7
Left = 840
TabIndex = 13
Top = 1140
Width = 1095
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Hidden"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 5
Left = 840
TabIndex = 12
Top = 2280
Width = 1095
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Key / Item / Toll"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 4
Left = 840
TabIndex = 11
Top = 1380
Width = 1095
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Text"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 3
Left = 840
TabIndex = 10
Top = 900
Width = 1095
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Trap / Spell Trap"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 2
Left = 840
TabIndex = 9
Top = 660
Width = 1095
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Map Change"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 1
Left = 840
TabIndex = 8
Top = 420
Width = 1095
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "General"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 0
Left = 840
TabIndex = 7
Top = 180
Width = 1095
End
Begin VB.Line linLegend
BorderColor = &H00FF0000&
BorderWidth = 5
Index = 7
X1 = 180
X2 = 660
Y1 = 1200
Y2 = 1200
End
Begin VB.Line linLegend
BorderColor = &H00800080&
BorderWidth = 5
Index = 5
X1 = 180
X2 = 660
Y1 = 2340
Y2 = 2340
End
Begin VB.Line linLegend
BorderColor = &H0000FF00&
BorderWidth = 5
Index = 4
X1 = 180
X2 = 660
Y1 = 1440
Y2 = 1440
End
Begin VB.Line linLegend
BorderColor = &H0000FFFF&
BorderWidth = 5
Index = 3
X1 = 180
X2 = 660
Y1 = 960
Y2 = 960
End
Begin VB.Line linLegend
BorderColor = &H000000FF&
BorderWidth = 5
Index = 2
X1 = 180
X2 = 660
Y1 = 720
Y2 = 720
End
Begin VB.Line linLegend
BorderColor = &H00FF00FF&
BorderWidth = 5
Index = 1
X1 = 180
X2 = 660
Y1 = 480
Y2 = 480
End
Begin VB.Line linLegend
BorderColor = &H00808080&
BorderWidth = 5
Index = 0
X1 = 180
X2 = 660
Y1 = 240
Y2 = 240
End
Begin VB.Label Label3
BackColor = &H00000000&
Caption = "-Right Click: Redraw map from selected room"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 315
Left = 4260
TabIndex = 6
Top = 480
Width = 1875
End
Begin VB.Label Label2
BackColor = &H00000000&
Caption = "-Hover mouse over room to see Information"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 375
Left = 4260
TabIndex = 5
Top = 1620
Width = 1875
End
Begin VB.Label Label1
BackColor = &H00000000&
Caption = "-Left Click: View record references of selected room."
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 375
Left = 4260
TabIndex = 4
Top = 60
Width = 1875
End
Begin VB.Label Label4
BackColor = &H00000000&
Caption = "-Shift+Right Click: Redraw map using selected cell as the ""center"". This may also be done on unused cells."
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 675
Left = 4260
TabIndex = 3
Top = 900
Width = 1875
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Exit Up"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 10
Left = 2640
TabIndex = 2
Top = 180
Width = 1275
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Exit Down"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 11
Left = 2640
TabIndex = 1
Top = 480
Width = 1275
End
Begin VB.Label lblLegendText
BackColor = &H00000000&
Caption = "Exit Up and Down"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 195
Index = 12
Left = 2640
TabIndex = 0
Top = 780
Width = 1275
End
Begin VB.Shape Shape2
BackColor = &H00FF0000&
BackStyle = 1 'Opaque
BorderColor = &H00FF0000&
Height = 225
Left = 2295
Top = 2175
Width = 225
End
Begin VB.Shape Shape4
BackColor = &H0000FF00&
BackStyle = 1 'Opaque
BorderColor = &H0000FF00&
Height = 255
Left = 2280
Shape = 1 'Square
Top = 1740
Width = 255
End
Begin VB.Shape Shape5
BackColor = &H00FF00FF&
BackStyle = 1 'Opaque
BorderColor = &H00FF00FF&
BorderWidth = 4
Height = 195
Left = 2310
Shape = 3 'Circle
Top = 1410
Width = 195
End
Begin VB.Shape Shape3
BackColor = &H00FFFFFF&
BorderColor = &H000000FF&
BorderWidth = 2
Height = 255
Left = 2280
Shape = 3 'Circle
Top = 1050
Width = 255
End
End
Attribute VB_Name = "frmMapLegend"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Base 0
Option Explicit
Public objFormOwner As Form
Private Sub Form_Load()
Dim nTmp As Long
On Error GoTo Error:
nTmp = ReadINI("Settings", "LegendTop")
Me.Top = IIf(nTmp > 1, nTmp, Me.ScaleHeight / 2)
nTmp = ReadINI("Settings", "LegendLeft")
Me.Left = IIf(nTmp > 1, nTmp, Me.ScaleWidth / 2)
Exit Sub
Error:
Call HandleError("Form_Load")
End Sub
Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
If Not Me.WindowState = vbMinimized And Not Me.WindowState = vbMaximized Then
Call WriteINI("Settings", "LegendTop", Me.Top)
Call WriteINI("Settings", "LegendLeft", Me.Left)
End If
If Not objFormOwner Is Nothing Then
If Not bAppTerminating Then objFormOwner.cmdViewMapLegend.Tag = "0"
Set objFormOwner = Nothing
End If
End Sub