-
Notifications
You must be signed in to change notification settings - Fork 41
/
PlayerNames.lua
1674 lines (1485 loc) · 68.2 KB
/
PlayerNames.lua
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
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---------------------------------------------------------------------------------
--
-- Prat - A framework for World of Warcraft chat mods
--
-- Copyright (C) 2006-2007 Prat Development Team
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to:
--
-- Free Software Foundation, Inc.,
-- 51 Franklin Street, Fifth Floor,
-- Boston, MA 02110-1301, USA.
--
--
-------------------------------------------------------------------------------
--[[
Name: PratPlayerNames
Author(s): Curney (asml8ed@gmail.com)
Krtek (krtek4@gmail.com)
Sylvanaar (sylvanaar@mindspring.com)
Inspired by: idChat2_PlayerNames by Industrial
Description: Module for Prat that adds player name options.
Dependencies: Prat
]]
Prat:AddModuleToLoad(function()
local PRAT_MODULE = Prat:RequestModuleName("PlayerNames")
if PRAT_MODULE == nil then
return
end
-- define localized strings
local L = Prat:GetLocalizer({})
--[===[@debug@
L:AddLocale("enUS", {
["PlayerNames"] = true,
["Player name formating options."] = true,
["Brackets"] = true,
["Square"] = true,
["Angled"] = true,
["None"] = true,
["Class"] = true,
["Random"] = true,
["Reset Settings"] = true,
["No additional coloring"] = true,
["Restore default settings, and delete stored character data."] = true,
["Sets style of brackets to use around player names."] = true,
["Unknown Use Common Color"] = true,
["Toggle using a common color for unknown player names."] = true,
["Unknown Common Color"] = true,
["Set common color of unknown player names."] = true,
["Enable TabComplete"] = true,
["Toggle tab completion of player names."] = true,
["Show Level"] = true,
["Toggle level showing."] = true,
["Level Color Mode"] = true,
["Use Player Color"] = true,
["Use Channel Color"] = true,
["Color by Level Difference"] = true,
["How to color other player's level."] = true,
["Show Group"] = true,
["Toggle raid group showing."] = true,
["Show Raid Target Icon"] = true,
["Toggle showing the raid target icon which is currently on the player."] = true,
-- In the high-cpu pullout
["coloreverywhere_name"] = "Color Names Everywhere",
["coloreverywhere_desc"] = "Color player names if they appear in the text of the chat message",
["hoverhilight_name"] = "Hover Hilighting",
["hoverhilight_desc"] = "Hilight chat lines from a specific player when hovering over thier playerlink",
["realidcolor_name"] = "RealID Coloring",
["realidcolor_desc"] = "RealID Name Coloring",
["Keep Info"] = true,
["Keep Lots Of Info"] = true,
["Keep player information between session for all players except cross-server players"] = true,
["Keep player information between session, but limit it to friends and guild members."] = true,
["Player Color Mode"] = true,
["How to color player's name."] = true,
["Unknown Common Color From TasteTheNaimbow"] = true,
["Let TasteTheNaimbow set the common color for unknown player names."] = true,
["Enable Alt-Invite"] = true,
["Toggle group invites by alt-clicking on player name."] = true,
["Enable Invite Links"] = true,
["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = true,
["Brackets Common Color"] = true,
["Sets common color of brackets to use around player names."] = true,
["Brackets Use Common Color"] = true,
["Toggle using a common color for brackets around player names."] = true,
["linkifycommon_name"] = "Linkify Common Messages",
["linkifycommon_desc"] = "Linkify Common Messages",
["Prat_Playernames: Stored Player Data Cleared"] = true,
["tabcomplete_name"] = "Possible Names",
["Tab completion : "] = true,
["Too many matches (%d possible)"] = true,
["Actively Query Player Info"] = true,
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = true,
})
--@end-debug@]===]
-- These Localizations are auto-generated. To help with localization
-- please go to http://www.wowace.com/projects/prat-3-0/localization/
--@non-debug@
L:AddLocale("enUS",
{
["Actively Query Player Info"] = true,
Angled = true,
Brackets = true,
["Brackets Common Color"] = true,
["Brackets Use Common Color"] = true,
Class = true,
["Color by Level Difference"] = true,
coloreverywhere_desc = "Color player names if they appear in the text of the chat message",
coloreverywhere_name = "Color Names Everywhere",
["Enable Alt-Invite"] = true,
["Enable Invite Links"] = true,
["Enable TabComplete"] = true,
hoverhilight_desc = "Hilight chat lines from a specific player when hovering over thier playerlink",
hoverhilight_name = "Hover Hilighting",
["How to color other player's level."] = true,
["How to color player's name."] = true,
["Keep Info"] = true,
["Keep Lots Of Info"] = true,
["Keep player information between session, but limit it to friends and guild members."] = true,
["Keep player information between session for all players except cross-server players"] = true,
["Let TasteTheNaimbow set the common color for unknown player names."] = true,
["Level Color Mode"] = true,
linkifycommon_desc = "Linkify Common Messages",
linkifycommon_name = "Linkify Common Messages",
["No additional coloring"] = true,
None = true,
["Player Color Mode"] = true,
["Player name formating options."] = true,
PlayerNames = true,
["Prat_Playernames: Stored Player Data Cleared"] = true,
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = true,
Random = true,
realidcolor_desc = "RealID Name Coloring",
realidcolor_name = "RealID Coloring",
["Reset Settings"] = true,
["Restore default settings, and delete stored character data."] = true,
["Set common color of unknown player names."] = true,
["Sets common color of brackets to use around player names."] = true,
["Sets style of brackets to use around player names."] = true,
["Show Group"] = true,
["Show Level"] = true,
["Show Raid Target Icon"] = true,
Square = true,
tabcomplete_name = "Possible Names",
["Tab completion : "] = true,
["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = true,
["Toggle group invites by alt-clicking on player name."] = true,
["Toggle level showing."] = true,
["Toggle raid group showing."] = true,
["Toggle showing the raid target icon which is currently on the player."] = true,
["Toggle tab completion of player names."] = true,
["Toggle using a common color for brackets around player names."] = true,
["Toggle using a common color for unknown player names."] = true,
["Too many matches (%d possible)"] = true,
["Unknown Common Color"] = true,
["Unknown Common Color From TasteTheNaimbow"] = true,
["Unknown Use Common Color"] = true,
["Use Channel Color"] = true,
["Use Player Color"] = true,
}
)
L:AddLocale("frFR",
{
-- ["Actively Query Player Info"] = "",
-- Angled = "",
-- Brackets = "",
-- ["Brackets Common Color"] = "",
-- ["Brackets Use Common Color"] = "",
-- Class = "",
-- ["Color by Level Difference"] = "",
-- coloreverywhere_desc = "",
-- coloreverywhere_name = "",
-- ["Enable Alt-Invite"] = "",
-- ["Enable Invite Links"] = "",
-- ["Enable TabComplete"] = "",
-- hoverhilight_desc = "",
-- hoverhilight_name = "",
-- ["How to color other player's level."] = "",
-- ["How to color player's name."] = "",
-- ["Keep Info"] = "",
-- ["Keep Lots Of Info"] = "",
-- ["Keep player information between session, but limit it to friends and guild members."] = "",
-- ["Keep player information between session for all players except cross-server players"] = "",
-- ["Let TasteTheNaimbow set the common color for unknown player names."] = "",
-- ["Level Color Mode"] = "",
-- linkifycommon_desc = "",
-- linkifycommon_name = "",
-- ["No additional coloring"] = "",
-- None = "",
-- ["Player Color Mode"] = "",
-- ["Player name formating options."] = "",
-- PlayerNames = "",
-- ["Prat_Playernames: Stored Player Data Cleared"] = "",
-- ["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "",
-- Random = "",
-- realidcolor_desc = "",
-- realidcolor_name = "",
-- ["Reset Settings"] = "",
-- ["Restore default settings, and delete stored character data."] = "",
-- ["Set common color of unknown player names."] = "",
-- ["Sets common color of brackets to use around player names."] = "",
-- ["Sets style of brackets to use around player names."] = "",
-- ["Show Group"] = "",
-- ["Show Level"] = "",
-- ["Show Raid Target Icon"] = "",
-- Square = "",
-- tabcomplete_name = "",
-- ["Tab completion : "] = "",
-- ["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "",
-- ["Toggle group invites by alt-clicking on player name."] = "",
-- ["Toggle level showing."] = "",
-- ["Toggle raid group showing."] = "",
-- ["Toggle showing the raid target icon which is currently on the player."] = "",
-- ["Toggle tab completion of player names."] = "",
-- ["Toggle using a common color for brackets around player names."] = "",
-- ["Toggle using a common color for unknown player names."] = "",
-- ["Too many matches (%d possible)"] = "",
-- ["Unknown Common Color"] = "",
-- ["Unknown Common Color From TasteTheNaimbow"] = "",
-- ["Unknown Use Common Color"] = "",
-- ["Use Channel Color"] = "",
-- ["Use Player Color"] = "",
}
)
L:AddLocale("deDE",
{
["Actively Query Player Info"] = "Spielerinformationen aktiv abfragen",
Angled = "Abgewinkelt",
Brackets = "Klammern",
["Brackets Common Color"] = "Standardfarbe der Klammern",
["Brackets Use Common Color"] = "Klammern verwende die Standardfarbe",
Class = "Klasse",
["Color by Level Difference"] = "Entsprechend des Stufenunterschieds einfärben",
coloreverywhere_desc = "Spielernamen einfärben, wenn diese im Text einer Chat-Mitteilung auftreten.",
coloreverywhere_name = "Namen überall einfärben",
["Enable Alt-Invite"] = "Alt-Einladungen aktivieren",
["Enable Invite Links"] = "Einladungs-Links aktivieren",
["Enable TabComplete"] = "TabComplete aktivieren",
hoverhilight_desc = "Chat-Zeilen eines bestimmten Spielers hervorheben, wenn die Maus über den Spielerlink gelegt wird.",
hoverhilight_name = "Schwebendes Hervorheben",
["How to color other player's level."] = "Wie die Stufen anderer Spieler eingefärbt werden sollen.",
["How to color player's name."] = "Wie die Namen der Spieler eingefärbt werden sollen.",
["Keep Info"] = "Informationen merken",
["Keep Lots Of Info"] = "Viele Informationen speichern",
["Keep player information between session, but limit it to friends and guild members."] = "Spielerinformationen zwischen Sitzungen speichern, aber schränke dies ein auf Freunde und Gildenmitglieder.",
["Keep player information between session for all players except cross-server players"] = "Spielerinformationen aller Spieler außer Spielern anderer Server zwischen Sitzungen merken.",
["Let TasteTheNaimbow set the common color for unknown player names."] = "Lasse TasteTheNaimbow die übliche Farbe für unbekannte Spielernamen einstellen.",
["Level Color Mode"] = "Stufenfarbe-Modus",
linkifycommon_desc = "Allgemeine Mitteilungen in Links umwandeln",
linkifycommon_name = "Allgemeine Mitteilungen in Links umwandeln",
["No additional coloring"] = "Keine zusätzliche Einfärbung",
None = "Keine",
["Player Color Mode"] = "Spielerfarbe-Modus",
["Player name formating options."] = "Formatierungsoptionen für Spielernamen",
PlayerNames = true,
["Prat_Playernames: Stored Player Data Cleared"] = "Prat_Playernames: Gespeicherte Spielerdaten gelöscht",
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "Alle uns unbekannten Spielernamen beim Server abfragen. Merke: dies passiert ziemlich langsam und diese Daten sind nicht gespeichert.",
Random = "Zufällig",
-- realidcolor_desc = "",
-- realidcolor_name = "",
["Reset Settings"] = "Einstellungen zurücksetzen",
["Restore default settings, and delete stored character data."] = "Standardeinstellungen wiederherstellen und gespeicherte Charakterdaten löschen.",
["Set common color of unknown player names."] = "Allgemein übliche Farbe bei unbekannten Spielernamen einstellen.",
["Sets common color of brackets to use around player names."] = "Allgemein übliche Farbe der Klammern bei Spielernamen einstellen.",
["Sets style of brackets to use around player names."] = "Stil der Klammern bei Spielernamen einstellen.",
["Show Group"] = "Gruppe anzeigen",
["Show Level"] = "Stufe anzeigen",
["Show Raid Target Icon"] = "Schlachtzugsziel-Symbol anzeigen",
Square = "Quadrat",
tabcomplete_name = "Mögliche Namen",
["Tab completion : "] = "Tab-Ergänzung:",
["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "Gruppeneinladungen umschalten, indem Hyperlinks von Stichworten wie \"invite\" bei gleichzeitigem Drücken der Alt-Taste angeklickt werden.",
["Toggle group invites by alt-clicking on player name."] = "Gruppeneinladungen umschalten, indem Spielernamen bei gleichzeitigem Drücken der Alt-Taste angeklickt werden.",
["Toggle level showing."] = "Stufenanzeige umschalten.",
["Toggle raid group showing."] = "Schlachtzugsgruppenanzeige umschalten.",
["Toggle showing the raid target icon which is currently on the player."] = "Anzeige von Schlachtzugsziel-Symbol, welches gegenwärtig dem Spieler zugewiesen ist, umschalten.",
["Toggle tab completion of player names."] = "Tag-Ergänzung von Spielernamen umschalten.",
["Toggle using a common color for brackets around player names."] = "Die Verwendung der allgemein üblichen Farbe für Klammern bei Spielernamen umschalten.",
["Toggle using a common color for unknown player names."] = "Die Verwendung der allgemein üblichen Farbe für unbekannte Spielernamen umschalten.",
["Too many matches (%d possible)"] = "Zu viele Entsprechungen (%d möglich)",
["Unknown Common Color"] = "Unbekannte übliche Farbe",
["Unknown Common Color From TasteTheNaimbow"] = "Unbekannte übliche Farbe von TasteTheNaimbow",
["Unknown Use Common Color"] = "Unbekannt - übliche Farbe verwenden",
["Use Channel Color"] = "Kanalfarbe verwenden",
["Use Player Color"] = "Spielerfarbe verwenden",
}
)
L:AddLocale("koKR",
{
["Actively Query Player Info"] = "플레이어 정보 적극적 수집",
Angled = "<플레이어>",
Brackets = "괄호 선택",
["Brackets Common Color"] = "괄호 색깔",
["Brackets Use Common Color"] = "괄호에 색깔 사용",
Class = "직업",
["Color by Level Difference"] = "레벨 차이에 의한 색깔",
coloreverywhere_desc = "채팅 메시지에 나타나는 플레이어 이름에 색상 적용",
coloreverywhere_name = "모든 곳에서 이름에 색상 사용",
["Enable Alt-Invite"] = "Alt 초대 켜기",
["Enable Invite Links"] = "초대 링크 켜기",
["Enable TabComplete"] = "탭완성 켜기",
hoverhilight_desc = "플레이어 이름 위에 마우스 오버 시 채팅 내용을 강조합니다",
hoverhilight_name = "마우스 오버 강조",
["How to color other player's level."] = "다른 플레이어들의 레벨 색깔 방법",
["How to color player's name."] = "플레이어 이름 색깔 방법",
["Keep Info"] = "길드유저 정보 저장",
["Keep Lots Of Info"] = "모든유저 정보 저장",
["Keep player information between session, but limit it to friends and guild members."] = "친구와 길드유저에 대한 정보를 저장합니다.",
["Keep player information between session for all players except cross-server players"] = "모든유저에 대한 정보를 저장합니다. (다른 서버는 제외)",
["Let TasteTheNaimbow set the common color for unknown player names."] = "모르는 유저에 대한 색깔로 TasteTheNaimBow 애드온의 설정을 사용한다.",
["Level Color Mode"] = "레벨 색깔 설정",
-- linkifycommon_desc = "",
-- linkifycommon_name = "",
["No additional coloring"] = "색깔사용하지 않음",
None = "없음",
["Player Color Mode"] = "플레이어 색상 모드",
["Player name formating options."] = "플레이어 이름 형식 설정",
PlayerNames = "플레이어 이름",
-- ["Prat_Playernames: Stored Player Data Cleared"] = "",
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "알 수 없는 모든 플레이어 이름 정보를 서버에 요청합니다. 주의: 작동 시 느려질 수 있으며, 수집된 정보들은 저장되지 않습니다.",
Random = "무작위",
-- realidcolor_desc = "",
-- realidcolor_name = "",
["Reset Settings"] = "설정 초기화",
["Restore default settings, and delete stored character data."] = "기본 설정을 복구하고 저장된 케릭터 설정을 지웁니다.",
["Set common color of unknown player names."] = "알 수 없는 플레이어 이름 색상 설정",
["Sets common color of brackets to use around player names."] = "플레이어 이름 괄호의 일반 색상 설정",
["Sets style of brackets to use around player names."] = "플레이어 이름 주변 괄호 설정",
["Show Group"] = "그룹 보이기",
["Show Level"] = "레벨 보이기",
["Show Raid Target Icon"] = "전술 아이콘 보이기",
Square = "사각형",
-- tabcomplete_name = "",
["Tab completion : "] = "탭 완성 :",
["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "'초대'같은 단어를 Alt-클릭으로 초대하기",
["Toggle group invites by alt-clicking on player name."] = "플레이어 이름 Alt-클릭으로 초대하기",
["Toggle level showing."] = "레벨 보이기",
["Toggle raid group showing."] = "공격대 파티 보이기",
["Toggle showing the raid target icon which is currently on the player."] = "플레이어에게 지정된 전술 아이콘 보이기",
["Toggle tab completion of player names."] = "플레이어 이름 탭 완성 켜기",
["Toggle using a common color for brackets around player names."] = "플레이어 이름 주변 괄호 색상 사용",
["Toggle using a common color for unknown player names."] = "알 수 없는 플레이어 이름에 일반 색상 사용하기",
-- ["Too many matches (%d possible)"] = "",
["Unknown Common Color"] = "알 수 없는 일반 색상",
-- ["Unknown Common Color From TasteTheNaimbow"] = "",
["Unknown Use Common Color"] = "알 수 없는 이름에 색상 사용",
["Use Channel Color"] = "채널 색상 사용",
["Use Player Color"] = "플레이어 색상 사용",
}
)
L:AddLocale("esMX",
{
-- ["Actively Query Player Info"] = "",
-- Angled = "",
-- Brackets = "",
-- ["Brackets Common Color"] = "",
-- ["Brackets Use Common Color"] = "",
-- Class = "",
-- ["Color by Level Difference"] = "",
-- coloreverywhere_desc = "",
-- coloreverywhere_name = "",
-- ["Enable Alt-Invite"] = "",
-- ["Enable Invite Links"] = "",
-- ["Enable TabComplete"] = "",
-- hoverhilight_desc = "",
-- hoverhilight_name = "",
-- ["How to color other player's level."] = "",
-- ["How to color player's name."] = "",
-- ["Keep Info"] = "",
-- ["Keep Lots Of Info"] = "",
-- ["Keep player information between session, but limit it to friends and guild members."] = "",
-- ["Keep player information between session for all players except cross-server players"] = "",
-- ["Let TasteTheNaimbow set the common color for unknown player names."] = "",
-- ["Level Color Mode"] = "",
-- linkifycommon_desc = "",
-- linkifycommon_name = "",
-- ["No additional coloring"] = "",
-- None = "",
-- ["Player Color Mode"] = "",
-- ["Player name formating options."] = "",
-- PlayerNames = "",
-- ["Prat_Playernames: Stored Player Data Cleared"] = "",
-- ["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "",
-- Random = "",
-- realidcolor_desc = "",
-- realidcolor_name = "",
-- ["Reset Settings"] = "",
-- ["Restore default settings, and delete stored character data."] = "",
-- ["Set common color of unknown player names."] = "",
-- ["Sets common color of brackets to use around player names."] = "",
-- ["Sets style of brackets to use around player names."] = "",
-- ["Show Group"] = "",
-- ["Show Level"] = "",
-- ["Show Raid Target Icon"] = "",
-- Square = "",
-- tabcomplete_name = "",
-- ["Tab completion : "] = "",
-- ["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "",
-- ["Toggle group invites by alt-clicking on player name."] = "",
-- ["Toggle level showing."] = "",
-- ["Toggle raid group showing."] = "",
-- ["Toggle showing the raid target icon which is currently on the player."] = "",
-- ["Toggle tab completion of player names."] = "",
-- ["Toggle using a common color for brackets around player names."] = "",
-- ["Toggle using a common color for unknown player names."] = "",
-- ["Too many matches (%d possible)"] = "",
-- ["Unknown Common Color"] = "",
-- ["Unknown Common Color From TasteTheNaimbow"] = "",
-- ["Unknown Use Common Color"] = "",
-- ["Use Channel Color"] = "",
-- ["Use Player Color"] = "",
}
)
L:AddLocale("ruRU",
{
["Actively Query Player Info"] = "Активный запрос инфы о игроке",
Angled = "Треугольные",
Brackets = "Скобки",
["Brackets Common Color"] = "Основной цвет скобок",
["Brackets Use Common Color"] = "Скобки общего цвета",
Class = "Класс",
["Color by Level Difference"] = "Окрашивание по отличию в уровне",
coloreverywhere_desc = "Окраска текст сообщения в цвет имени игрока, если цвет задан",
coloreverywhere_name = "Цвет имени везде",
["Enable Alt-Invite"] = "Включить приглашение с кнопкой Alt",
["Enable Invite Links"] = "Включить приглашение по ссылкам",
["Enable TabComplete"] = "Включить TabComplete",
hoverhilight_desc = "Подсвечивает строки чата от определенных игроков при наведении мышкой на их никнейм.",
hoverhilight_name = "Подсветка при наведении мышкой",
["How to color other player's level."] = "Как окрашивать уповень игрока.",
["How to color player's name."] = "Как окрашивать имя игрока.",
["Keep Info"] = "Хранить информацию",
["Keep Lots Of Info"] = "Хранить большое количество информации",
["Keep player information between session, but limit it to friends and guild members."] = "Хранить информацию о собеседниках между сессиями, но ограничить этот список только друзьями и членами гильдии.",
["Keep player information between session for all players except cross-server players"] = "Хранить информацию о всех собеседниках между сессиями за исключением игроков с других серверов",
["Let TasteTheNaimbow set the common color for unknown player names."] = "Позволить TasteTheNaimbow установить общий цветдля неизвестных играков.",
["Level Color Mode"] = "Режим окрашивания уровня",
linkifycommon_desc = "Общие сообщения с сылками",
linkifycommon_name = "Общие сообщения с сылками",
["No additional coloring"] = "Отключить дополнительное цвето-выделение",
None = "Нет",
["Player Color Mode"] = "Режим цвета игрока",
["Player name formating options."] = "Настройки форматирования имени собеседника.",
PlayerNames = "Имя игрока",
["Prat_Playernames: Stored Player Data Cleared"] = "Prat_Playernames: Информация о собеседниках очищена",
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "Запрос сервера для всех неизвестных играков. Заметка: Это происходит дастаточно медленно, и их данные не сохраняются.",
Random = "Случайно",
-- realidcolor_desc = "",
-- realidcolor_name = "",
["Reset Settings"] = "Сброс настроек",
["Restore default settings, and delete stored character data."] = "Восстановить настройки по умолчанию и удалить сохраненную информацию о собеседниках.",
["Set common color of unknown player names."] = "Выбор цвета, которым будут окрашены неизвестные игроки.",
["Sets common color of brackets to use around player names."] = "Установить цвет скобок, окружающих имя игрока.",
["Sets style of brackets to use around player names."] = "Установить стиль скобок вокруг имени собеседника.",
["Show Group"] = "Показывать группу",
["Show Level"] = "Показывать уровень",
["Show Raid Target Icon"] = "Показать иконку цели рейда",
Square = "Квадратные",
tabcomplete_name = "Возможные имена",
["Tab completion : "] = "Завершение закладки : ",
["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "Вкл/выкл приглашение в группу с помощью alt+клик по ключевому слову типа: 'инвайт'.",
["Toggle group invites by alt-clicking on player name."] = "Включить режим, в котором можно пригласить игрока в группу щелкнув по его имени с нажатой клавишей Alt.",
["Toggle level showing."] = "Вкл/выкл отображения уровня собеседника.",
["Toggle raid group showing."] = "Вкл/выкл отображения рейдовой группы.",
["Toggle showing the raid target icon which is currently on the player."] = "Вкл/Выкл отображение иконки цели рейда которой помечен игрок.",
["Toggle tab completion of player names."] = "Вкл/выкл завершение закладки именами играка.",
["Toggle using a common color for brackets around player names."] = "Включить окрашивание скобок вокруг имени игрока общим, выбранным цветом.",
["Toggle using a common color for unknown player names."] = "Включить окрашивание имен всех неизвестных собеседников в общий цвет.",
["Too many matches (%d possible)"] = "За много совпадение (%d возможных)",
["Unknown Common Color"] = "Общий цвет неизвестных",
["Unknown Common Color From TasteTheNaimbow"] = "Общая окраска неизвестных из TasteTheNaimbow",
["Unknown Use Common Color"] = "Общий цвет для неизвестных",
["Use Channel Color"] = "Использовать цвет канала",
["Use Player Color"] = "Использовать цвет игрока",
}
)
L:AddLocale("zhCN",
{
["Actively Query Player Info"] = "活跃的查询玩家信息",
Angled = "折角",
Brackets = "括号",
["Brackets Common Color"] = "同一颜色括号",
["Brackets Use Common Color"] = "使用同一颜色括号",
Class = "职业",
["Color by Level Difference"] = "彩色的等级差别",
coloreverywhere_desc = "彩色显示聊天信息中出现的玩家姓名",
coloreverywhere_name = "彩色显示姓名在所有地方",
["Enable Alt-Invite"] = "启用Alt-邀请",
["Enable Invite Links"] = "启用邀请链接",
["Enable TabComplete"] = "启用Tab键补全",
hoverhilight_desc = "当悬停在玩家链接上时高亮该玩家的聊天语句",
hoverhilight_name = "悬停高亮",
["How to color other player's level."] = "如何着色其他玩家的等级",
["How to color player's name."] = "如何着色玩家的名称",
["Keep Info"] = "保持信息",
["Keep Lots Of Info"] = "保持大量的信息",
["Keep player information between session, but limit it to friends and guild members."] = "在会话间保持玩家信息,但仅限于朋友和公会成员",
["Keep player information between session for all players except cross-server players"] = "为除跨服玩家外的所有玩家在会话间保持玩家信息",
["Let TasteTheNaimbow set the common color for unknown player names."] = "让TasteTheNaimbow(插件)为未知玩家名称设置公共颜色",
["Level Color Mode"] = "等级着色模式",
linkifycommon_desc = "自助链接公共信息",
linkifycommon_name = "自助链接公共信息",
["No additional coloring"] = "无额外着色",
None = "无",
["Player Color Mode"] = "玩家着色模式",
["Player name formating options."] = "玩家名称格式选项",
PlayerNames = "玩家名称",
["Prat_Playernames: Stored Player Data Cleared"] = "Prat_玩家名称: 玩家数据存储已清除",
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "为所有未知玩家查询服务器,注意:这将非常缓慢,并且数据不会被存储",
Random = "随机",
-- realidcolor_desc = "",
-- realidcolor_name = "",
["Reset Settings"] = "重置设置",
["Restore default settings, and delete stored character data."] = "恢复默认设置并删除已存角色数据",
["Set common color of unknown player names."] = "设置未知玩家名称共有颜色",
["Sets common color of brackets to use around player names."] = "设置用来围绕玩家名称的括号颜色",
["Sets style of brackets to use around player names."] = "设置用来围绕玩家名称的括号类型",
["Show Group"] = "显示团队",
["Show Level"] = "显示等级",
["Show Raid Target Icon"] = "显示团队目标图标",
Square = "直角",
tabcomplete_name = "可能的名称",
["Tab completion : "] = "Tab键补全",
["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "组队邀请用alt-点击超链接的关键词如'邀请'",
["Toggle group invites by alt-clicking on player name."] = "组队邀请用alt-点击玩家名称",
["Toggle level showing."] = "等级显示",
["Toggle raid group showing."] = "团队分组显示",
["Toggle showing the raid target icon which is currently on the player."] = "显示当前玩家的团队目标图标",
["Toggle tab completion of player names."] = "Tab键补全玩家姓名",
["Toggle using a common color for brackets around player names."] = "为括号内玩家姓名使用公共颜色",
["Toggle using a common color for unknown player names."] = "为位置未知玩家名称使用公共颜色",
["Too many matches (%d possible)"] = "太多的匹配 (%d可能的)",
["Unknown Common Color"] = "未知公共颜色",
["Unknown Common Color From TasteTheNaimbow"] = "未知公共颜色自TasteTheNaimbow",
["Unknown Use Common Color"] = "未知使用公共颜色",
["Use Channel Color"] = "使用频道颜色",
["Use Player Color"] = "使用玩家颜色",
}
)
L:AddLocale("esES",
{
["Actively Query Player Info"] = "Pedir Información de Jugador Activamente",
Angled = "Angulo",
Brackets = "Corchetes",
["Brackets Common Color"] = "Color Común Corchetes",
["Brackets Use Common Color"] = "Utilizar Color Común Corchetes",
Class = "Clase",
["Color by Level Difference"] = "Color por Diferencia de Nivel",
coloreverywhere_desc = "Colorear nombres de jugadores si ellos aparecen en el texto de los mensajes del chat.",
coloreverywhere_name = "Colorear Nombres Siempre",
["Enable Alt-Invite"] = "Habilitar Alt-Invitar",
["Enable Invite Links"] = "Habilitar Enlaces Invitar",
["Enable TabComplete"] = "Habilitar Ficha completa",
hoverhilight_desc = "Resaltar líneas de chat de un jugador al situarse sobre su enlace de jugador",
-- hoverhilight_name = "",
["How to color other player's level."] = "Cómo el color de otro jugador de nivel.",
["How to color player's name."] = "Cómo el color de nombre del jugador.",
["Keep Info"] = "Mantener Información",
["Keep Lots Of Info"] = "Mantener Mucha Información",
["Keep player information between session, but limit it to friends and guild members."] = "Mantiene información de jugadores entre sesiones, pero lo limita a amigos y miembros de la hermandad.",
["Keep player information between session for all players except cross-server players"] = "Mantiene información de jugadores entre sesiones para todos los jugadores excepto entre servidores",
["Let TasteTheNaimbow set the common color for unknown player names."] = "Deje a TasteTheNaimbow establecer el color común para nombres de jugador desconocidos.",
["Level Color Mode"] = "Modo Color por Nivel",
linkifycommon_desc = "Linkify Common Messages",
linkifycommon_name = "Enlazar Mensajes Comunes",
["No additional coloring"] = "Sin color adicional",
None = "Ninguno",
["Player Color Mode"] = "Modo Color del Jugador",
["Player name formating options."] = "Opciones de formato del nombre de jugador.",
PlayerNames = "Nombre del Jugador",
["Prat_Playernames: Stored Player Data Cleared"] = "Prat_Playernames: Limpiados los Datos de Jugador Guardados",
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "Consulta el servidor para todos los nombres de jugador que desconocemos. Nota: esto sucede muy lentamente, y estos datos no se guardan.",
Random = "Aleatorio",
-- realidcolor_desc = "",
-- realidcolor_name = "",
["Reset Settings"] = "Restablecer Ajustes",
["Restore default settings, and delete stored character data."] = "Restablece ajustes por defecto, y eliminar información del jugador guardada.",
["Set common color of unknown player names."] = "Establece el color común para los nombres de jugadores desconocidos.",
["Sets common color of brackets to use around player names."] = "Establece el color común de los corchetes a utilizar en torno a los nombres de jugador.",
["Sets style of brackets to use around player names."] = "Establece el estilo de los corchetes a utilizar en torno a los nombres de jugador.",
["Show Group"] = "Mostrar Grupo",
["Show Level"] = "Mostrar Nivel",
["Show Raid Target Icon"] = "Mostrar Icono Objetivo Banda",
Square = "Cuadrado",
tabcomplete_name = "Nombres Posibles",
["Tab completion : "] = "Finalización de Pestaña : ",
-- ["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "",
["Toggle group invites by alt-clicking on player name."] = "Activa invitar a grupo al hacer alt-click en el nombre del jugador.",
["Toggle level showing."] = "Alterna mostrar nivel.",
["Toggle raid group showing."] = "Alterna mostrar grupo de raid.",
["Toggle showing the raid target icon which is currently on the player."] = "Altterna mostrar el icono de objetivo de banda que está en el jugador.",
["Toggle tab completion of player names."] = "Alterna la finalización de la pestaña de nombres de jugador.",
["Toggle using a common color for brackets around player names."] = "Alterna utilizar un color común de corchetes en torno a los nombres de jugador.",
["Toggle using a common color for unknown player names."] = "Alterna el utilizar un color común para los nombres de jugadores desconocidos.",
["Too many matches (%d possible)"] = "Demasiadas coincidencias (%d posibles)",
["Unknown Common Color"] = "Color Común Desconocido",
["Unknown Common Color From TasteTheNaimbow"] = "Desconocido Color Común de TasteTheNaimbow", -- Needs review
["Unknown Use Common Color"] = "Desconocido Color de Uso Común",
["Use Channel Color"] = "Utilizar Color Canal",
["Use Player Color"] = "Utilizar Color Jugador",
}
)
L:AddLocale("zhTW",
{
["Actively Query Player Info"] = "主動查詢玩家資訊",
-- Angled = "",
Brackets = "括號",
["Brackets Common Color"] = "括號通用色彩",
["Brackets Use Common Color"] = "括號使用的通用色彩",
Class = "職業",
["Color by Level Difference"] = "等級差異色彩",
-- coloreverywhere_desc = "",
-- coloreverywhere_name = "",
["Enable Alt-Invite"] = "啟用 Alt 按鍵邀請",
["Enable Invite Links"] = "啟用邀請連結",
["Enable TabComplete"] = "啟用 TabComplete",
-- hoverhilight_desc = "",
hoverhilight_name = "滑鼠懸停高亮",
["How to color other player's level."] = "如何為玩家等級著色",
["How to color player's name."] = "如何為玩家名稱著色",
["Keep Info"] = "保存資訊",
["Keep Lots Of Info"] = "保存大量資訊",
["Keep player information between session, but limit it to friends and guild members."] = "保存此階段玩家資訊,但限制為好友以及公會成員。",
["Keep player information between session for all players except cross-server players"] = "保存此階段所有玩家資訊,除了跨伺服器人物。",
-- ["Let TasteTheNaimbow set the common color for unknown player names."] = "",
["Level Color Mode"] = "等級色彩模式",
-- linkifycommon_desc = "",
-- linkifycommon_name = "",
["No additional coloring"] = "無額外著色",
None = "無",
["Player Color Mode"] = "玩家色彩模式",
["Player name formating options."] = "玩家名稱格式化選項。",
PlayerNames = "玩家名稱",
["Prat_Playernames: Stored Player Data Cleared"] = "Prat_Playernames:已清除儲存的玩家資料",
["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."] = "查詢所有此伺服器我們不知道的角色名稱。備註:這個程序相當緩慢且並不會儲存此資料。",
Random = "隨機",
-- realidcolor_desc = "",
-- realidcolor_name = "",
["Reset Settings"] = "重置設定",
["Restore default settings, and delete stored character data."] = "恢復至預設值且刪除儲存的角色資料。",
["Set common color of unknown player names."] = "設定未知角色的顯示色彩",
-- ["Sets common color of brackets to use around player names."] = "",
-- ["Sets style of brackets to use around player names."] = "",
["Show Group"] = "顯示隊伍編號",
["Show Level"] = "顯示等級",
["Show Raid Target Icon"] = "顯示團隊標記",
Square = "方框",
-- tabcomplete_name = "",
-- ["Tab completion : "] = "",
-- ["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."] = "",
-- ["Toggle group invites by alt-clicking on player name."] = "",
-- ["Toggle level showing."] = "",
-- ["Toggle raid group showing."] = "",
-- ["Toggle showing the raid target icon which is currently on the player."] = "",
-- ["Toggle tab completion of player names."] = "",
-- ["Toggle using a common color for brackets around player names."] = "",
["Toggle using a common color for unknown player names."] = "切換未知玩家以一般色彩顯示",
-- ["Too many matches (%d possible)"] = "",
["Unknown Common Color"] = "未知的文字通用顏色",
["Unknown Common Color From TasteTheNaimbow"] = "來自TasteTheNaimbow 的未知的文字通用顏色",
["Unknown Use Common Color"] = "未知的文字使用通用顏色",
["Use Channel Color"] = "使用頻道文字顏色",
["Use Player Color"] = "使用腳色名稱文字色彩",
}
)
--@end-non-debug@
local module = Prat:NewModule(PRAT_MODULE, "AceEvent-3.0", "AceTimer-3.0")
module.L = L
module.Classes = {}
module.Levels = {}
module.Subgroups = {}
local NOP = function(self) return end
module.OnPlayerDataChanged = NOP
Prat:SetModuleDefaults(module.name, {
realm = {
classes = {},
levels = {}
},
profile = {
on = true,
brackets = "Square",
tabcomplete = true,
tabcompletelimit = 20,
level = true,
levelcolor = "DIFFICULTY",
subgroup = true,
showtargeticon = false,
keep = false,
keeplots = false,
colormode = "CLASS",
realidcolor = "RANDOM",
coloreverywhere = true,
usecommoncolor = true,
altinvite = false,
linkinvite = false,
bracketscommoncolor = true,
linkifycommon = true,
bracketscolor = {
r = 0.85,
g = 0.85,
b = 0.85,
a = 1.0
},
useTTN = true,
usewho = false,
color = {
r = 0.65,
g = 0.65,
b = 0.65,
a = 1.0
},
}
})
Prat:SetModuleInit(module,
function(self)
-- Right click - who
UnitPopupButtons["WHOIS"] = { text ="Who Is?", dist = 0 , func = function()
local dropdownFrame = UIDROPDOWNMENU_INIT_MENU
local name = dropdownFrame.name
if name then
SendWho(name)
end
end}
tinsert(UnitPopupMenus["FRIEND"],#UnitPopupMenus["FRIEND"]-1,"WHOIS");
Prat:RegisterDropdownButton("WHOIS")
-- function module:UnitPopup_ShowMenu(dropdownMenu, which, unit, name, userData, ...)
-- for i=1, UIDROPDOWNMENU_MAXBUTTONS do
-- button = getglobal("DropDownList"..UIDROPDOWNMENU_MENU_LEVEL.."Button"..i);
--
-- -- Patch our handler function back in
-- if button.value == "WHOIS" then
-- button.func = UnitPopupButtons["WHOIS"].func
-- end
-- end
-- end
-- self:SecureHook("UnitPopup_ShowMenu")
-- ends here gonna make a control for it
end
)
module.pluginopts = {}
Prat:SetModuleOptions(module, {
name = L["PlayerNames"],
desc = L["Player name formating options."],
type = "group",
plugins = module.pluginopts,
args = {
brackets = {
name = L["Brackets"],
desc = L["Sets style of brackets to use around player names."],
type = "select",
order = 110,
values = {["Square"] = L["Square"], ["Angled"] = L["Angled"], ["None"] = L["None"]}
},
bracketscommoncolor = {
name = L["Brackets Use Common Color"],
desc = L["Toggle using a common color for brackets around player names."],
type = "toggle",
order = 111,
},
bracketscolor = {
name = L["Brackets Common Color"],
desc = L["Sets common color of brackets to use around player names."],
type = "color",
order = 112,
get = "GetColorValue",
set = "SetColorValue",
disabled = function(info) return not info.handler.db.profile.bracketscommoncolor end,
},
usecommoncolor = {
name = L["Unknown Use Common Color"],
desc = L["Toggle using a common color for unknown player names."],
type = "toggle",
order = 120,
},
color = {
name = L["Unknown Common Color"],
desc = L["Set common color of unknown player names."],
type = "color",
order = 121,
get = "GetColorValue",
set = "SetColorValue",
disabled = function(info) if not info.handler.db.profile.usecommoncolor then return true else return false end end,
},
useTTN = {
name = L["Unknown Common Color From TasteTheNaimbow"],
desc = L["Let TasteTheNaimbow set the common color for unknown player names."],
type = "toggle",
order = 122,
hidden = function(info) if TasteTheNaimbow_Loaded then return false else return true end end,
disabled = function(info) if not info.handler.db.profile.usecommoncolor then return true else return false end end,
},
colormode = {
name = L["Player Color Mode"],
desc = L["How to color player's name."],
type = "select",
order = 130,
values = {["RANDOM"] = L["Random"], ["CLASS"] = L["Class"], ["NONE"] = L["None"]}
},
realidcolor = {
name = L["realidcolor_name"],
desc = L["realidcolor_desc"],
type = "select",
order = 135,
values = {["RANDOM"] = L["Random"], ["NONE"] = L["None"]}
},
levelcolor = {
name = L["Level Color Mode"],
desc = L["How to color other player's level."],
type = "select",
order = 131,
values = {["PLAYER"] = L["Use Player Color"], ["CHANNEL"] = L["Use Channel Color"], ["DIFFICULTY"] = L["Color by Level Difference"], ["NONE"] = L["No additional coloring"]}
},
level = {
name = L["Show Level"],
desc = L["Toggle level showing."],
type = "toggle",
order = 140,
},
subgroup = {
name = L["Show Group"],
desc = L["Toggle raid group showing."],
type = "toggle",
order = 141,
},
showtargeticon = {
name = L["Show Raid Target Icon"],
desc = L["Toggle showing the raid target icon which is currently on the player."],
type = "toggle",
order = 142,
},
tabcomplete = {
name = L["Enable TabComplete"],
desc = L["Toggle tab completion of player names."],
type = "toggle",
order = 150,
get = function(info) return info.handler.db.profile.tabcomplete end,
set = function(info, v) info.handler.db.profile.tabcomplete = v; info.handler:TabComplete(v) end
},
altinvite = {
name = L["Enable Alt-Invite"],
desc = L["Toggle group invites by alt-clicking on player name."],
type = "toggle",
order = 151,
},
linkinvite = {
name = L["Enable Invite Links"],
desc = L["Toggle group invites by alt-clicking hyperlinked keywords like 'invite'."],
type = "toggle",
order = 152,
},
keep = {
name = L["Keep Info"],
desc = L["Keep player information between session, but limit it to friends and guild members."],
type = "toggle",
order = 200,
},
keeplots = {
name = L["Keep Lots Of Info"],
desc = L["Keep player information between session for all players except cross-server players"],
type = "toggle",
order = 201,
disabled = function(info) return not info.handler.db.profile.keep end,
},
usewho = {
name = L["Actively Query Player Info"],
desc = L["Query the server for all player names we do not know. Note: This happpens pretty slowly, and this data is not saved."],
type = "toggle",
order = 202,
hidden = function(info) if LibStub:GetLibrary("LibWho-2.0", true) then return false end return true end
},
reset = {
name = L["Reset Settings"],
desc = L["Restore default settings, and delete stored character data."],
type = "execute",
order = 250,
func = "resetStoredData"
},
}
}
)
function module:OnValueChanged(info, b)
local field = info[#info]
if field == "altinvite" or field == "linkinvite" then
self:SetAltInvite()
elseif field == "usewho" then
self.wholib = b and LibStub:GetLibrary("LibWho-2.0", true)
self:updateAll()
elseif field == "coloreverywhere" then
self:OnPlayerDataChanged(b and UnitName("player") or nil)
end
end
local mt_GuildClass = {}
function module:OnModuleEnable()
Prat.RegisterChatEvent(self, "Prat_FrameMessage")
Prat.RegisterChatEvent(self, "Prat_Ready")
self:SetAltInvite()
Prat.RegisterMessageItem("PREPLAYERDELIM", "PLAYER", "before")
Prat.RegisterMessageItem("POSTPLAYERDELIM", "Ss", "after")
Prat.RegisterMessageItem("PLAYERTARGETICON", "Ss", "after")
Prat.EnableProcessingForEvent("CHAT_MSG_GUILD_ACHIEVEMENT")
Prat.RegisterMessageItem("PLAYERLEVEL", "PREPLAYERDELIM", "before")
Prat.RegisterMessageItem("PLAYERGROUP", "POSTPLAYERDELIM", "after")
self:RegisterEvent("FRIENDLIST_UPDATE", "updateFriends")
self:RegisterEvent("GUILD_ROSTER_UPDATE", "updateGuild")
self:RegisterEvent("RAID_ROSTER_UPDATE", "updateRaid")
self:RegisterEvent("PLAYER_LEVEL_UP", "updatePlayerLevel")
self:RegisterEvent("PARTY_MEMBERS_CHANGED", "updateParty")
self:RegisterEvent("PLAYER_TARGET_CHANGED", "updateTarget")
self:RegisterEvent("UPDATE_MOUSEOVER_UNIT", "updateMouseOver")
self:RegisterEvent("WHO_LIST_UPDATE", "updateWho")
self:RegisterEvent("CHAT_MSG_SYSTEM", "updateWho") -- for short /who command
self:RegisterEvent("PLAYER_LEAVING_WORLD", "EmptyDataCache")
if self.db.profile.usewho then
self.wholib = LibStub:GetLibrary("LibWho-2.0", true)
end
self:updatePlayer()
self.NEEDS_INIT = true
if IsInGuild() == 1 then
GuildRoster()
end
self:TabComplete(self.db.profile.tabcomplete)
Prat.RegisterLinkType( { linkid="invplr", linkfunc=self.Invite_Link, handler=self }, self.name)
Prat.RegisterLinkType( { linkid="player", linkfunc=self.Player_Link, handler=self }, self.name)
end
function module:OnModuleDisable()