Repository navigation
Expand file tree
/
Copy pathInfoPanel.lua
More file actions
1877 lines (1808 loc) · 90 KB
/
Copy pathInfoPanel.lua
File metadata and controls
1877 lines (1808 loc) · 90 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
InfoPanel={}
local version=1.63
local lang=GetCVar("language.2")
local fs=7.2
ZO_CreateStringId("SI_BINDING_NAME_IP_TIMER_START", "Start timer")
ZO_CreateStringId("SI_BINDING_NAME_IP_TIMER_STOP", "Stop timer")
local icon_m_size,icon_p_size1,icon_p_size2,icon_p_size3=24,16,18,26
local ExpDelay,TimeStartExp,TimeLastExp,StartExp,LastExp=60000*5,0,0,0,0
local informedAchievement={}
local ExpIcon={
"/esoui/art/icons/icon_experience.dds",
GetCurrencyKeyboardIcon(CURT_ALLIANCE_POINTS),
"",
GetCurrencyKeyboardIcon(CURT_TELVAR_STONES),
GetCurrencyKeyboardIcon(CURT_SEALS),
GetCurrencyKeyboardIcon(CURT_ARCHIVAL_FORTUNES),
}
local AP={[PROGRESS_REASON_ALLIANCE_POINTS]=true}
local Exp={
[PROGRESS_REASON_COMPLETE_POI]=true,
[PROGRESS_REASON_DARK_ANCHOR_CLOSED]=true,[PROGRESS_REASON_SCRIPTED_EVENT]=true,
[PROGRESS_REASON_DARK_FISSURE_CLOSED]=true,
[PROGRESS_REASON_KILL]=true,
[PROGRESS_REASON_LFG_REWARD]=true,
[PROGRESS_REASON_QUEST]=true,
[PROGRESS_REASON_REWARD]=true,
}
local bg={
"esoui/art/contacts/social_list_bgstrip.dds",
"esoui/art/miscellaneous/spinnerbg_left.dds",
"esoui/art/crafting/gamepad/gp_universalstyle_rowbackground.dds",
"esoui/art/screens_app/gamepad/gp_loading_text_background-1024x256.dds",
}
local IsChest={
["Truhe^f"]=true,
["Coffre"]=true,
["Chest"]=true,
["сундук"]=true,
}
local LastChest={x=0,y=0}
local WayshrineIcon="/esoui/art/tutorial/poi_wayshrine_complete.dds"
local LatestMailZoneNames,FishingText,FishingWidth,MapZoneIndex,ChestsLooted,DungeonStartTime,RaidTargetTime,Settings,init,MinCharge,lastoutput,achievements1,achievements2,bag_space1,bag_space2,bank_space1,bank_space2,stable,smithing,researching,ResearchIcon,research_sec,research_cur,research_max,timer_start,timer_period,timer_w,expps_w,panel_w,panel_last_w,StolenItems,FenceSells,FenceLaunders,WornCondition,GlobalSettings,CharacterSettings,MenuParam,DungeonBossTimer={},"",0,0,0,0,0,nil,false,100,0,0,0,0,0,0,0,true,true,false,"",0,0,0,0,0,0,0,0,0,0,0,0,0,{},{},nil,nil
local FishIcon={
Lake="/esoui/art/icons/crafting_fishing_perch.dds",
Foul="/esoui/art/icons/crafting_slaughterfish.dds",
River="/esoui/art/icons/crafting_fishing_river_betty.dds",
Salt="/esoui/art/icons/crafting_fishing_merringar.dds",
Oily="/esoui/art/icons/crafting_slaughterfish.dds",
Mystic="/esoui/art/icons/crafting_fishing_merringar.dds",
Running="/esoui/art/icons/crafting_fishing_river_betty.dds",
}
local FishingZones={
[3]=471,--Glenumbra
[19]=472,--Stormhaven
[20]=473,--Rivenspire
[41]=477,--Stonefalls
[57]=478,--Deshaan
[58]=486,--Malabal Tor
[92]=475,--Bangkorai
[101]=480,--Eastmarch
[103]=481,--Rift
[104]=474,--Alik'r Desert
[108]=485,--Greenshade
[117]=479,--Shadowfen
[181]=489,--Cyrodiil
[280]=493,--Bleakrock
[347]=490,--Coldhabour
[381]=483,--Auridon
[382]=487,--Reaper's March
[383]=484,--Grahtwood
[534]=491,--Stros M'Kai
[535]=491,--Betnikh
[537]=492,--Khenarthi's Roost
[888]=916,--Carglorn
--DLC
[584]=1186,--Imperial City
[684]=1340,--Wrothgar
[726]=2295,--Murkmire
[816]=1351,--Hew's Bane
[823]=1431,--Gold Coast
[849]=1882,--Vvardenfell
[980]=2027,--Clockwork City
[981]=2027,--Clockwork City Brass Fortress
[1011]=2191,--Summerset
[1027]=2240,--Arteum
[1086]=2412,--Northern Elsweyr
[1133]=2566,--Southern Elsweyr
[1160]=2655,--Greymoor
[1161]=2655,--Greymoor (Blackreach Greymoor Caverns)
[1207]=2861,--Markarth
[1208]=2861,--Markarth (Blackreach Arkthzand Cavern)
[1261]=2981,--Blackwood
[1286]=3144,--Deadlands
[1318]=3269,--High Isle
[1383]=3500,--Firesong
[1413]=3636,--Necrom (Apocrypha)
[1414]=3636,--Necrom (Telvanni Peninsula)
[1443]=3948,--Gold Road
[1502]=4404,--W Solstice
[1502]=4460,--E Solstice
}
local FishingAchievements={[471]=true,[472]=true,[473]=true,[474]=true,[475]=true,[477]=true,[478]=true,[479]=true,[480]=true,[481]=true,[483]=true,[484]=true,[485]=true,[486]=true,[487]=true,[489]=true,[490]=true,[491]=true,[492]=true,[493]=true,[916]=true,[1186]=true,[1339]=true,[1340]=true,[1351]=true,[1431]=true,[1882]=true,[2191]=true,[2240]=true,[2295]=true,[2412]=true,[2566]=true,[2655]=true,[2861]=true,[2981]=true,[3144]=true,[3269]=true,[3500]=true,[3636]=true,[3948]=true,[4404]=true,[4460]=true}
local FishingBugFix={[473]={[3]="River"},[2027]={[8]="Oily"},[472]={[1]="Foul"}}
local function ResetToDefault()
for i,data in pairs(Settings) do GlobalSettings[data.name]=data.value end
if GlobalSettings.ZO_CompassFrame and not (BUI and BUI.Vars and BUI.Vars.ZO_CompassFrame) then
ZO_CompassFrame:ClearAnchors() ZO_CompassFrame:SetAnchor(TOP,GuiRoot,TOP,0,(IsInGamepadPreferredMode() and 58 or 40))
ZO_TargetUnitFramereticleover:ClearAnchors() ZO_TargetUnitFramereticleover:SetAnchor(TOP,ZO_CompassFrame,BOTTOM,0,5)
end
GlobalSettings.ZO_CompassFrame=nil
end
local function MoveFrames()
local function ApplyTemplateHook(obj,name)
local ZO_Func=obj['ApplyStyle']
obj['ApplyStyle']=function(self)
local result=ZO_Func(self)
if GlobalSettings[name] and not (BUI and BUI.Vars and BUI.Vars[name]) then
local frame=_G[name] frame:ClearAnchors() frame:SetAnchor(TOP,GuiRoot,TOP,0,GlobalSettings[name])
end
return result
end
end
if GlobalSettings.ZO_CompassFrame and not (BUI and BUI.Vars and BUI.Vars.ZO_CompassFrame) then
ZO_CompassFrame:ClearAnchors() ZO_CompassFrame:SetAnchor(TOP,GuiRoot,TOP,0,GlobalSettings.ZO_CompassFrame)
ApplyTemplateHook(COMPASS_FRAME,'ZO_CompassFrame')
ZO_TargetUnitFramereticleover:ClearAnchors() ZO_TargetUnitFramereticleover:SetAnchor(TOP,ZO_CompassFrame,BOTTOM,0,5)
end
end
local function CenterInfoPanel()
ZO_PerformanceMeters:ClearAnchors() ZO_PerformanceMeters:SetAnchor(TOP,nil,TOP,0,-20) ZO_PerformanceMeters_OnMoveStop()
GlobalSettings.ZO_CompassFrame=70
MoveFrames()
end
Settings={
[1]={name="Settings",value=true,header=true},
[2]={name="Memory",value=false,icon="/esoui/art/ava/overview_icon_underdog_score.dds"}, --esoui/art/tutorial/gamepad/gp_inventory_icon_miscellaneous.dds
[3]={name="Timer",value=true,icon="/esoui/art/icons/justice_stolen_hourglass_001.dds"},
[4]={name="BossTimer",value=false,icon="/esoui/art/icons/poi/poi_groupboss_complete.dds"},
[5]={name="BagSpace",value=1,icon="/esoui/art/tooltips/icon_bag.dds",dropdown=true},
[6]={name="BankSpace",value=3,icon="/esoui/art/icons/mapkey/mapkey_bank.dds",dropdown=true},
[7]={name=33271,value=false,icon="/esoui/art/icons/soulgem_006_filled.dds"},
[8]={name=33265,value=false,icon="/esoui/art/icons/soulgem_006_empty.dds"},
[9]={name=30357,value=false,icon="/esoui/art/icons/lockpick.dds"},
[10]={name=44879,value=false,icon="/esoui/art/lfg/lfg_bonus_crate.dds"},
[11]={name="RealTime",value=true,icon="/esoui/art/hud/gamepad/gp_radialicon_defer_down.dds"}, --esoui/art/icons/justice_stolen_hourglass_001.dds
[12]={name="TamrielTime",value=false,icon="/esoui/art/tutorial/cadwell_indexicon_silver_up.dds"}, --esoui/art/miscellaneous/timer_32.dds
[13]={name="TimeFormat",value=2,icon="/esoui/art/hud/gamepad/gp_radialicon_defer_down.dds",dropdown=true,choices={"12","24"}},
[14]={name="Experience",value=true,character=true,icon="/esoui/art/icons/icon_experience.dds"},
[15]={name="Stable",value=true,icon="/esoui/art/icons/mapkey/mapkey_stables.dds"},
[16]={name="Smithing",value=true,icon="/esoui/art/icons/mapkey/mapkey_crafting.dds"},
[17]={name="AP",value=false,icon=GetCurrencyKeyboardIcon(CURT_ALLIANCE_POINTS)},
[18]={name="Gold",value=false,icon=GetCurrencyKeyboardIcon(CURT_MONEY)},
[19]={name="Telvar",value=false,icon=GetCurrencyKeyboardIcon(CURT_TELVAR_STONES)},
[20]={name="ImperialFragments",value=false,icon=GetCurrencyKeyboardIcon(CURT_IMPERIAL_FRAGMENTS)},
[21]={name="Vouchers",value=false,icon=GetCurrencyKeyboardIcon(CURT_WRIT_VOUCHERS)},
[22]={name="Transmutation",value=false,icon=GetCurrencyKeyboardIcon(CURT_CHAOTIC_CREATIA)},
[23]={name="UndauntedKeys",value=false,icon=GetCurrencyKeyboardIcon(CURT_UNDAUNTED_KEYS)},
[24]={name="TradeBars",value=false,icon=GetCurrencyKeyboardIcon(CURT_TRADE_BARS)},
[25]={name="TomePoints",value=false,icon=GetCurrencyKeyboardIcon(CURT_TOME_POINTS)},
[26]={name="Seals",value=false,icon=GetCurrencyKeyboardIcon(CURT_SEALS)},
[27]={name="ArchivalFortunes",value=false,icon=GetCurrencyKeyboardIcon(CURT_ARCHIVAL_FORTUNES)},
-- [27]={name="ESOPlus",value=0,icon="/esoui/art/inventory/inventory_quest_tabicon_active.dds",slider=true,maxvalue=120,setfunc=function(days) if days==0 then GlobalSettings.ESOPlus=0 else ESOPlusSubscriber=IsESOPlusSubscriber() local h,m,s=string.match(GetTimeString(),"(%d+):(%d+):(%d+)") GlobalSettings.ESOPlus=GetTimeStamp()-(h*60*60+m*60+s)+(days*24*60*60)+(18*60*60) end end,getfunc=function() return GlobalSettings.ESOPlus==0 and 0 or math.floor((GlobalSettings.ESOPlus-GetTimeStamp())/60/60/24) end},
[28]={name="Fence",value=false,icon="/esoui/art/inventory/gamepad/gp_inventory_icon_stolenitem.dds"},
[29]={name="Apparel",value=true,icon="/esoui/art/inventory/gamepad/gp_inventory_icon_apparel.dds"}, --esoui/art/progression/icon_armorsmith.dds
[30]={name="Weapons",value=true,icon="/esoui/art/progression/icon_weaponsmith.dds"},
[31]={name="Achievements",value=3,icon="/esoui/art/tutorial/gamepad/gp_playermenu_icon_achievements.dds",dropdown=true},
[32]={name="Skyshards",value=false,icon="/esoui/art/tutorial/gamepad/achievement_categoryicon_skyshards.dds"},
[33]={name="ExpPS",value=3,icon="/esoui/art/icons/icon_experience.dds",dropdown=true,choices={"Exp/sec","AP/sec","disabled","Telvar/sec"}},
[34]={name="ReelAlert",value=false,icon="/esoui/art/icons/achievements_indexicon_fishing_up.dds"},
[35]={name="FishingAchivement",value=false,character=true,icon="/esoui/art/icons/crafting_fishing_merringar.dds"},
[36]={name="TrialInfo",value=false,icon="/esoui/art/tutorial/gamepad/gp_lfg_trial.dds"},
[37]={name="DungeonInfo",value=false,icon="/esoui/art/icons/mapkey/mapkey_solotrial.dds"},
[38]={name="DungeonChests",value=true,icon="/InfoPanel/Chest.dds"},
[39]={name="Hirelings",value=false,icon="/esoui/art/mail/gamepad/gp_mailmenu_attachitem.dds"},
[40]={name="Companions",value=true,header=true},
[41]={name="ActiveCompanion",value=false,icon="/esoui/art/companion/gamepad/gp_category_u30_companions.dds"},
[42]={name="CompanionLevel",value=false,icon="/esoui/art/tutorial/gamepad/achievement_categoryicon_champion.dds"},
[43]={name="CompanionRapport",value=false,icon="/esoui/art/hud/loothistory_icon_rapportincrease_generic.dds"},
[44]={name="Settings",value=true,header=true},
[45]={name="Achievement_up",value=false,icon="/esoui/art/tutorial/gamepad/gp_playermenu_icon_achievements.dds"},
[46]={name="APgain",value=true,icon=GetCurrencyKeyboardIcon(CURT_ALLIANCE_POINTS)},
[47]={name="TelvarGain",value=true,icon=GetCurrencyKeyboardIcon(CURT_TELVAR_STONES)},
[48]={name="ExPgain",value=true,icon="/esoui/art/icons/icon_experience.dds"},
[49]={name="Settings",value=true,header=true},
[50]={name="InfoPanel",value=true,icon="/esoui/art/cadwell/check.dds"},
[51]={name="Background",value=10,icon="/esoui/art/crafting/universalstyle_rowbackground.dds",slider=true},
[52]={name="Scale",value=0,icon="/esoui/art/miscellaneous/gamepad/gp_scrollarrow_up.dds",slider=true},
[53]={name="Update",value=5,icon="/esoui/art/help/help_tabicon_feedback_up.dds",slider=true},
[54]={name="Center",button=true,func=function() CenterInfoPanel() end},
[55]={name="Reset",button=true,func=function() ResetToDefault() end,split=true},
[56]={name="AutoRepair",value=true,header=true},
[57]={name="AutoRepairStore",value=false,icon="/esoui/art/treeicons/achievements_indexicon_crafting_up.dds"},
[58]={name="AutoRepairKit",value=false,icon="/esoui/art/treeicons/achievements_indexicon_crafting_up.dds"},
[59]={name="AutoRecharge",value=false,icon="/esoui/art/inventory/inventory_tabicon_craftbag_enchanting_up.dds"},
}
local Localization={
en={
"Panel Options", "",
"Memory used by add-ons", "",
"Timer", "Need to bind keys in CONTROLS menu to use",
"Auto start timer", "Auto start timer on dungeon bosses (loot can be received once in 5 min)",
"Bag space", "",
"Bank space", "",
"Soul gems", "",
"Soul gems (empty)", "",
"Lockpicks", "",
"Repair kits", "Works only with [Grand Repair Kit]",
"Real time", "",
"Tamriel time", "",
"Time format", "",
"Experience", "Experience info (option for current character)",
"Stable info", "This option automatically disables for characters with maxed skills in stable",
"Researches info", "This option automatically disables for characters who knows all traits or does not researching",
"Alliance points", "",
"Gold", "",
"Telvar stones", "",
"Imperial Fragments", "Displays current Imperial Fragments balance",
"Writ vouchers", "",
"Transmutation stones", "",
"Undaunted keys", "",
"Trade Bars", "Displays current Trade Bars balance",
"Tome Points", "",
"Seals", "Displays current Seals balance",
"Archival Fortunes", "Displays current Archival Fortunes balance",
"Stolen/Fence,Launder", "",
"Apparel condition", "",
"Weapons charge", "",
"Achievement points", "",
"Skyshards", "",
-- "ESO Plus", "Displays ESO Plus membership time left. Set days left to enable. To disable set it to 0.",
"Exp/Ap/Telvar per second", "Displays Experience/AP per second value. Couner automatically resets after 5 min.",
"Fishing: Reel alert", "Displays on screen alert when fish is ready to reel.",
"Fishing: Achivement info", "Displays current zone fishing achivement info (option for current character).",
"Trial info", "Adds raid progress time and score.",
"Dungeon info", "Adds dungeon progress time and score.",
"Dungeon chests", "Adds quanity of looted/available chests in current dungeon.",
"Hirelings (beta)", "Time to the next delivery",
"Companions", "",
"Active companion", "Displays the active companion name. Hidden when no companion is active.",
"Combat level", "Displays combat level progress of the active companion. Hidden when no companion is active.",
"Rapport", "Displays rapport of the active companion. Hidden when no companion is active.",
"Chat messages", "",
"Achievement updates", "Post in chat achivement updates",
"AP gain", "Post to chat huge AP ticks",
"Telvar gain", "Post to chat huge Telvar gains",
"Experience gain", "Post to chat huge Experience gains",
"Panel Settings", "",
"Enable Info Panel", "Shows additional info in standard performance panel",
"Background transparency", "Set this option to 0 to disable background",
"Panel Scale", "",
"Update time", "Information update time in seconds",
"Center Panel", "Move Info Panel to the top of the screen and move compass down.",
"Reset", "Reset add-on settings and move frames to it's default positions",
"Auto repair/recharge", "",
"Auto repair in store", "Automatically repairs all your apparel when you open store",
"Auto repair in combat", "Automatically repairs your apparel when it damaged (works only with [Grand Repair Kit])",
"Auto recharge", "Automatically recharges your weapons",
"Chat output", "Post repair/recharge results to chat",
Name="Info Panel",
AutoRepair="Auto Repair",
["choices"]={"total","total/from","disabled"},
["s_repaired"]="repaired for",
["c_repaired"]="Repaired: ",
["c_charged"]=GetString(SI_ITEMTRAITTYPE2)..": ",
["no_kit"]="No repair kits",
["no_gem"]="No soul gems",
["damaged"]=" is damaged",
["discharged"]=" out of charge",
["reel"]="Reel in!",
Lake="Lake",Foul="Foul",River="River",Salt="Salt",Oily="Oily",Mystic="Mystic",Running="Running",
},
ru={
"Информация панели", "",
"Память занимаемая аддонами", "",
"Таймер", "Для использования нужно назначить кнопки в меню CONTROLS",
"Авто запуск таймера", "Авто запуск таймера на босах в данжах (лут можно получить не чаще чем раз в 5 минут)",
"Место в инвентаре", "",
"Место в банке", "",
"Камни душ", "",
"Камни душ (пустые)", "",
"Отмычки", "",
"Рем.комплекты", "Показывает только [Grand Repair Kit]",
"Время", "",
"Время в игре", "",
"Формат времени", "",
"Опыт", "Набранный опыт (включается отдельно для текущего персонажа)",
"Конюшня", "Этот пункт автоматически отключается для персонажей у которых в конюшне уже все изучено",
"Ремесленные исследования", "Этот пункт автоматически отключается для персонажей у которых уже изучены все свойства или ничего не изучается",
"Альянс поинты", "",
"Золото", "",
"Камни Тель-Вар", "",
"Имперские фрагменты", "Показывает текущий баланс имперских фрагментов",
"Ваучеры", "",
"Камни трансмутации", "",
"Ключи неустрашимых", "",
"Торговые слитки", "Показывает текущий баланс торговых слитков",
"Очки фолиантов", "",
"Печати ", "Показывает текущий баланс печатей",
"Ценности из архива", "Показывает текущий баланс ценностей из архива",
"Краденное/можно сдать,отмыть","",
"Состояние доспехов", "",
"Заряд оружия", "",
"Очки Достижений", "",
"Скайшарды", "",
-- "ESO Plus", "Показывает время до окончания ESO Plus. Чтоб включить укажите дни до окончания. Для откючения установите на 0.",
"Exp/Ap/Telvar в секунду", "Показывает набор Experience/AP в секунду. Счётчик автоматически сбрасывается через 5 минут простоя или можно его сбросить щелчком мыши.",
"Рыбалка: Оповещение о поклевке", "Выводит на экран сообщение о том что рыба клюнула и пора \"подсекать\".",
"Рыбалка: Достижения", "Показывает сколько еще раритетной рыбы нужно выловить в текущей локации (включается отдельно для текущего персонажа).",
"Информация Триала", "Добавляет информацию о продолжительности рейда, набранным очкам.",
"Время в данже", "Добавляет информацию о времени нахождения в данже.",
"Сундуки в данже", "Показывает колличество собранных/доступных сундуков в текущем данже.",
"Наемники (beta)", "Время до следующей доставки.",
"Компаньоны", "",
"Активный компаньон", "Показывает имя активного компаньона. Если компаньон не активен, строка скрывается.",
"Боевой уровень", "Показывает боевой уровень и прогресс активного компаньона. Если компаньон не активен, строка скрывается.",
"Уровень отношений", "Показывает уровень отношений активного компаньона. Если компаньон не активен, строка скрывается.",
"Сообщения чата", "",
"Обновления достижений", "Вывод в чат информации о обновлении достижений.",
"Получение AP gain", "При получении большого количества AP выводить сообщение в окно чата.",
"Получение Telvar-ов", "При получении большого количества Telvar-ов выводить сообщение в окно чата.",
"Получение Опыта", "При получении большого количества опыта выводить сообщение в окно чата.",
"Настройки панели", "",
"Включить панель", "Добавляет к стандартной панели производительности дополнительную информацию.",
"Прозрачность фона", "Если выставить на 0 то фон будет полностью отключен.",
"Масштаб панели", "",
"Время обновления", "Частота обновления (секунды).",
"Центрировать", "",
"Сброс настроек", "Настройки бутыт выставлены на значения по умолчанию. Фреймы будут возвращены на их стандартные позиции.",
"Авто починка/зарядка", "",
"Авто починка у торговца", "Автоматически ремонтирует доспехи при диалоге с торговцем.",
"Авто починка в бою", "Автоматически ремонтирует доспехи когда они теряют прочность (используются [Grand Repair Kit]).",
"Авто зарядка", "Автоматически заряжает оружие камнями душ.",
"Вывод в чат", "Вывод в чат информации о починке одежды/зарядке оружия.",
Name="Панель информации",
AutoRepair="Авто починка",
choices={"всего","всего/из","выключено"},
["s_repaired"]="отремонтирована на",
["c_repaired"]="Отремонтировано: ",
["c_charged"]=GetString(SI_ITEMTRAITTYPE2)..": ",
["no_kit"]="Нет рем.комплектов для ремонта",
["no_gem"]="Нет камней душ для зарядки оружия",
["damaged"]=" повреждено",
["discharged"]=" разряжено",
["reel"]="Клюёт!",
Lake="озерная вода",Foul="грязная вода",River="речная вода",Salt="соленая вода",Oily="маслянистая вода",Mystic="мистическая вода",Running="речная вода",
},
de={
"Panel Options", "",
"Speicher verwendet von add-ons", "",
"Timer", "Need to bind keys in CONTROLS menu to use",
"Auto start timer", "Auto start timer on dungeon bosses (loot can be received once in 5 min)",
"Taschenplaetze", "",
"Bankplatz", "",
"Seelensteine", "",
"Seelensteine (leer)", "",
"Dietriche", "",
"Reparatur Kiste", "Works only with [Grand Repair Kit]",
"Echtzeit", "",
"Tamriel Zeit", "",
"Zeitformat", "",
"Erfahrung", "Experience info (option for current character)",
"Stall Informationen", "This option automaticaly disables for characters with maxed skills in stable",
"Forschungsinformation", "This option automaticaly disables for characters who knows all traits or does not researching",
"Allianz Punkte", "",
"Gold", "",
"Telvar Steine", "",
"Imperiale Fragmente", "Zeigt den aktuellen Bestand an imperialen Fragmenten an",
"Wertgutscheine", "",
"Transmutationskristalle", "",
"Undaunted keys", "",
"Trade Bars", "Displays current Trade Bars balance",
"Tome Points", "",
"Siegel", "Zeigt das aktuelle Siegel Guthaben an",
"Archivale Schätze", "Zeigt die aktuellen Archivschätze an",
"Gestohlen/Hehler,schieben", "",
"Zustand der Ruestung", "",
"Weapons charge", "",
"Errungenschaftspunkte", "",
"Skyshards", "",
-- "ESO Plus", "Displays ESO Plus membership time left. Set days left to enable. To disable set it to 0.",
"Exp/Ap/Telvar per second", "Displays Experience/AP per second value. Couner automatically resets after 5 min.",
"Fishing: Reel alert", "Displays on screen alert when fish is ready to reel.",
"Fishing: Achivement info", "Displays current zone fishing achivement info (option for current character).",
"Trial info", "Adds raid progress time and score.",
"Dungeon info", "Adds dungeon progress time and score.",
"Dungeon chests", "Adds quanity of looted/available chests in current dungeon.",
"Hirelings (beta)", "Time to the next delivery",
"Companions", "",
"Active companion", "",
"Gefahrtenstufe", "",
"Beziehung", "",
"Chat Messages", "",
"Leistungsaktualisierungen", "Post in chat achivement updates",
"AP gain", "Post to chat huge AP ticks",
"Telvar gain", "Post to chat huge Telvar gains",
"Experience gain", "Post to chat huge Experience gains",
"Panel Settings", "",
"Informations Panel einschalten", "Shows additional info in standart performance panel",
"Hintergrundtransparenz", "Set this option to 0 to disable background",
"Panel Scale", "",
"Aktualisierungszeit", "Information update time in seconds",
"Zentrum", "",
"Reset", "Reset add-on settings and move frames to it's defaults",
"Auto repair/recharge", "",
"Auto repair in store", "Automaticaly repairs all your apparel when you open store",
"Auto repair in combat", "Automaticaly repairs your apparel when it damaged (works only with [Grand Repair Kit])",
"Auto recharge", "Automaticaly recharges your weapons",
"Chat output", "Post to char repair/recharge results",
"Handelsbarren", "Zeigt den aktuellen Kontostand der Handelsbarren an",
Name="Info Panel",
AutoRepair="Auto Repair",
choices={"gesamt", "gesamt/von", "deaktiviert"},
["s_repaired"]="repariert für",
["c_repaired"]="Repariert: ",
["c_charged"]=GetString(SI_ITEMTRAITTYPE2)..": ",
["no_kit"]="No repair kits",
["no_gem"]="No soul gems",
["damaged"]=" is damaged",
["discharged"]=" entladen",
["reel"]="Reel in!",
Lake="Seewasser",Foul="Brackwasser",River="Flusswasser",Salt="Salzwasser",Oily="Ölwasser",Mystic="Mythenwasser",Running="Fließgewässer",
},
fr={--provided by NOTHAN, lexo1000
"Affichage des infos", "",
"Mémoire occupée par les extensions", "Indique la quantité de mémoire vive utilisée par toutes les extensions activées.",
"Minuterie", "Pour utiliser la minuterie, configurer les raccourcis dans le menu Commandes.",
"Lancement automatique de la minuterie","Lance automatiquement la minuterie lors des Boss de donjon (le pillage peut être effectué toutes les 5 min).",
"Espace d'inventaire", "Indique l'espace restant ou occupé dans l'inventaire.",
"Espace en banque", "Indique l'espace restant ou occupé en banque.",
"Pierres d'âme pleines", "Indique le nombre de Pierres d'âme remplies disponibles dans l'inventaire.",
"Pierres d'âme vides", "Indique le nombre de Pierres d'âme vides disponibles dans l'inventaire.",
"Crochets", "Indique le nombre de crochets disponibles dans l'inventaire.",
"Nécessaires de réparation", "Indique le nombre de Grands nécessaires de réparation présents dans l'inventaire.",
"Heure en temps réel", "Indique l'heure actuelle.",
"Heure en Tamriel", "Indique l'heure dans le monde de Tamriel.",
"Format de l'heure", "",
"Expérience", "Indique le niveau et le pourcentage d'achèvement pour le niveau suivant.",
"Monture", "Indique le temps restant avant de pouvoir à nouveau entraîner la monture. Cette alerte ne s'affiche plus lorsque la compétence de monture atteint son niveau maximal.",
"Recherche", "Indique le nombre de recherches en cours. Ne s'affiche pas lorsque le personnage n'effectue aucune recherche ou a apprit tous les traits.",
"Points d'alliance", "Indique le nombre de Points d'alliance en possession du personnage.",
"Or", "Indique la quantité d'or en possession du personnage.",
"Pierres de Tel Var", "Indique le nombre de Pierres de Tel Var en possession du personnage.",
"Fragments impériaux", "Affiche le solde actuel des fragments impériaux",
"Commandes d'artisanat", "Indique le nombre de commandes d'artisanat en attentes de livraison.",
"Pierre de Transmutation", "Indique le nombre de Pierres de transmutation en possession du personnage",
"Undaunted keys", "",
"Trade Bars", "Displays current Trade Bars balance",
"Tome Points", "",
"Sceaux", "Affiche le solde actuel des Sceaux",
"Fortunes archivistiques", "Affiche le solde actuel des Fortunes archivistiques",
"Objets volés/vendus/blanchis","Indique le nombre d'objets volés, vendus et blanchis en possession du personnage.",
"Etat des armures", "Indique le pourcentage de durabilité des armures portées par le personnage.",
"Charges des armes", "Indique le pourcentage de charges restantes sur les armes équipées par le personnage.",
"Succès", "Indique le nombre de succès débloqués.",
"Éclats Célestes", "Indique le nombre d'Éclats célestes débloqués par le personnage.",
--"ESO Plus", "Indique le temps restant en tant que membre ESO+. Sélectionner le temps ou zéro pour arrêter.",
"Exp/Ap/Telvar par seconde", "Indique l'expérience/AP gagné par seconde. Le compteur est réinitialisé toutes les 5 min.",
"Alerte de pêche", "Affiche une notification lorsqu'un poisson est ferré.",
"Succès de pêche", "Indique les succès de pêche de la zone actuelle.",
"Épreuves", "Indique la progression du raid et le score.",
"Infos du donjon", "Indique le temps de progression et le score du donjon.",
"Coffres de donjon", "Indique le nombre de coffres pillés et disponible dans le donjon actuel.",
"Fournisseurs (beta)", "Indique le temps restant avant la prochaine livraison.",
"Compagnons", "",
"Compagnon actif", "",
"Niveau de Combat", "",
"Relation", "",
"Chat messages", "",
"Notification des succès", "Affiche dans la fenêtre de communication les nouveaux succès.",
"Notification de points d'alliance", "Affiche dans la fenêtre de communication les points d'alliance remportés.",
"Notification de Pierres de Tel Var", "Affiche dans la fenêtre de communication les pierres de Tel Var remportées.",
"Notification d'Expérience", "Affiche dans la fenêtre de communication les gains en points d'Expérience importants.",
"Paramètres de la barre", "",
"Activer la barre d'information", "Active l'affichage des informations complémentaires sur la barre de performance par défaut.",
"Niveau de transparence de l'arrière-plan", "Régler à 0 pour cacher l'arrière-plan.",
"Échelle de de la barre d'information","Détermine la dimension de la barre d'information.",
"Délai de mise à jour", "Détermine le temps des mise à jour des informations en secondes.",
"Centrer la barre", "Positionne la barre d'information au centre de l'écran",
"Réinitialiser", "Réinitialise les réglages de l'extension et déplace la barre à sa position initiale.",
"Répairation/recharge automatique", "",
"Répairation auto chez le marchand", "Répare automatiquement l'armure en parlant à un marchand.",
"Répairation auto en combat", "Répare automatiquement l'armure lorsque celle-ci est endommagée. Ne fonctionne qu'avec un Grand nécessaire de réparation.",
"Rechargement auto des armes", "Recharge automatique les armes.",
"Alertes", "Affiche un message dans la fenêtre de communication lorsqu'une réparation ou une recharge automatique est effectuée.",
Name="Info Panel",
AutoRepair="Auto Repair",
choices={"libre","occupé/total","NON"},
["s_repaired"]="Réparer pour",
["c_repaired"]="Réparé: ",
["c_charged"]=GetString(SI_ITEMTRAITTYPE2)..": ",
["no_kit"]="Auncun Nécessaires de réparation",
["no_gem"]="Aucune Pierre d'âmes",
["damaged"]=" est endommagé",
["discharged"]=" déchargé",
["reel"]="Ferré ",
Lake="Lac",Foul="Sale",River="Rivière",Salt="Mer",Oily="Huileuse",Mystic="Mystique",Running="Courante",
},
zh={--provided by FusRoDah
"面板选项", "",
"插件内存占用", "",
"计时器", "需要在控制菜单中绑定按键才能使用",
"自动启动计时器", "在地牢首领战时自动启动计时器(战利品每5分钟可获取一次)",
"背包空间", "",
"银行空间", "",
"灵魂石", "",
"灵魂石(空)", "",
"开锁器", "",
"修理包", "仅适用于【高级修理包】",
"现实时间", "",
"泰姆瑞尔时间", "",
"时间格式", "",
"经验值", "经验值信息(针对当前角色的选项)",
"马厩信息", "若角色在马厩技能已满,此选项自动禁用",
"研究信息", "若角色已学会所有特性或无正在进行的研究,此选项自动禁用",
"联盟点数", "",
"金币", "",
"泰尔瓦石", "",
"帝国碎片", "显示当前的帝国碎片数量",
"制作凭证", "",
"变形水晶", "",
"无畏者钥匙", "",
"交易条", "显示当前的交易条数量",
"古籍点数", "",
"封印", "显示当前的封印数量",
"档案财富", "显示当前的档案财富数量",
"偷窃/销赃,洗白", "",
"装备耐久度", "",
"武器充能", "",
"成就点数", "",
"天空碎片", "",
-- "ESO Plus会员", "显示ESO Plus会员剩余时间。设置剩余天数以启用,设为0禁用。",
"每秒经验/AP/泰尔瓦", "显示每秒获得的经验/AP值。计数器每5分钟自动重置。",
"钓鱼: 收线提醒", "当鱼上钩可收线时在屏幕上显示提醒。",
"钓鱼: 成就信息", "显示当前区域的钓鱼成就信息(针对当前角色的选项)。",
"试炼信息", "增加团队副本的进度时间和得分。",
"地牢信息", "增加地牢的进度时间和得分。",
"地牢宝箱", "增加当前地牢中已拾取/可用宝箱的数量。",
"随从 (beta)", "距离下次送达的时间",
"同伴", "",
"当前同伴", "显示当前激活的同伴名称。无激活同伴时隐藏。",
"战斗等级", "显示当前激活同伴的战斗等级进度。无激活同伴时隐藏。",
"好感度", "显示当前激活同伴的好感度。无激活同伴时隐藏。",
"聊天消息", "",
"成就更新", "在聊天频道发布成就更新",
"AP获得", "在聊天频道发布大量AP获得",
"泰尔瓦获得", "在聊天频道发布大量泰尔瓦获得",
"经验获得", "在聊天频道发布大量经验获得",
"面板设置", "",
"启用信息面板", "在标准性能面板中显示额外信息",
"背景透明度", "将此选项设为0以禁用背景",
"面板缩放", "",
"更新间隔", "信息更新间隔(秒)",
"居中面板", "将信息面板移动到屏幕顶部,并将罗盘下移。",
"重置", "重置插件设置并将框架移回默认位置",
"自动修理/充能", "",
"商店自动修理", "打开商店时自动修理所有装备",
"战斗中自动修理", "装备损坏时自动修理(仅适用于【高级修理包】)",
"自动充能", "自动为武器充能",
"聊天输出", "在聊天频道发布修理/充能结果",
Name="信息面板",
AutoRepair="自动修理",
["choices"]={"总计","总计/来自","禁用"},
["s_repaired"]="修理花费",
["c_repaired"]="已修理: ",
["c_charged"]=GetString(SI_ITEMTRAITTYPE2)..": ",
["no_kit"]="没有修理包",
["no_gem"]="没有灵魂石",
["damaged"]=" 已损坏",
["discharged"]=" 充能耗尽",
["reel"]="收线!",
Lake="湖泊",Foul="污水",River="河流",Salt="海水",Oily="油污",Mystic="神秘",Running="流水",
},
}
local Items={
[30357]={icon="/esoui/art/icons/lockpick.dds"}, --Lockpick
[33265]={icon="/esoui/art/icons/soulgem_006_empty.dds"}, --Soul gemm (empty)
[33271]={icon="/esoui/art/icons/soulgem_006_filled.dds"}, --Soul gemm
[44879]={icon="/esoui/art/lfg/lfg_bonus_crate.dds"}, --Repairkit
}
local ResearchIcons={
[CRAFTING_TYPE_WOODWORKING]="/esoui/art/icons/mapkey/mapkey_woodworker.dds",
[CRAFTING_TYPE_BLACKSMITHING]="/esoui/art/icons/mapkey/mapkey_smithy.dds",
[CRAFTING_TYPE_CLOTHIER]="/esoui/art/icons/servicemappins/servicepin_outfitter.dds",
[CRAFTING_TYPE_JEWELRYCRAFTING]="/esoui/art/crafting/gamepad/gp_jewelry_tabicon_icon.dds", --"/esoui/art/tutorial/gamepad/gp_tooltip_itemslot_neck.dds",
}
local repair_slots ={EQUIP_SLOT_OFF_HAND,EQUIP_SLOT_BACKUP_OFF,EQUIP_SLOT_HEAD,EQUIP_SLOT_SHOULDERS,EQUIP_SLOT_CHEST,EQUIP_SLOT_WAIST,EQUIP_SLOT_LEGS,EQUIP_SLOT_HAND,EQUIP_SLOT_FEET}
local recharge_slots ={EQUIP_SLOT_MAIN_HAND,EQUIP_SLOT_OFF_HAND,EQUIP_SLOT_BACKUP_MAIN,EQUIP_SLOT_BACKUP_OFF}
local kit_id =44879
local gem_id =33271
local minPercent =3
local slot_name={
[EQUIP_SLOT_MAIN_HAND] =GetString(SI_EQUIPTYPE14),
[EQUIP_SLOT_OFF_HAND] =GetString(SI_EQUIPTYPE7),
[EQUIP_SLOT_BACKUP_MAIN] =GetString(SI_EQUIPSLOT20),
[EQUIP_SLOT_BACKUP_OFF] =GetString(SI_EQUIPSLOT21),
[EQUIP_SLOT_HEAD] =GetString(SI_EQUIPTYPE1),
[EQUIP_SLOT_SHOULDERS] =GetString(SI_EQUIPTYPE4),
[EQUIP_SLOT_CHEST] =GetString(SI_EQUIPTYPE3),
[EQUIP_SLOT_WAIST] =GetString(SI_EQUIPTYPE8),
[EQUIP_SLOT_LEGS] =GetString(SI_EQUIPTYPE9),
[EQUIP_SLOT_HAND] =GetString(SI_EQUIPTYPE13),
[EQUIP_SLOT_FEET] =GetString(SI_EQUIPTYPE10)
}
if not Localization[lang] then lang="en" end
local function Menu_Init()
local BanditsMenu=BUI and BUI.InternalMenu
if not BanditsMenu and not LibAddonMenu2 then return end
local Panel={
type="panel",
name=(BanditsMenu and "14. |t32:32:/esoui/art/tutorial/inventory_tabicon_misc_up.dds|t" or "")..Localization[lang].Name,
displayName=(BanditsMenu and "14. " or "").."|c4B8BFE"..Localization[lang].Name.."|r",
author="|c4B8BFEHoft|r",
version=tostring(version),
}
local MenuOptions={}
local index=0
for i,data in pairs(Settings) do
index=index+1
local _param=data.name
local dropdown_value=Localization[lang].choices[data.value]
local _name=(data.icon) and zo_iconFormat(data.icon,icon_m_size,icon_m_size).." "..Localization[lang][i*2-1] or Localization[lang][i*2-1]
local _tip=Localization[lang][i*2]
if data.header then
MenuOptions[index]=
{ type ="header",
name =_name,
width ="full"
}
elseif data.slider then
local maxvalue=data.maxvalue and data.maxvalue or 10
MenuOptions[index]=
{ type ="slider",
name =_name,
tooltip =_tip,
min =0,
max =maxvalue,
step =1,
getFunc =function()
if data.getfunc then
local function func() return data.getfunc() end
return func()
else
return GlobalSettings[_param]
end
end,
setFunc =function(value)
MenuParam=_param
GlobalSettings[_param]=value
if data.setfunc then local function func(value) data.setfunc(value) end func(value) end
InfoPanel.Initialize() InfoPanel.Update()
end,
default =data.value,
}
elseif data.dropdown then
local choices =data.choices or Localization[lang].choices
local values={} for i in ipairs(choices) do table.insert(values,i) end
MenuOptions[index]=
{ type ="dropdown",
name =_name,
tooltip =_tip,
choices =choices,
choicesValues=values,
getFunc =function() return GlobalSettings[_param] end,
setFunc =function(value) MenuParam=_param GlobalSettings[_param]=value InfoPanel.Initialize() InfoPanel.Update() end,
default =dropdown_value,
}
elseif data.button then
MenuOptions[index]=
{ type ="button",
name =_name,
tooltip =_tip,
width ="half",
func =data.func,
}
else
MenuOptions[index]=
{ type ="checkbox",
name =_name,
tooltip =_tip,
getFunc =function() if data.character then return CharacterSettings[_param] else return GlobalSettings[_param] end end,
setFunc =function(value)
MenuParam=_param
if data.character then CharacterSettings[_param]=value else GlobalSettings[_param]=value end
InfoPanel.Initialize() InfoPanel.Update()
end,
default =data.value,
}
end
if BanditsMenu and data.split then
BUI.Menu.RegisterPanel("InfoPanel_Menu_2",Panel)
BUI.Menu.RegisterOptions("InfoPanel_Menu_2", MenuOptions)
MenuOptions={}
index=0
Panel={
type="panel",
name="15. |t32:32:/esoui/art/tutorial/vendor_tabicon_repair_up.dds|t"..Localization[lang].AutoRepair,
author="|c4B8BFEHoft|r",
version=tostring(version),
}
end
end
if BanditsMenu then
BUI.Menu.RegisterPanel("InfoPanel_Menu_1",Panel)
BUI.Menu.RegisterOptions("InfoPanel_Menu_1", MenuOptions)
else
LibAddonMenu2:RegisterAddonPanel("InfoPanel_Menu_1",Panel)
LibAddonMenu2:RegisterOptionControls("InfoPanel_Menu_1", MenuOptions)
end
end
local function format_time(h,m)
local meridien=""
if GlobalSettings.TimeFormat==1 then
meridien=h<12 and "am" or "pm"
h=h%12
end
if string.len(tostring(h))<2 then h="0"..h end
if string.len(tostring(m))<2 then m="0"..m end
return h..":"..m..meridien
end
local function format_timer(t,sec)
local d="" if t>86400 then d=math.floor(t/86400) t=t-d*86400 d=d.."d" end
local h=(d=="") and "" or "00" if t>3600 then h=math.floor(t/3600) t=t-h*3600 if string.len(tostring(h))<2 then h="0"..h end end
if d~="" then return d..h.."h" end
local m=(h=="") and "" or "00" if t>60 then m=math.floor(t/60) t=t-m*60 if string.len(tostring(m))<2 then m="0"..m end end
local s="" if sec then s=math.floor(t*10)/10 if math.floor(s)==s then s=s..".0" end if string.len(tostring(s))<4 then s="0"..s end if m~="" then s="."..s end end
if h=="" and s=="" then if m~="" then m=m.."m" else m="00" end end
return d..h..(h~="" and ":" or "")..m..s
end
local function format_number(n)
n=tostring(n)
local k=1
-- local l=string.len(n) return (l>3) and string.sub(n,1,l-3).."."..string.sub(n,l-2,l) or n
while k~=0 do n,k=string.gsub(n,"^(-?%d+)(%d%d%d)", '%1\'%2') end
return n
end
local function UI_Init()
if GlobalSettings.InfoPanel then
ZO_PerformanceMeters:SetWidth(215)
ZO_PerformanceMetersBg:SetWidth(345)
-- ZO_PerformanceMetersBg:ClearAnchors()
-- ZO_PerformanceMetersBg:SetAnchor(LEFT,ZO_PerformanceMeters,LEFT,-85,0)
ZO_PerformanceMetersFramerateMeter:ClearAnchors()
ZO_PerformanceMetersFramerateMeter:SetAnchor(LEFT,ZO_PerformanceMeters,LEFT,10,0)
ZO_PerformanceMetersLatencyMeter:ClearAnchors()
ZO_PerformanceMetersLatencyMeter:SetAnchor(LEFT,ZO_PerformanceMetersFramerateMeter,RIGHT,-3,0)
ZO_PerformanceMetersBg:SetAlpha(GlobalSettings.Background/10)
-- ZO_PerformanceMetersBg:SetHidden(true)
PERFORMANCE_METER_FRAGMENT:SetHiddenForReason("AnyOn",false,0,0)
else
ZO_PerformanceMeters:SetWidth(173)
ZO_PerformanceMetersBg:SetWidth(256)
ZO_PerformanceMetersBg:ClearAnchors()
ZO_PerformanceMetersBg:SetAnchor(CENTER,ZO_PerformanceMeters,CENTER,0,0)
ZO_PerformanceMetersFramerateMeter:ClearAnchors()
ZO_PerformanceMetersFramerateMeter:SetAnchor(RIGHT,ZO_PerformanceMeters,CENTER,0,0)
ZO_PerformanceMetersLatencyMeter:ClearAnchors()
ZO_PerformanceMetersLatencyMeter:SetAnchor(LEFT,ZO_PerformanceMeters,CENTER,0,0)
if UI_InfoPanel_Timer then UI_InfoPanel_Timer:SetHidden(true) end
if UI_InfoPanel_Period then UI_InfoPanel_Period:SetHidden(true) end
if UI_InfoPanel_Info then UI_InfoPanel_Info:SetHidden(true) end
if UI_InfoPanel_ExpPS then UI_InfoPanel_ExpPS:SetHidden(true) end
local anyOn=GetSetting_Bool(SETTING_TYPE_UI, UI_SETTING_SHOW_FRAMERATE) or GetSetting_Bool(SETTING_TYPE_UI, UI_SETTING_SHOW_LATENCY)
PERFORMANCE_METER_FRAGMENT:SetHiddenForReason("AnyOn",not anyOn,0,0)
return
end
local control=_G["UI_InfoPanel_Timer"]
if not control then control=WINDOW_MANAGER:CreateControl("UI_InfoPanel_Timer", ZO_PerformanceMeters, CT_LABEL) end
control:SetDimensions(0,40)
control:ClearAnchors()
control:SetAnchor(LEFT,ZO_PerformanceMetersLatencyMeter,RIGHT,-10,0)
control:SetFont("ZoFontWinT1")
control:SetColor(.8,.8,.7,1)
control:SetHorizontalAlignment(1)
control:SetVerticalAlignment(1)
control:SetText("")
control:SetHidden(false)
control=_G["UI_InfoPanel_Period"]
if not control then control=WINDOW_MANAGER:CreateControl("UI_InfoPanel_Period", ZO_PerformanceMeters, CT_LABEL) end
control:SetDimensions(55,30)
control:ClearAnchors()
control:SetAnchor(TOP,UI_InfoPanel_Timer,BOTTOM,0,-16)
control:SetFont("ZoFontWinT1")
control:SetColor(1,1,.86,1)
control:SetHorizontalAlignment(1)
control:SetVerticalAlignment(1)
control:SetText("")
control:SetHidden(false)
control=_G["UI_InfoPanel_Info"]
if not control then control=WINDOW_MANAGER:CreateControl("UI_InfoPanel_Info", ZO_PerformanceMeters, CT_LABEL) end
control:SetDimensions(1000,40)
control:ClearAnchors()
control:SetAnchor(LEFT,UI_InfoPanel_Timer,RIGHT,0,0)
control:SetFont("ZoFontWinT2")
control:SetColor(1,1,1,1)
control:SetHorizontalAlignment(0)
control:SetVerticalAlignment(1)
control:SetText("")
control:SetHidden(false)
control=_G["UI_InfoPanel_ExpPS"]
if not control then control=WINDOW_MANAGER:CreateControl("UI_InfoPanel_ExpPS", ZO_PerformanceMeters, CT_CONTROL) end
control:SetDimensions(icon_p_size1+55,40)
control:ClearAnchors()
control:SetAnchor(LEFT,UI_InfoPanel_Info,RIGHT,0,0)
control:SetHidden(GlobalSettings.ExpPS==3)
control:SetMouseEnabled(true)
control:SetHandler("OnMouseDown", function(self,button) if button==2 then TimeLastExp=0 UI_InfoPanel_ExpPS_Text:SetText("0/s") end end)
control:SetHandler("OnMouseEnter", function(self) ZO_Tooltips_ShowTextTooltip(self, BOTTOMRIGHT, "RMB: Clear counter") end)
control:SetHandler("OnMouseExit", function() ZO_Tooltips_HideTextTooltip(self) end)
expps_w=GlobalSettings.ExpPS~=3 and icon_p_size3+55 or 0
panel_last_w=0
control=_G["UI_InfoPanel_ExpPS_Icon"]
if not control then control=WINDOW_MANAGER:CreateControl("UI_InfoPanel_ExpPS_Icon", UI_InfoPanel_ExpPS, CT_TEXTURE) end
control:SetDimensions(icon_p_size1,icon_p_size1)
control:ClearAnchors()
control:SetAnchor(LEFT,UI_InfoPanel_Info,RIGHT,0,0)
control:SetTexture(ExpIcon[GlobalSettings.ExpPS])
control=_G["UI_InfoPanel_ExpPS_Text"]
if not control then control=WINDOW_MANAGER:CreateControl("UI_InfoPanel_ExpPS_Text", UI_InfoPanel_ExpPS, CT_LABEL) end
control:SetDimensions(50,40)
control:ClearAnchors()
control:SetAnchor(RIGHT,UI_InfoPanel_ExpPS,RIGHT,0,0)
control:SetFont("ZoFontWinT2")
control:SetColor(.8,.8,.7,1)
control:SetHorizontalAlignment(0)
control:SetVerticalAlignment(1)
control:SetText("0/s")
ZO_PerformanceMeters:SetScale((GlobalSettings.Scale+10)/10)
end
local function GetAchievementPoints()
local total,available=GetEarnedAchievementPoints(),GetTotalAchievementPoints()
local pct=math.floor(total/available*100)
achievements1=zo_iconFormat(Settings[31].icon,icon_p_size1,icon_p_size1).." |cCCCCAA"..format_number(total).."("..pct.."%)|r"
achievements2=zo_iconFormat(Settings[31].icon,icon_p_size1,icon_p_size1).." |cCCCCAA"..format_number(total).."("..pct.."%)/"..format_number(available).."|r"
end
local function OnBagpackAdded(bagId, slotIndex, slotData)
if bagId~=BAG_BACKPACK then return end
-- if slotData then d("Added: "..tostring(slotData.name)..", count: "..tostring(slotData.stackCount)..", itemType: "..tostring(slotData.itemType)) end
end
local function OnBagpackRemoved(bagId, slotIndex, slotData)
if bagId~=BAG_BACKPACK then return end
-- if slotData then d("Removed: "..tostring(slotData.name)..", count: "..tostring(slotData.stackCount)..", itemType: "..tostring(slotData.itemType)) end
end
local function OnBackpackChanged(_, bagId, slotId, isNewItem, itemSoundCategory)
if bagId==BAG_BACKPACK and GlobalSettings.BagSpace~=3 then
local used,available=GetNumBagUsedSlots(1),GetBagUseableSize(1)
local color=(used>available-10) and "|cCC2222" or ((used>available-50) and "|cCCCC00" or "|cFFFFFF")
bag_space1=zo_iconFormat(Settings[5].icon,icon_p_size1,icon_p_size1).." "..color..(available-used).."|r"
bag_space2=zo_iconFormat(Settings[5].icon,icon_p_size1,icon_p_size1).." "..color..used.."|cCCCCAA/"..available.."|r"
end
if isNewItem then
--
elseif GlobalSettings.ReelAlert and itemSoundCategory==ITEM_SOUND_CATEGORY_LURE and (bagId==BAG_BACKPACK or bagId==BAG_VIRTUAL) then
local action=GetGameCameraInteractableActionInfo()
if action==GetString(SI_GAMECAMERAACTIONTYPE17) then
if BUI and BUI.OnScreen then
BUI.OnScreen.Notification(12,Localization[lang].reel,SOUNDS.BOOK_ACQUIRED)
else
local messageParams=CENTER_SCREEN_ANNOUNCE:CreateMessageParams(CSA_CATEGORY_MAJOR_TEXT, SOUNDS.BOOK_ACQUIRED)
messageParams:SetText("|t32:32:/esoui/art/tutorial/gamepad/achievement_categoryicon_fishing.dds|t "..Localization[lang].reel)
CENTER_SCREEN_ANNOUNCE:AddMessageWithParams(messageParams)
end
end
end
end
-- /script zo_callLater(function()local _,name=GetGameCameraInteractableActionInfo()StartChatInput(name)end,1000)
local function BankSpace()
local used,available=GetNumBagUsedSlots(BAG_BANK),GetBagUseableSize(BAG_BANK)
if IsESOPlusSubscriber() then
used=used+GetNumBagUsedSlots(BAG_SUBSCRIBER_BANK)
available=available+GetBagUseableSize(BAG_SUBSCRIBER_BANK)
end
local color=(used>available-10) and "|cCC2222" or ((used>available-50) and "|cCCCC00" or "|cCCCCAA")
bank_space1=zo_iconFormat(Settings[6].icon,icon_p_size1,icon_p_size1).." "..color..(available-used).."|r"
bank_space2=zo_iconFormat(Settings[6].icon,icon_p_size1,icon_p_size1).." "..color..used.."|cCCCCAA/"..available.."|r"
end
local function ScanInventory()
local bag=SHARED_INVENTORY:GenerateFullSlotData(nil,BAG_BACKPACK)
StolenItems=0
for _, data in pairs(bag) do
if GlobalSettings.Fence then
if IsItemStolen(data.bagId,data.slotIndex) then StolenItems=StolenItems+GetSlotStackSize(data.bagId,data.slotIndex) end
end
for id in pairs(Items) do
if id==GetItemId(data.bagId,data.slotIndex) then Items[id].slotIndex=data.slotIndex end
end
end
end
local function GetItemCount(id)
local count=(Items[id].slotIndex) and GetItemTotalCount(BAG_BACKPACK,Items[id].slotIndex) or 0
local color=(count<=5) and "|cCC2222" or "|cFFFFFF"
return zo_iconFormat(Items[id].icon,icon_p_size1,icon_p_size1).." "..color..count.."|r ", string.len(tostring(count))
end
local function GetFenceInfo()
local totalLaunders,laundersUsed,resetTimeSeconds=GetFenceLaunderTransactionInfo()
local totalSells,sellsUsed,resetTimeSeconds=GetFenceSellTransactionInfo()
FenceSells=totalSells-sellsUsed
FenceLaunders=totalLaunders-laundersUsed
end
-- /script d(AreAnyItemsStolen(BAG_BACKPACK))
local function GetRT()
local t=math.floor(GetFormattedTime()/100)
local h=math.floor(t/100)
local m=t%100
local tstring=format_time(h,m)
return zo_iconFormat(Settings[11].icon,icon_p_size1,icon_p_size1).."|cCCCCAA"..tstring.."|r", string.len(tstring)
end
local function GetTT()
local day,night=20955,7200
local tSinceMidnight=GetTimeStamp()-(1398044126-night/2-(day-night)/2)
local daysPast=day*math.floor(tSinceMidnight/day)
local s=tSinceMidnight-daysPast
local t=24*s/day
local h=math.floor(t) t=(t-h)*60
local m=math.floor(t) t=(t-m)*60
local icon=(h>=4 and h<22) and zo_iconFormat("/esoui/art/tutorial/cadwell_indexicon_gold_up.dds",icon_p_size3,icon_p_size3) or zo_iconFormat("/esoui/art/tutorial/cadwell_indexicon_silver_up.dds",icon_p_size3,icon_p_size3)
local tstring=format_time(h,m)
return icon.."".."|cCCCCAA"..tstring.."|r", string.len(tstring)
end
local function GetXP()
local icon="/esoui/art/icons/icon_experience.dds"
local color={1,1,1,1}
local current, effectiveMax
local level=GetUnitLevel('player')
if level>=50 then
icon="/esoui/art/champion/champion_icon_32.dds"
color={.8,.9,0,1}
level=GetPlayerChampionPointsEarned()
--[[ <100034
local poolSize=0
local rank=GetChampionPointAttributeForRank(level+1)
if (rank==1) then icon="/esoui/art/champion/champion_points_health_icon-hud-32.dds" color={0.6,0.2,0,1}
elseif (rank==2) then icon="/esoui/art/champion/champion_points_magicka_icon-hud-32.dds" color={0,0.3,0.8,1}
else icon="/esoui/art/champion/champion_points_stamina_icon-hud-32.dds" color={0.3,0.6,0.1,1} end
--]]
effectiveMax=GetNumChampionXPInChampionPoint(level) current=GetPlayerChampionXP() --poolSize=self:GetEnlightenedPool()
else
effectiveMax=GetUnitXPMax('player') current=GetUnitXP('player')
end
pct=math.floor(current/effectiveMax*100) --Enlightpct=math.floor(current/poolSize*100)
return zo_iconFormat(icon,icon_p_size1,icon_p_size1).." "..level.." |cCCCCAA"..pct.."%|r", 7
end
local function GetStable()
local t=GetTimeUntilCanBeTrained() t=t/1000
local color=(t<=180) and "|cCC2222" or "|cCCCCAA"
local tstring=format_timer(t)
return zo_iconFormat(Settings[15].icon,icon_p_size1,icon_p_size1).." "..color..tstring.."|r", string.len(tstring)
end
-- /script d("|t26:26:/esoui/art/icons/icon_experience.dds|t abcde")
local function GetCurency(currencyType)
local location = (currencyType == CURT_CHAOTIC_CREATIA or
currencyType == CURT_UNDAUNTED_KEYS or
currencyType == CURT_IMPERIAL_FRAGMENTS or
currencyType == CURT_SEALS or
currencyType == CURT_ARCHIVAL_FORTUNES or
currencyType == CURT_TRADE_BARS or
currencyType == CURT_TOME_POINTS) and CURRENCY_LOCATION_ACCOUNT or CURRENCY_LOCATION_CHARACTER
local amount = GetCurrencyAmount(currencyType, location)
local icon = GetCurrencyKeyboardIcon(currencyType)
local color
if currencyType == CURT_MONEY and amount < 1000 then
color = "|cCC2222"
elseif (currencyType == CURT_SEALS or currencyType == CURT_ARCHIVAL_FORTUNES) and amount == 0 then
color = "|cCC2222"
else
color = "|cFFFFFF"
end
return zo_iconFormat(icon, icon_p_size1, icon_p_size1).." "..color..format_number(amount).."|r",
string.len(tostring(amount))
end