-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDIO-TOOLS.user.js
More file actions
9453 lines (7996 loc) · 466 KB
/
DIO-TOOLS.user.js
File metadata and controls
9453 lines (7996 loc) · 466 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
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
// ==UserScript==
// @name DIO-TOOLS
// @namespace DIO
// @version 3.19
// @author Diony
// @updateURL https://diotools.de/downloads/DIO-TOOLS.user.js
// @downloadURL https://diotools.de/downloads/DIO-TOOLS.user.js
// @description DIO-Tools is a small extension for the browser game Grepolis. (counter, displays, smilies, trade options, changes to the layout)
// @include http://de.grepolis.com/game*
// @include /http[s]{0,1}://[a-z]{2}[0-9]{1,2}\.grepolis\.com/game*/
// @include https://*.forum.grepolis.com/*
// @include http://diotools.de/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// @icon http://s7.directupload.net/images/140128/vqchpigi.gif
// @icon64 http://diotools.de/images/icon_dio_64x64.png
// @copyright 2013+, DIONY
// @grant GM_info
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// @grant GM_xmlhttpRequest
// @grant GM_getResourceURL
// ==/UserScript==
var version = '3.19';
//if(unsafeWindow.DM) console.dir(unsafeWindow.DM.status('l10n'));
//console.dir(DM.status('templates'));
//http://s7.directupload.net/images/140128/vqchpigi.gif - DIO-Tools-Smiley
//http://de44.grepolis.com/cache/js/libs/jquery-1.10.2.min.js
//console.log(JSON.stringify(DM.getl10n()));
//// console.log(GM_getResourceText("dio_sprite"));
/*******************************************************************************************************************************
* Changes
* ----------------------------------------------------------------------------------------------------------------------------
* | ● Einstellungen und auch das ganze Script komplett überarbeitet
* | ● Features können nun ohne Refresh deaktiviert/aktiviert werden
* | ● Einzelne Features sind unabhängiger voneinander und somit auch fehlerresistenter (einzelne Features können sich bei Fehlerauftreten durch Grepolis-Updates nicht mehr gegenseitig blockieren)
* | ● Fehlerhafter Biremenzähler als Kompromiss für die Erweiterung der "Verfügbare Einheiten"-Anzeige entfernt: es kann nun jede Einheit im Bullauge angezeigt werden
* | ● EO-Zähler hat ATT/UT's doppelt gezählt, wenn nebenher der veröffentlichte Belagerungsbericht im Forum offen war
* | ● 3 kleine Layoutfehler beim EO-Zähler behoben
* | ● Wenn Zauberfenster und Zauberbox gleichzeitig offen waren, kam es zu einem Layoutfehler
* | ● Fehler beim Mausrad-Zoom behoben
* | ● Fehler bei der Transporteranzeige behoben: die Kapazität der großen Transporter wurde durch das Rebalancing nichtmehr korrekt berechnet
* | ● Smileybox etwas verbessert
* | ● Weihnachtssmileys hinzugefügt
* | ● Kontextmenü der Stadticons auf der strategischen Karte konnte im Nachtmodus nicht geöffnet werden
* | ● Grüner Fortschrittsbalken beim Weltwunderzähler wurde nicht angezeigt
* | ● Fenster wurden angepasst (Verfügbare Einheiten und Einheitenvergleich)
* ----------------------------------------------------------------------------------------------------------------------------
*******************************************************************************************************************************/
/*******************************************************************************************************************************
* Bugs / TODOs
* ----------------------------------------------------------------------------------------------------------------------------
* | ● Aktivitätsbox für Angriffe blendet nicht aus
* | ● Smileys verschwinden manchmal? -> bisher nicht reproduzierbar
* | ● Performanceeinbruch nach dem Switchen des WW-Fensters
* | ● keine Smileys im Grepoforum mit Safari (fehlendes jQuery)
* ----------------------------------------------------------------------------------------------------------------------------
*******************************************************************************************************************************/
/*******************************************************************************************************************************
* Global stuff
*******************************************************************************************************************************/
var uw = unsafeWindow || window, $ = uw.jQuery || jQuery, DATA, GM;
// GM-API?
GM = (typeof GM_info === 'object');
console.log('%c|= DIO-Tools is active =|', 'color: green; font-size: 1em; font-weight: bolder; ');
function loadValue(name, default_val){
var value;
if(GM){
value = GM_getValue(name, default_val);
} else {
value = localStorage.getItem(name) || default_val;
}
if(typeof(value) === "string"){
value = JSON.parse(value)
}
return value;
}
// LOAD DATA
if(GM && (uw.location.pathname.indexOf("game") >= 0)){
var WID = uw.Game.world_id, MID = uw.Game.market_id, AID = uw.Game.alliance_id;
//GM_deleteValue(WID + "_bullseyeUnit");
DATA = {
// GLOBAL
options : loadValue("options", "{}"),
user : loadValue("dio_user", "{}"),
count: loadValue("dio_count", "[]"),
notification : loadValue('notif', '0'),
error: loadValue('error', '{}'),
spellbox : loadValue("spellbox", '{ "top":"23%", "left": "-150%", "show": false }'),
commandbox: loadValue("commandbox" , '{ "top":55, "left": 250 }'),
tradebox : loadValue("tradebox", '{ "top":55, "left": 450 }'),
// WORLD
townTypes : loadValue(WID + "_townTypes", "{}"),
sentUnits : loadValue(WID + "_sentUnits", '{ "attack": {}, "support": {} }'),
biremes : loadValue(WID + "_biremes", "{}"), //old
bullseyeUnit : loadValue(WID + "_bullseyeUnit", '{ "current_group" : -1 }'), // new
worldWonder : loadValue(WID + "_wonder", '{ "ratio": {}, "storage": {}, "map": {} }'),
clickCount : loadValue(WID + "_click_count", '{}'), // old
statistic : loadValue(WID + "_statistic", '{}'), // new
// MARKET
worldWonderTypes : loadValue(MID + "_wonderTypes", '{}')
};
if(!DATA.worldWonder.map) {
DATA.worldWonder.map = {};
}
// Temporary:
if(typeof DATA.options.trd == 'boolean') {
DATA.options.per = DATA.options.rec = DATA.options.trd; delete DATA.options.trd;
}
if(typeof DATA.options.mov == 'boolean') {
DATA.options.act = DATA.options.mov; delete DATA.options.mov;
}
if(typeof DATA.options.twn == 'boolean') {
DATA.options.tic = DATA.options.til = DATA.options.tim = DATA.options.twn; delete DATA.options.twn;
}
if(GM) GM_deleteValue("notification");
}
// GM: EXPORT FUNCTIONS
uw.saveValueGM = function(name, val){
setTimeout(function(){
GM_setValue(name, val);
}, 0);
};
uw.deleteValueGM = function(name){
setTimeout(function(){
GM_deleteValue(name);
},0);
};
uw.getImageDataFromCanvas = function(x, y){
// console.debug("HEY", document.getElementById('canvas_picker').getContext('2d').getImageData(x, y, 1, 1));
};
uw.calculateConcaveHull = function() {
var contour = [
new poly2tri.Point(100, 100),
new poly2tri.Point(100, 300),
new poly2tri.Point(300, 300),
new poly2tri.Point(300, 100)
];
var swctx = new poly2tri.SweepContext(contour);
swctx.triangulate();
var triangles = swctx.getTriangles();
// console.debug(triangles);
return triangles;
};
if(typeof exportFunction == 'function'){
// Firefox > 30
//uw.DATA = cloneInto(DATA, unsafeWindow);
exportFunction(uw.saveValueGM, unsafeWindow, {defineAs: "saveValueGM"});
exportFunction(uw.deleteValueGM, unsafeWindow, {defineAs: "deleteValueGM"});
exportFunction(uw.calculateConcaveHull, unsafeWindow, {defineAs: "calculateConcaveHull"});
exportFunction(uw.getImageDataFromCanvas, unsafeWindow, {defineAs: "getImageDataFromCanvas"});
} else {
// Firefox < 30, Chrome, Opera, ...
//uw.DATA = DATA;
}
var time_a, time_b;
// APPEND SCRIPT
function appendScript(){
//console.log("GM-API: " + gm_bool);
if(document.getElementsByTagName('body')[0]){
var dioscript = document.createElement('script');
dioscript.type ='text/javascript';
dioscript.id = 'diotools';
time_a = uw.Timestamp.client();
dioscript.textContent = DIO_GAME.toString().replace(/uw\./g, "") + "\n DIO_GAME('"+ version +"', "+ GM +", '" + JSON.stringify(DATA).replace(/'/g, "##") + "', "+ time_a +");";
document.body.appendChild(dioscript);
} else {
setTimeout(function(){
appendScript();
}, 500);
}
}
if(location.host === "diotools.de"){
// PAGE
DIO_PAGE();
}
else if((uw.location.pathname.indexOf("game") >= 0) && GM){
// GAME
appendScript();
}
else {
DIO_FORUM();
}
function DIO_PAGE(){
if(typeof GM_info == 'object') {
setTimeout(function() {
dio_user = JSON.parse(loadValue("dio_user", ""));
console.log(dio_user);
uw.dio_version = parseFloat(version);
}, 0);
} else {
dio_user = localStorage.getItem("dio_user") || "";
dio_version = parseFloat(version);
}
}
function DIO_FORUM(){
var smileyArray = [];
var _isSmileyButtonClicked = false;
smileyArray.standard = [
"smilenew", "grin", "lol", "neutral_new", "afraid", "freddus_pacman", "auslachen2", "kolobok-sanduhr", "bussi2", "winken4", "flucht2", "panik4", "ins-auge-stechen",
"seb_zunge", "fluch4_GREEN", "baby_junge2", "blush-reloaded6", "frown", "verlegen", "blush-pfeif", "stevieh_rolleyes", "daumendreh2", "baby_taptap",
"sadnew", "hust", "confusednew", "idea2", "irre", "irre4", "sleep", "candle", "nicken", "no_sad",
"thumbs-up_new", "thumbs-down_new", "bravo2", "oh-no2", "kaffee2", "drunk", "saufen", "freu-dance", "hecheln", "headstand", "rollsmiliey", "eazy_cool01", "motz", "cuinlove", "biggrin"
];
smileyArray.grepolis = [
"mttao_wassermann", "hera", /* Hera */ "medusa", /* Medusa */ "manticore", /* Mantikor */ "cyclops", /* Zyklop */
"minotaur", /* Minotaurus */ "pegasus", /* Pegasus */ "hydra", /* Hydra */
"silvester_cuinlove", "mttao_schuetze", "kleeblatt2", "wallbash", /* "glaskugel4", */ /* "musketiere_fechtend",*/ /* "krone-hoch",*/ "viking", // Wikinger
/* "mttao_waage2", */ "steckenpferd", /* "kinggrin_anbeten2", */ "grepolove", /* Grepo Love */ "skullhaufen", "grepo_pacman" /*, "pferdehaufen" */ // "i/ckajscggscw4s2u60"
];
var ForumObserver = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.addedNodes[0]) {
//console.debug("Added Nodes", mutation.addedNodes[0]);
// Message Box geladen
if(mutation.addedNodes[0].className === "redactor_box"){
//console.debug("Message Box geladen");
ForumObserver.observe($(".redactor_box").get(0), {
attributes: false,
childList: true,
characterData: false,
subtree:true
});
}
// Toolbar der Message Box geladen
if(_isSmileyButtonClicked === false && mutation.addedNodes[0].className === "redactor_toolbar") {
$(".redactor_btn_smilies").click();
// Soll sich nicht wieder deaktivieren
_isSmileyButtonClicked = true;
}
// Smileybar der Toolbar geladen
if(mutation.addedNodes[0].className === "redactor_smilies") {
// Observer soll nicht mehr feuern, wenn die Smileys hinzugefügt werden
ForumObserver.disconnect();
// Hässliche Smileys entfernen
$(".smilieCategory ul").empty();
// Greensmileys hinzufügen
for(var smiley in smileyArray.standard){
if(smileyArray.standard.hasOwnProperty(smiley)){
$(".smilieCategory ul").append(
'<li class="Smilie" data-text="">'+
'<img src="https://diotools.de/images/smileys/standard/smiley_emoticons_'+ smileyArray.standard[smiley] +'.gif" title="" alt="" data-smilie="yes">'+
'</li>'
);
}
}
$(".smilieCategory ul").append("<br><br>");
for(var smiley in smileyArray.grepolis){
if(smileyArray.grepolis.hasOwnProperty(smiley)){
$(".smilieCategory ul").append(
'<li class="Smilie" data-text="">'+
'<img src="https://diotools.de/images/smileys/grepolis/smiley_emoticons_'+ smileyArray.grepolis[smiley] +'.gif" title="" alt="" data-smilie="yes">'+
'</li>'
);
}
}
_isSmileyBarOpened = true;
}
}
});
});
// Smiley-Button aktivieren, um die Smiley-Toolbar zu öffnen
if($(".redactor_btn_smilies").get(0)){
$(".redactor_btn_smilies").click();
_isSmileyButtonClicked = true;
}
// Observer triggern
if($("#QuickReply").get(0)) {
ForumObserver.observe($("#QuickReply div").get(0), {
attributes: false,
childList: true,
characterData: false,
subtree:true
});
}
else if($("#ThreadReply").get(0)) {
ForumObserver.observe($("#ThreadReply div").get(0), {
attributes: false,
childList: true,
characterData: false,
subtree:true
});
}
/*
else if($("#ThreadCreate").get(0)) {
ForumObserver.observe($("#ThreadCreate fieldset .ctrlUnit dd div").get(0), {
attributes: false,
childList: true,
characterData: false
});
}
*/
// Threaderstellung, Signatur bearbeiten, Beitrag bearbeiten
else if($("form.Preview").get(0)) {
ForumObserver.observe($("form.Preview .ctrlUnit dd div").get(0), {
attributes: false,
childList: true,
characterData: false
});
}
else if(typeof($("form.AutoValidator").get(0)) !== "undefined") {
ForumObserver.observe($("form.AutoValidator .messageContainer div").get(0), {
attributes: false,
childList: true,
characterData: false
});
}
// TODO: Bearbeiten, Nachrichten
}
function DIO_GAME(version, gm, DATA, time_a) {
var MutationObserver = uw.MutationObserver || window.MutationObserver,
WID, MID, AID, PID, LID,
dio_sprite = "http://666kb.com/i/d9xuhtcctx5fdi8i6.png"; // http://abload.de/img/dio_spritejmqxp.png, http://img1.myimg.de/DIOSPRITEe9708.png -> Forbidden!?
if (uw.location.pathname.indexOf("game") >= 0) {
DATA = JSON.parse(DATA.replace(/##/g, "'"));
WID = uw.Game.world_id;
MID = uw.Game.market_id;
AID = uw.Game.alliance_id;
PID = uw.Game.player_id;
LID = uw.Game.locale_lang.split("_")[0]; // LID ="es";
// World with Artemis ??
Game.hasArtemis = true; //Game.constants.gods.length == 6;
}
$.prototype.reverseList = [].reverse;
// Implement old jQuery method (version < 1.9)
$.fn.toggleClick = function () {
var methods = arguments; // Store the passed arguments for future reference
var count = methods.length; // Cache the number of methods
// Use return this to maintain jQuery chainability
// For each element you bind to
return this.each(function (i, item) {
// Create a local counter for that element
var index = 0;
// Bind a click handler to that element
$(item).on('click', function () {
// That when called will apply the 'index'th method to that element
// the index % count means that we constrain our iterator between 0
// and (count-1)
return methods[index++ % count].apply(this, arguments);
});
});
};
function saveValue(name, val) {
if (gm) {
saveValueGM(name, val);
} else {
localStorage.setItem(name, val);
}
}
function deleteValue(name) {
if (gm) {
deleteValueGM(name);
} else {
localStorage.removeItem(name);
}
}
/*******************************************************************************************************************************
* Graphic filters
*******************************************************************************************************************************/
if (uw.location.pathname.indexOf("game") >= 0) {
$('<svg width="0%" height="0%">' +
// GREYSCALE
'<filter id="GrayScale">' +
'<feColorMatrix type="matrix" values="0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0">' +
'</filter>' +
// SEPIA
'<filter id="Sepia">' +
'<feColorMatrix type="matrix" values="0.343 0.669 0.119 0 0 0.249 0.626 0.130 0 0 0.172 0.334 0.111 0 0 0.000 0.000 0.000 1 0">' +
'</filter>' +
// SATURATION
'<filter id="Saturation"><feColorMatrix type="saturate" values="0.2"></filter>' +
'<filter id="Saturation1"><feColorMatrix type="saturate" values="1"></filter>' +
'<filter id="Saturation2"><feColorMatrix type="saturate" values="2"></filter>' +
// HUE
'<filter id="Hue1"><feColorMatrix type="hueRotate" values= "65"></filter>' +
'<filter id="Hue2"><feColorMatrix type="hueRotate" values="150"></filter>' +
'<filter id="Hue3"><feColorMatrix type="hueRotate" values="-65"></filter>' +
// BRIGHTNESS
'<filter id="Brightness15">' +
'<feComponentTransfer><feFuncR type="linear" slope="1.5"/><feFuncG type="linear" slope="1.5"/><feFuncB type="linear" slope="1.5"/></feComponentTransfer>' +
'</filter>' +
'<filter id="Brightness12">' +
'<feComponentTransfer><feFuncR type="linear" slope="1.2"/><feFuncG type="linear" slope="1.2"/><feFuncB type="linear" slope="1.2"/></feComponentTransfer>' +
'</filter>' +
'<filter id="Brightness11">' +
'<feComponentTransfer><feFuncR type="linear" slope="1.1"/><feFuncG type="linear" slope="1.1"/><feFuncB type="linear" slope="1.1"/></feComponentTransfer>' +
'</filter>' +
'<filter id="Brightness10">' +
'<feComponentTransfer><feFuncR type="linear" slope="1.0"/><feFuncG type="linear" slope="1.0"/><feFuncB type="linear" slope="1.0"/></feComponentTransfer>' +
'</filter>' +
'<filter id="Brightness07">' +
'<feComponentTransfer><feFuncR type="linear" slope="0.7"/><feFuncG type="linear" slope="0.7"/><feFuncB type="linear" slope="0.7"/></feComponentTransfer>' +
'</filter>' +
'</svg>').appendTo('#ui_box');
}
/*******************************************************************************************************************************
* Language versions: german, english, french, russian, polish, spanish
*******************************************************************************************************************************/
var LANG = {
de: {
settings: {
dsc: "DIO-Tools bietet unter anderem einige Anzeigen, eine Smileyauswahlbox,<br>Handelsoptionen und einige Veränderungen des Layouts.",
act: "Funktionen der Toolsammlung aktivieren/deaktivieren:",
prv: "Vorschau einzelner Funktionen:",
version_old: "DIO-Tools-Version ist nicht aktuell",
version_new: "DIO-Tools-Version ist aktuell",
version_dev: "DIO-Tools-Entwicklerversion",
version_update: "Aktualisieren",
link_forum: "http://forum.de.grepolis.com/showthread.php?28838&goto=newpost", //"http://forum.de.grepolis.com/showthread.php?28838"
link_contact: "http://forum.de.grepolis.com/private.php?do=newpm&u=10548",
forum: "Forum",
author: "Autor",
cat_units: "Einheiten",
cat_icons: "Stadticons",
cat_forum: "Forum",
cat_trade: "Handel",
cat_wonders: "Weltwunder",
cat_layout: "Layout",
cat_other: "Sonstiges"
},
options: {
//bir: ["Biremenzähler", "Zählt die jeweiligen Biremen einer Stadt und summiert diese.<br><br>Anzeige im Minimap-Bullauge oben links"],
ava: ["Einheitenübersicht", "Zeigt die Einheiten aller Städte an"],
sml: ["Smileys", "Erweitert die BBCode-Leiste um eine Smileybox"],
str: ["Einheitenstärke", "Fügt mehrere Einheitenstärketabellen in verschiedenen Bereichen hinzu"],
tra: ["Transportkapazität", "Zeigt die belegte und verfügbare Transportkapazität im Einheitenmenu an"],
per: ["Prozentualer Handel", "Erweitert das Handelsfenster um einen Prozentualer Handel"],
rec: ["Rekrutierungshandel", "Erweitert das Handelsfenster um einen Rekrutierungshandel"],
cnt: ["EO-Zähler", "Zählt die ATT/UT-Anzahl im EO-Fenster"],
way: ["Laufzeit", "Zeigt im ATT/UT-Fenster die Laufzeit bei Verbesserter Truppenbewegung an"],
sim: ["Simulator", "Anpassung des Simulatorlayouts & permanente Anzeige der Erweiterten Modifikatorbox"],
spl: ["Zauberbox", "Komprimierte verschiebbare & magnetische Zauberbox (Positionsspeicherung)"],
act: ["Aktivitätsboxen", "Verbesserte Anzeige der Handels- und Truppenaktivitätsboxen (Positionsspeicherung)"],
pop: ["Gunst-Popup", 'Ändert das Aussehen des Gunst-Popups'],
tsk: ["Taskleiste", 'Vergrößert die Taskleiste und minimiert das "Tägliche Belohnung"-Fenster beim Start'],
cha: ["Chat", "Ersetzt den Allianzchat durch einen Welten-Chat"],
bbc: ["DEF-Formular", "Erweitert die BBCode-Leiste um ein automatisches DEF-Formular"],
com: ["Einheitenvergleich", "Fügt Einheitenvergleichstabellen hinzu"],
tic: ["Stadticons", "Jede Stadt erhält ein Icon für den Stadttyp (Automatische Erkennung)", "Zusätzliche Icons stehen bei der manuellen Auswahl zur Verfügung"],
til: ["Stadtliste", "Fügt die Stadticons zur Stadtliste hinzu"],
tim: ["Karte", "Setzt die Stadticons auf die strategische Karte"],
wwc: ["Anteil", "Anteilsrechner & Rohstoffzähler + Vor- & Zurück-Buttons bei fertiggestellten WW's (momentan nicht deaktivierbar!)"],
wwr: ["Rangliste", "Überarbeitete Weltwunderrangliste"],
wwi: ["Icons", 'Fügt Weltwundericons auf der strategischen Karte hinzu'],
con: ["Kontextmenu", 'Vertauscht "Stadt selektieren" und "Stadtübersicht" im Kontextmenu'],
sen: ["Abgeschickte Einheiten", 'Zeigt im Angriffs-/Unterstützungsfenster abgeschickte Einheiten an'],
tov: ["Stadtübersicht", 'Ersetzt die neue Stadtansicht mit der alten Fensteransicht'],
scr: ["Mausrad-Zoom", 'Man kann mit dem Mausrad die 3 Ansichten wechseln'],
err: ["Automatische Fehlerberichte senden", "Wenn du diese Option aktivierst, kannst du dabei helfen Fehler zu identifizieren."],
her: ["Thrakische Eroberung", "Verkleinerung der Karte der Thrakischen Eroberung."]
},
labels: {
uni: "Einheitenübersicht",
total: "Gesamt",
available: "Verfügbar",
outer: "Außerhalb",
con: "Selektieren",
// Smileys
std: "Standard",
gre: "Grepolis",
nat: "Natur",
ppl: "Leute",
oth: "Sonstige",
// Defense form
ttl: "Übersicht: Stadtverteidigung",
inf: "Informationen zur Stadt:",
dev: "Abweichung",
det: "Detailierte Landeinheiten",
prm: "Premiumboni",
sil: "Silberstand",
mov: "Truppenbewegungen:",
// WW
leg: "WW-Anteil",
stg: "Stufe",
tot: "Gesamt",
// Simulator
str: "Einheitenstärke",
los: "Verluste",
mod: "ohne Modifikatoreinfluss",
// Comparison box
dsc: "Einheitenvergleich",
hck: "Schlag",
prc: "Stich",
dst: "Distanz",
sea: "See",
att: "Angriff",
def: "Verteidigung",
spd: "Geschwindigkeit",
bty: "Beute (Rohstoffe)",
cap: "Transportkapazität",
res: "Baukosten (Rohstoffe)",
fav: "Gunst",
tim: "Bauzeit (s)",
// Trade
rat: "Ressourcenverhältnis eines Einheitentyps",
shr: "Anteil an der Lagerkapazität der Zielstadt",
per: "Prozentualer Handel",
// Sent units box
lab: "Abgeschickt",
improved_movement: "Verbesserte Truppenbewegung"
},
buttons: {
sav: "Speichern", ins: "Einfügen", res: "Zurücksetzen"
}
},
en: {
settings: {
dsc: "DIO-Tools offers, among other things, some displays, a smiley box,<br>trade options and some changes to the layout.",
act: "Activate/deactivate features of the toolset:",
prv: "Preview of several features:",
version_old: "Version is not up to date",
version_new: "Version is up to date",
version_dev: "Developer version",
version_update: "Update",
link_forum: "http://forum.en.grepolis.com/showthread.php?52104&goto=newpost",
link_contact: "http://forum.en.grepolis.com/private.php?do=newpm&u=46211",
forum: "Forum",
author: "Author",
cat_units: "Units",
cat_icons: "Town icons",
cat_forum: "Forum",
cat_trade: "Trade",
cat_wonders: "World wonder",
cat_layout: "Layout",
cat_other: "Miscellaneous"
},
options: {
//bir: ["Bireme counter", "Counts the biremes of a city and sums these"],
ava: ["Units overview", "Counts the units of all cities"],
sml: ["Smilies", "Extends the bbcode bar by a smiley box"],
str: ["Unit strength", "Adds unit strength tables in various areas"],
tra: ["Transport capacity", "Shows the occupied and available transport capacity in the unit menu"],
per: ["Percentual trade", "Extends the trade window by a percentual trade"],
rec: ["Recruiting trade", "Extends the trade window by a recruiting trade"],
cnt: ["Conquests", "Counts the attacks/supports in the conquest window"],
way: ["Troop speed", "Displays improved troop speed in the attack/support window"],
sim: ["Simulator", "Adaptation of the simulator layout & permanent display of the extended modifier box"],
spl: ["Spell box", "Compressed movable & magnetic spell box (position memory)"],
act: ["Activity boxes", "Improved display of trade and troop activity boxes (position memory)"],
pop: ["Favor popup", "Changes the favor popup"],
tsk: ["Taskbar", "Increases the taskbar and minimizes the daily reward window on startup"],
cha: ["Chat", 'Replaced the alliance chat by an world chat. (FlashPlayer required)'],
bbc: ["Defense form", "Extends the bbcode bar by an automatic defense form"],
com: ["Unit Comparison", "Adds unit comparison tables"],
tic: ["Town icons", "Each city receives an icon for the town type (automatic detection)", "Additional icons are available for manual selection"],
til: ["Town list", "Adds the town icons to the town list"],
tim: ["Map", "Sets the town icons on the strategic map"],
wwc: ["Calculator", "Share calculation & resources counter + previous & next buttons on finished world wonders (currently not deactivatable!)"],
wwr: ["Ranking", "Redesigned world wonder rankings"],
wwi: ["Icons", 'Adds world wonder icons on the strategic map'],
con: ["Context menu", 'Swaps "Select town" and "City overview" in the context menu'],
sen: ["Sent units", 'Shows sent units in the attack/support window'],
tov: ["Town overview", 'Replaces the new town overview with the old window style'],
scr: ["Mouse wheel", 'You can change the views with the mouse wheel'],
err: ["Send bug reports automatically", "If you activate this option, you can help identify bugs."],
her: ["Thracian Conquest", "Downsizing of the map of the Thracian conquest."]
},
labels: {
uni: "Units overview",
total: "Total",
available: "Available",
outer: "Outside",
con: "Select town",
// Smileys
std: "Standard",
gre: "Grepolis",
nat: "Nature",
ppl: "People",
oth: "Other",
hal: "Halloween",
xma: "Xmas",
// Defense form
ttl: "Overview: Town defense",
inf: "Town information:",
dev: "Deviation",
det: "Detailed land units",
prm: "Premium bonuses",
sil: "Silver volume",
mov: "Troop movements:",
// WW
leg: "WW Share",
stg: "Stage",
tot: "Total",
// Simulator
str: "Unit strength",
los: "Loss",
mod: "without modificator influence",
// Comparison box
dsc: "Unit comparison",
hck: "Blunt",
prc: "Sharp",
dst: "Distance",
sea: "Sea",
att: "Offensive",
def: "Defensive",
spd: "Speed",
bty: "Booty (resources)",
cap: "Transport capacity",
res: "Costs (resources)",
fav: "Favor",
tim: "Recruiting time (s)",
// Trade
rat: "Resource ratio of an unit type",
shr: "Share of the storage capacity of the target city",
per: "Percentage trade",
// Sent units box
lab: "Sent units",
improved_movement: "Improved troop movement"
},
buttons: {
sav: "Save", ins: "Insert", res: "Reset"
}
},
//////////////////////////////////////////////
// French Translation by eclat49 //
//////////////////////////////////////////////
fr: {
settings: {
dsc: "DIO-Tools offres certains écrans, une boîte de smiley, les options <br>commerciales, des changements à la mise en page et d'autres choses.",
act: "Activation/Désactivation des fonctions:",
prv: "Aperçu des fonctions séparées:"
},
options: {
//bir: ["Compteur de birèmes ", "Totalise l'ensemble des birèmes présentent en villes et les résume. (Remplace la mini carte dans le cadran)"],
ava: ["Présentation des unités", "Indique les unités de toutes les villes."],
sml: ["Smileys", "Rajoutes une boite de smilies à la boite de bbcode"],
str: ["Force unitaire", "Ajoutes des tableaux de force unitaire dans les différentes armes"],
//trd: [ "Commerce", "Ajout d'une option par pourcentage, par troupes pour le commerce, ainsi qu'un affichage des limites pour les festivals" ],
per: ["Commerce de pourcentage", ""],
rec: ["Commerce de recrutement", ""],
cnt: ["Compteur conquête", "Comptabilise le nombre d'attaque et de soutien dans la fenêtre de conquête"],
way: ["Vitesse des troupes ", "Rajoutes le temps de trajet avec le bonus accélération"],
sim: ["Simulateur", "Modification de la présentation du simulateur et affichage permanent des options premium"],
spl: ["Boîte de magie", "Boîte de sort cliquable et positionnable"],
act: ["Boîte d'activité", "Présentation améliorée du commerce et des mouvement de troupes (mémoire de position)"],
pop: ["Popup de faveur", 'Change la popup de faveur'],
tsk: ["Barre de tâches ", "La barre de tâches augmente et minimise le fenêtre de bonus journalier"],
cha: ["Chat", "Remplace le chat de l'alliance à travers un chat monde."],
bbc: ["Formulaire de défense", "Ajout d'un bouton dans la barre BBCode pour un formulaire de défense automatique"],
com: ["Comparaison des unités", "Ajoutes des tableaux de comparaison des unités"],
tic: ["Icônes des villes", "Chaque ville reçoit une icône pour le type de ville (détection automatique)", "Des icônes supplémentaires sont disponibles pour la sélection manuelle"],
til: ["Liste de ville", "Ajoute les icônes de la ville à la liste de la ville"],
tim: ["Carte", "Définit les icônes de la ville sur la carte stratégique"],
wwc: ["Merveille du monde", "Compteur de ressource et calcul d'envoi + bouton précédent et suivant sur les merveilles finies(ne peut être désactivé pour le moment)"],
wwr: ["", ""],
//wwi: [ "Icônes",'Adds world wonder icons on the strategic map' ],
con: ["Menu contextuel", 'Swaps "Sélectionner ville" et "Aperçu de la ville" dans le menu contextuel'],
sen: ["Unités envoyées", 'Affiche unités envoyées dans la fenêtre attaque/support'],
tov: ["Aperçu de ville", "Remplace la nouvelle aperçu de la ville avec l'ancien style de fenêtre"],
scr: ["Molette de la souris", 'Avec la molette de la souris vous pouvez changer les vues'],
err: ["Envoyer des rapports de bogues automatiquement", "Si vous activez cette option, vous pouvez aider à identifier les bugs."]
},
labels: {
uni: "Présentation des unités",
total: "Global",
available: "Disponible",
outer: "Extérieur",
con: "Sélectionner",
// Smileys
std: "Standard",
gre: "Grepolis",
nat: "Nature",
ppl: "Gens",
oth: "Autres",
// Defense form
ttl: "Aperçu: Défense de ville",
inf: "Renseignements sur la ville:",
dev: "Différence",
det: "Unités terrestres détaillées",
prm: "Bonus premium",
sil: "Remplissage de la grotte",
mov: "Mouvements de troupes:",
// WW
leg: "Participation",
stg: "Niveau",
tot: "Total",
// Simulator
str: "Force unitaire",
los: "Pertes",
mod: "sans influence de modificateur",
// Comparison box
dsc: "Comparaison des unités",
hck: "Contond.",
prc: "Blanche",
dst: "Jet",
sea: "Navale",
att: "Attaque",
def: "Défense",
spd: "Vitesse",
bty: "Butin",
cap: "Capacité de transport",
res: "Coût de construction",
fav: "Faveur",
tim: "Temps de construction (s)",
// Trade
rat: "Ratio des ressources d'un type d'unité",
shr: "Part de la capacité de stockage de la ville cible",
per: "Commerce de pourcentage",
// Sent units box
lab: "Envoyée",
improved_movement: "Mouvement des troupes amélioré"
},
buttons: {
sav: "Sauver", ins: "Insertion", res: "Remettre"
}
},
//////////////////////////////////////////////
// Russian Translation by MrBobr //
//////////////////////////////////////////////
ru: {
settings: {
dsc: "DIO-Tools изменяет некоторые окна, добавляет новые смайлы, отчёты,<br>улучшеные варианты торговли и другие функции.",
act: "Включение/выключение функций:",
prv: "Примеры внесённых изменений:"
},
options: {
//bir: ["Счётчик бирем", "Показывает число бирем во всех городах"],
ava: ["Обзор единиц", "Указывает единицы всех городов"], // ?
sml: ["Смайлы", "Добавляет кнопку для вставки смайлов в сообщения"],
str: ["Сила отряда", "Добавляет таблицу общей силы отряда в некоторых окнах"],
//trd: [ "Торговля", "Добавляет маркеры и отправку недостающих ресурсов, необходимых для фестиваля. Инструменты для долевой торговли" ],
per: ["Процент торговля", ""],
rec: ["Рекрутинг торговля", ""],
cnt: ["Завоевания", "Отображение общего числа атак/подкреплений в окне завоевания города"],
way: ["30% ускорение", "Отображает примерное время движения отряда с 30% бонусом"],
sim: ["Симулятор", "Изменение интерфейса симулятора, добавление новых функций"],
spl: ["Заклинания", "Изменяет положение окна заклинаний"],
act: ["Перемещения", "Показывает окна пересылки ресурсов и перемещения войск"],
pop: ["Благосклонность", "Отображение окна с уровнем благосклонности богов"],
tsk: ["Таскбар", "Увеличение ширины таскбара и сворачивание окна ежедневной награды при входе в игру"],
// cha: ["Чат", 'Замена чата игры на irc-чат'],
bbc: ["Форма обороны", "Добавляет кнопку для вставки в сообщение отчёта о городе"], // Beschreibung passt nicht ganz
com: ["Сравнение юнитов", "Добавляет окно сравнения юнитов"],
tic: ["Типы городов", "Каждый город получает значок для городского типа (автоматическое определение)", "Дополнительные иконки доступны для ручного выбора"], // ?
til: ["Список город", "Добавляет значки городские в список города"], // ?
tim: ["Карта", "Устанавливает городские иконки на стратегической карте"], // ?
wwc: ["Чудо света", "Share calculation & resources counter + previous & next buttons on finished world wonders (currently not deactivatable!)"],
wwr: ["", ""],
//wwi: [ "World wonder icons",'Adds world wonder icons on the strategic map' ],
//con: [ "Context menu", 'Swaps "Select town" and "City overview" in the context menu'],
//sen: [ "Sent units", 'Shows sent units in the attack/support window'],
tov: ["Обзор Город", 'Заменяет новый обзор города с старом стиле окна'], // ?
scr: ["Колесо мыши", 'С помощью колеса мыши вы можете изменить взгляды'], // ?
err: ["Отправить сообщения об ошибках автоматически", "Если вы включите эту опцию, вы можете помочь идентифицировать ошибки"]
},
labels: {
uni: "Обзор единиц",
total: "Oбщий",
available: "доступный",
outer: "вне",
con: "выбирать",
// Smileys
std: "",
gre: "",
nat: "",
ppl: "",
oth: "",
// Defense form
ttl: "Обзор: Отчёт о городе",
inf: "Информация о войсках и постройках:",
dev: "Отклонение",
det: "Детальный отчёт",
prm: "Премиум-бонусы",
sil: "Серебро в пещере",
mov: "Перемещения",
// WW
leg: "",
stg: "",
tot: "",
// Simulator
str: "Сила войск",
los: "Потери",
mod: "без учёта заклинаний, бонусов, исследований",
// Comparison box
dsc: "Сравнение юнитов",
hck: "Ударное",
prc: "Колющее",
dst: "Дальнего боя",
sea: "Морские",
att: "Атака",
def: "Защита",
spd: "Скорость",
bty: "Добыча (ресурсы)",
cap: "Вместимость транспортов",
res: "Стоимость (ресурсы)",
fav: "Благосклонность",
tim: "Время найма (с)",
// Trade
rat: "",
shr: "",
per: "",
// Sent units box
lab: "Отправлено",
improved_movement: "Улучшенная перемещение войск"
},
buttons: {
sav: "Сохраниить", ins: "Вставка", res: "Сброс"
}
},
//////////////////////////////////////////////
// Polish Translation by anpu //
//////////////////////////////////////////////
pl: {
settings: {
dsc: "DIO-Tools oferuje (między innymi) poprawione widoki, nowe uśmieszki,<br>opcje handlu i zmiany w wyglądzie.",
act: "Włącz/wyłącz funkcje skryptu:",
prv: "podgląd poszczególnych opcji:"
},
options: {
//bir: ["Licznik birem", "Zlicza i sumuje biremy z miast"],
ava: ["Przegląd jednostek", "Wskazuje jednostki wszystkich miast"], // ?
sml: ["Emotki", "Dodaje dodatkowe (zielone) emotikonki"],
str: ["Siła jednostek", "dodaje tabelki z siłą jednostek w różnych miejscach gry"],
//trd: [ "Handel", "Rozszerza okno handlu o handel procentowy, proporcje surowców wg jednostek, dodaje znaczniki dla festynów" ],
per: ["Handel procentowy", ""],
rec: ["Handel rekrutacyjne", ""],
cnt: ["Podboje", "Zlicza wsparcia/ataki w oknie podboju (tylko własne podboje)"],
way: ["Prędkość wojsk", "Wyświetla dodatkowo czas jednostek dla bonusu przyspieszone ruchy wojsk"],
sim: ["Symulator", "Dostosowanie wyglądu symulatora oraz dodanie szybkich pól wyboru"],
spl: ["Ramka czarów", "Kompaktowa pływająca ramka z czarami (można umieścić w dowolnym miejscu ekranu. Zapamiętuje położenie.)"],
act: ["Ramki aktywności", "Ulepszony podgląd ruchów wojsk i handlu (można umieścić w dowolnym miejscu ekranu. Zapamiętuje położenie.)"],
pop: ["Łaski", "Zmienia wygląd ramki informacyjnej o ilości produkowanych łask"],
tsk: ["Pasek skrótów", "Powiększa pasek skrótów i minimalizuje okienko z bonusem dziennym"],
// cha: ["Czat", 'Zastępuje standardowy Chat chatem IRC'],
bbc: ["Raportów obronnych", "Rozszerza pasek skrótów BBcode o generator raportów obronnych"],
com: ["Porównianie", "Dodaje tabelki z porównaniem jednostek"],
tic: ["Ikony miasta", "Każde miasto otrzyma ikonę typu miasta (automatyczne wykrywanie)", "Dodatkowe ikony są dostępne dla ręcznego wyboru"], // ?
til: ["Lista miasto", "Dodaje ikony miasta do listy miasta"], // ?
tim: ["Mapa", "Zestawy ikon miasta na mapie strategicznej"], // ?
wwc: ["Cuda Świata", "Liczy udział w budowie oraz ilość wysłanych surowców na budowę Cudu Świata oraz dodaje przyciski do szybkiego przełączania między cudami (obecnie nie możliwe do wyłączenia)"],
wwr: ["", ""],
//wwi: [ "World wonder icons",'Adds world wonder icons on the strategic map' ],
con: ["menu kontekstowe", 'Zamiemia miejcami przycisk "wybierz miasto" z przyciskiem "podgląd miasta" po kliknięciu miasta na mapie'],
sen: ["Wysłane jednostki", 'Pokaż wysłane jednostki w oknie wysyłania ataków/wsparć'],
tov: ["Podgląd miasta", 'Zastępuje nowy podgląd miasta starym'],
scr: ["Zoom", 'Możesz zmienić poziom przybliżenia mapy kółkiem myszy'],
err: ["Automatycznie wysyłać raporty o błędach", "Jeśli włączysz tę opcję, możesz pomóc zidentyfikować błędy"]
},
labels: {
uni: "Przegląd jednostek",
total: "Ogólny",
available: "Dostępny",
outer: "Na zewnątrz",
con: "Wybierz miasto",
// Smileys
std: "Standard" /* "Standardowe" */,
gre: "Grepolis",
nat: "Przyroda",
ppl: "Ludzie",
oth: "Inne",
// Defense form
ttl: "Podgląd: Obrona miasta",
inf: "Informacje o mieście:",
dev: "Ochyłka",
det: "jednostki lądowe",
prm: "opcje Premium",
sil: "Ilość srebra",
mov: "Ruchy wojsk",
// WW
leg: "Udział w Cudzie",
stg: "Poziom",
tot: "Łącznie",
// Simulator
str: "Siła jednostek",
los: "Straty",
mod: "bez modyfikatorów",
// Comparison box
dsc: "Porównianie jednostek",
hck: "Obuchowa",
prc: "Tnąca",
dst: "Dystansowa",
sea: "Morskie",
att: "Offensywne",
def: "Defensywne",
spd: "Prędkość",
bty: "Łup (surowce)",
cap: "Pojemność transportu",
res: "Koszta (surowce)",
fav: "Łaski",
tim: "Czas rekrutacji (s)",
// Trade
rat: "Stosunek surowców dla wybranej jednostki",
shr: "procent zapełnienia magazynu w docelowym mieście",
per: "Handel procentowy",
// Sent units box
lab: "Wysłane jednostki",
improved_movement: "Przyspieszone ruchy wojsk"
},
buttons: {
sav: "Zapisz", ins: "Wstaw", res: "Anuluj"
}
},
//////////////////////////////////////////////
// Spanish Translation by Juana de Castilla //
//////////////////////////////////////////////
es: {
settings: {