├── .gitignore
├── img
├── shovel.tga
├── con1024_1.tga
├── con1024_2.tga
├── con1024_3.tga
├── line1024_1.tga
├── line1024_2.tga
└── line1024_3.tga
├── LICENSE.txt
├── .github
└── workflows
│ └── release.yml
├── Arh.toc
├── Arh_Cata.toc
├── Arh_Mists.toc
├── .pkgmeta
├── embeds.xml
├── bindings.xml
├── README.md
├── Arh.xml
├── locale.lua
└── Arh.lua
/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle/
2 | *.iml
3 | .idea/
4 | .vscode/
--------------------------------------------------------------------------------
/img/shovel.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ynazar1/Arh/HEAD/img/shovel.tga
--------------------------------------------------------------------------------
/img/con1024_1.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ynazar1/Arh/HEAD/img/con1024_1.tga
--------------------------------------------------------------------------------
/img/con1024_2.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ynazar1/Arh/HEAD/img/con1024_2.tga
--------------------------------------------------------------------------------
/img/con1024_3.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ynazar1/Arh/HEAD/img/con1024_3.tga
--------------------------------------------------------------------------------
/img/line1024_1.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ynazar1/Arh/HEAD/img/line1024_1.tga
--------------------------------------------------------------------------------
/img/line1024_2.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ynazar1/Arh/HEAD/img/line1024_2.tga
--------------------------------------------------------------------------------
/img/line1024_3.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ynazar1/Arh/HEAD/img/line1024_3.tga
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Original parts of Arh addon Rights are Reserved by their respective authors
2 | With the original authors not responding to requests and seemingly inactive, this puts the licensing into a limbo
3 |
4 | This is for personal, non-commerical, and free use only.
5 |
6 | Updated Parts are under MIT licence as I need to add a license here
7 |
8 | Sounds/Graphics are under fair use from Blizzard assets.
9 |
10 | TL;DR: Don't copy this without giving credit
11 |
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | name: Package and release
2 | on:
3 | push:
4 | branches:
5 | - main
6 | tags:
7 | - '**'
8 | jobs:
9 | release:
10 | runs-on: ubuntu-latest
11 | env:
12 | GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
13 | steps:
14 | - name: Clone project
15 | uses: actions/checkout@v4
16 | with:
17 | fetch-depth: 0
18 | - name: Package and release
19 | uses: BigWigsMods/packager@v2
20 |
--------------------------------------------------------------------------------
/Arh.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 110200, 110205
2 | ## Title: Archaeology Helper |cFF0099FF[FanUpdate]|r
3 | ## Author: Biasha and oscarucb wrote it, fans maintained this
4 | ## Notes: Help you with your excavations with love.
5 | ## Version: 2.0.8-1120
6 | ## DefaultState: Enabled
7 | ## OptionalDeps: GatherMate2, LibDataBroker-1.1, LibDBIcon-1.0
8 | ## X-Embeds: Ace3, LibDataBroker-1.1, LibDBIcon-1.0
9 | ## SavedVariables: Arh_Config
10 | ## LoadManagers: AddonLoader
11 | ## X-LoadOn-Always: delayed
12 | ## IconTexture: Interface\AddOns\Arh\img\shovel.tga
13 |
14 | ## Order Matters
15 | embeds.xml
16 | locale.lua
17 | arh.lua
18 | arh.xml
19 |
--------------------------------------------------------------------------------
/Arh_Cata.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 40402, 40403
2 | ## Title: Archaeology Helper |cFF0099FF[FanUpdate]|r
3 | ## Author: Biasha and oscarucb wrote it, fans maintained this
4 | ## Notes: Help you with your excavations with love.
5 | ## Version: 2.0.8-1115
6 | ## DefaultState: Enabled
7 | ## OptionalDeps: GatherMate2, LibDataBroker-1.1, LibDBIcon-1.0
8 | ## X-Embeds: Ace3, LibDataBroker-1.1, LibDBIcon-1.0
9 | ## SavedVariables: Arh_Config
10 | ## LoadManagers: AddonLoader
11 | ## X-LoadOn-Always: delayed
12 | ## IconTexture: Interface\AddOns\Arh\img\shovel.tga
13 |
14 | ## Order Matters
15 | embeds.xml
16 | locale.lua
17 | arh.lua
18 | arh.xml
19 |
--------------------------------------------------------------------------------
/Arh_Mists.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 50500, 50501
2 | ## Title: Archaeology Helper |cFF0099FF[FanUpdate]|r
3 | ## Author: Biasha and oscarucb wrote it, fans maintained this
4 | ## Notes: Help you with your excavations with love.
5 | ## Version: 2.0.8-1115
6 | ## DefaultState: Enabled
7 | ## OptionalDeps: GatherMate2, LibDataBroker-1.1, LibDBIcon-1.0
8 | ## X-Embeds: Ace3, LibDataBroker-1.1, LibDBIcon-1.0
9 | ## SavedVariables: Arh_Config
10 | ## LoadManagers: AddonLoader
11 | ## X-LoadOn-Always: delayed
12 | ## IconTexture: Interface\AddOns\Arh\img\shovel.tga
13 |
14 | ## Order Matters
15 | embeds.xml
16 | locale.lua
17 | arh.lua
18 | arh.xml
19 |
--------------------------------------------------------------------------------
/.pkgmeta:
--------------------------------------------------------------------------------
1 | package-as: Arh
2 | externals:
3 | libs/AceConfig-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConfig-3.0
4 | libs/AceConsole-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConsole-3.0
5 | libs/AceGUI-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
6 | libs/CallbackHandler-1.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/CallbackHandler-1.0
7 | libs/LibStub: svn://svn.wowace.com/wow/libstub/mainline/tags/1.0
8 | libs/LibDBIcon-1.0: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
9 | libs/LibDataBroker-1.1:
10 | url: http://github.com/tekkub/libdatabroker-1-1.git
11 | tag: latest
--------------------------------------------------------------------------------
/embeds.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/bindings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Arh:ToggleArch()
4 | Arh:ToggleMainFrame()
5 | Arh:ToggleHUD()
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ARH Fan Update
2 |
3 | 
4 |
5 | Updated Arh WoW addon. This is a fan-maintained.
6 |
7 | ### Compatibility
8 | - Works with retail
9 | - Should work with Cataclysm (and up) Classic, make sure to use [Gathermate2-classic](https://www.curseforge.com/wow/addons/gathermate2-classic) with Cataclysm
10 | - Note: I don't play classic so need to rely on user-reported issues.
11 |
12 | [We are on Curseforge!!!](https://www.curseforge.com/wow/addons/arh-fan-update)
13 |
14 | ### Archaeology Helper accelerates your surveying by providing triangulation on a Heads-Up Display (HUD)
15 | - Convenient Survey Button
16 | - Green, yellow, or red button to add new sectors to the HUD and narrow down the position of your fragment
17 | - Mount one of your favorited mounts (or druid flight form) while looking for fragments
18 | - Keybindings and various settings in the addon config GUI
19 | - (Optional) HUD includes GatherMate2 pins showing possible fragment positions, further accelerating the process
20 | - (Optional) Shows Dig Sites on Battlefield Minimap
21 |
22 | ### HUD/Overlay
23 | On the HUD you can also see player arrow in the center and very small red circle that represents survey success range and all colored transparent overlapping areas that were set by you with colored buttons.
24 |
25 | ### Installation (Pick one)
26 | #### Recommended Method:
27 | * Use [Curseforge App](https://www.curseforge.com/download/app) and search for 'Archaeology Helper Fan Update'
28 | * Use [WoWup application](https://wowup.io), then add this repo URL to pull the latest version.
29 | #### Manual Method (not recommended):
30 | ** Do not checkout the code directly, it will not have the packaged libraries **
31 | 1. Get the latest ```Arh-###.zip``` file from the [releases](https://github.com/ynazar1/Arh/releases) section.
32 | 2. Unzip the contents, you'll have the folder named ```Arh``` with files inside
33 | 3. Put it into your ```World of Warcraft\_retail_\Interface\AddOns``` directory
34 |
35 | ### Usage
36 | 1. Go to dig site, Right Click last button (spade) to show HUD and Left Click to cast Survey.
37 | 2. ROTATE YOUR CHAR, BUT DON'T MOVE in the needed direction and press colored button according to Survey result
38 | 3. Move to other location, do same again.
39 | - Recommended to use in conjunction with GatherMate2, which will show all previous or imported dig-points on the HUD. When using GatherMate2 jump onto fragment before gathering! GatherMate2 data accuracy depends on that.
40 | - Minimap zoom buttons and rotation also zoom and rotate the HUD display.
41 |
42 | ### Controls
43 | - Left Click main window to move it
44 | - Right Click main window: opens config
45 | - Left Click on colored button: adds new sector to the HUD
46 | - Right Click on colored button: temporarily hide/show that color
47 | - Arrow button: undo last sector
48 | - Left Click spade: cast Survey
49 | - Right Click spade: show/hide the HUD
50 | - Middle Click spade: open Archaeology window
51 | - Use "/arh" for command line help
52 |
53 |
--------------------------------------------------------------------------------
/Arh.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
14 |
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 |
70 |
81 |
92 |
103 |
116 |
117 |
118 |
119 |
120 |
121 | self:EnableMouse(false)
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 | Arh_ShowTooltip(self)
132 | Arh_HideTooltip(self)
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/locale.lua:
--------------------------------------------------------------------------------
1 | -- my custom locale file - more streamlined than AceLocale and no lib dependency
2 |
3 | -- To help with missing translations please go here:
4 | local url = "http://wow.curseforge.com/addons/arh/localization/"
5 |
6 | local addonName, vars = ...
7 | local Ld, La = {}, {}
8 | local locale = GAME_LOCALE or GetLocale()
9 | if locale == "enGB" then locale = "enUS" end
10 |
11 | vars.L = setmetatable({},{
12 | __index = function(t, s)
13 | if locale ~= "enUS" and Ld[s] and
14 | not La[s] and url and not vars.locale_warning then
15 | vars.locale_warning = true
16 | print(string.format("*** %s needs help translating to your language! (%s)", addonName, locale))
17 | print("*** If you speak English, you can contribute by visiting:")
18 | print("*** "..url)
19 | end
20 | return La[s] or Ld[s] or rawget(t,s) or s
21 | end
22 | })
23 |
24 | Ld["add new %s zone to the HUD"] = "add new %s zone to the HUD"
25 | Ld["Add %s area to the HUD"] = "Add %s area to the HUD"
26 | Ld["Alpha"] = "Alpha"
27 | Ld["Annulus Sectors Settings"] = "Annulus Sectors Settings"
28 | Ld["Archaeology Helper"] = "Archaeology Helper"
29 | Ld["Arch nodes only"] = "Arch nodes only"
30 | Ld["Arrow Alpha"] = "Arrow Alpha"
31 | Ld["Arrow Scaling"] = "Arrow Scaling"
32 | Ld["Audio Settings"] = "Audio Settings"
33 | Ld["Automatically mount when adding this color to the HUD"] = "Automatically mount when adding this color to the HUD"
34 | Ld["cast Survey"] = "cast Survey"
35 | Ld["Cast Survey"] = "Cast Survey"
36 | Ld["clear HUD"] = "clear HUD"
37 | Ld["Color of Compass Direction Marks (you can also set alpha here)"] = "Color of Compass Direction Marks (you can also set alpha here)"
38 | Ld["Color of the Compass Circle (you can also set alpha here)"] = "Color of the Compass Circle (you can also set alpha here)"
39 | Ld["Color of the Success Circle (you can also set alpha here)"] = "Color of the Success Circle (you can also set alpha here)"
40 | Ld["Compass Circle Color"] = "Compass Circle Color"
41 | Ld["Compass Settings"] = "Compass Settings"
42 | Ld["Dig Sites"] = "Dig Sites"
43 | Ld["Direction Marks Color"] = "Direction Marks Color"
44 | Ld["Display minimap icon"] = "Display minimap icon"
45 | Ld["Draw arrow in the center of the HUD"] = "Draw arrow in the center of the HUD"
46 | Ld["Draw compass-like circle on the HUD"] = "Draw compass-like circle on the HUD"
47 | Ld["General HUD Settings"] = "General HUD Settings"
48 | Ld["green"] = "green"
49 | Ld["Green"] = "Green"
50 | Ld["Hide on combat"] = "Hide on combat"
51 | Ld["Hide when resting"] = "Hide when resting"
52 | Ld["Horizontal position of HUD relative to screen center"] = "Horizontal position of HUD relative to screen center"
53 | Ld["How transparent is HUD"] = "How transparent is HUD"
54 | Ld["How transparent is Player Arrow"] = "How transparent is Player Arrow"
55 | Ld["How transparent is %s Annulus Sector"] = "How transparent is %s Annulus Sector"
56 | Ld["How transparent is %s Direction Line"] = "How transparent is %s Direction Line"
57 | Ld["How transparent is window"] = "How transparent is window"
58 | Ld["HUD"] = "HUD"
59 | Ld["HUD Alpha"] = "HUD Alpha"
60 | Ld["HUD Scaling"] = "HUD Scaling"
61 | Ld["HUD settings"] = "HUD settings"
62 | Ld["HUD X-Offset"] = "HUD X-Offset"
63 | Ld["HUD Y-Offset"] = "HUD Y-Offset"
64 | Ld["Key Bindings Settings"] = "Key Bindings Settings"
65 | Ld["Left Click"] = "Left Click"
66 | Ld["Locked"] = "Locked"
67 | Ld["Locks window to prevent accidental repositioning"] = "Locks window to prevent accidental repositioning"
68 | Ld["Main Window"] = "Main Window"
69 | Ld["Main window settings"] = "Main window settings"
70 | Ld["Middle Click"] = "Middle Click"
71 | Ld["Minimap Icon"] = "Minimap Icon"
72 | Ld["Misc Settings"] = "Misc Settings"
73 | Ld["Mount %s"] = "Mount %s"
74 | Ld["move window"] = "move window"
75 | Ld["Only show Archaeology nodes from GatherMate2 on the HUD"] = "Only show Archaeology nodes from GatherMate2 on the HUD"
76 | Ld["Open archaeology window"] = "Open archaeology window"
77 | Ld["Play confirmation sounds for various actions"] = "Play confirmation sounds for various actions"
78 | Ld["Play Sounds"] = "Play Sounds"
79 | Ld["Radius of the compass circle"] = "Radius of the compass circle"
80 | Ld["Radius (yards)"] = "Radius (yards)"
81 | Ld["red"] = "red"
82 | Ld["Red"] = "Red"
83 | Ld["Redirect GatherMate2 output to the HUD when visible"] = "Redirect GatherMate2 output to the HUD when visible"
84 | Ld["remove one previously added area"] = "remove one previously added area"
85 | Ld["Remove one previously added area"] = "Remove one previously added area"
86 | Ld["Reset All Settings"] = "Reset All Settings"
87 | Ld["Reset Position"] = "Reset Position"
88 | Ld["Resets all settings to defaults"] = "Resets all settings to defaults"
89 | Ld["Resets window position to the center of the screen"] = "Resets window position to the center of the screen"
90 | Ld["Right Click"] = "Right Click"
91 | Ld["Scale main window Tooltips"] = "Scale main window Tooltips"
92 | Ld["Scaling"] = "Scaling"
93 | Ld["Show compass"] = "Show compass"
94 | Ld["Show digsites on the Battlefield Minimap"] = "Show digsites on the Battlefield Minimap"
95 | Ld["Show digsites on the Minimap"] = "Show digsites on the Minimap"
96 | Ld["Show GatherMate2 pins on the HUD (recomended)"] = "Show GatherMate2 pins on the HUD (recomended)"
97 | Ld["Show/Hide all %s areas"] = "Show/Hide all %s areas"
98 | Ld["show/hide all %s areas on the HUD"] = "show/hide all %s areas on the HUD"
99 | Ld["Show/Hide Config"] = "Show/Hide Config"
100 | Ld["show/hide digsites on minimap"] = "show/hide digsites on minimap"
101 | Ld["Show/Hide the HUD"] = "Show/Hide the HUD"
102 | Ld["Show/Hide the Main Window"] = "Show/Hide the Main Window"
103 | Ld["Show/Hide window when entering/leaving a digsite"] = "Show/Hide window when entering/leaving a digsite"
104 | Ld["Show/Hide window when you show/hide Archy addon"] = "Show/Hide window when you show/hide Archy addon"
105 | Ld["Show Player Arrow"] = "Show Player Arrow"
106 | Ld["Show Success Circle"] = "Show Success Circle"
107 | Ld["Show Tooltips"] = "Show Tooltips"
108 | Ld["Show Tooltips in the main window"] = "Show Tooltips in the main window"
109 | Ld[ [=[Size of the HUD
110 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[Size of the HUD
111 | If you need ZOOM - use Minimap ZOOM instead]=]
112 | Ld["Size of the main window"] = "Size of the main window"
113 | Ld["Size of the Player Arrow"] = "Size of the Player Arrow"
114 | Ld["%s Line Alpha"] = "%s Line Alpha"
115 | Ld["%s Sector Alpha"] = "%s Sector Alpha"
116 | Ld["Success Circle Color"] = "Success Circle Color"
117 | Ld["Survey will succeed if fragment lies within this circle"] = "Survey will succeed if fragment lies within this circle"
118 | Ld["This will overwrite current settings!"] = "This will overwrite current settings!"
119 | Ld["This will reset Main Window position"] = "This will reset Main Window position"
120 | Ld["Toggle with Archy"] = "Toggle with Archy"
121 | Ld["Toggle with digsite"] = "Toggle with digsite"
122 | Ld["Tooltips Scaling"] = "Tooltips Scaling"
123 | Ld["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"
124 | Ld["Vertical position of HUD relative to screen center"] = "Vertical position of HUD relative to screen center"
125 | Ld["Visible"] = "Visible"
126 | Ld["Visual Settings"] = "Visual Settings"
127 | Ld["Whether window is visible"] = "Whether window is visible"
128 | Ld["yellow"] = "yellow"
129 | Ld["Yellow"] = "Yellow"
130 | Ld["You can also use %s command for this action"] = "You can also use %s command for this action"
131 |
132 |
133 | if locale == "frFR" then do end
134 | La["add new %s zone to the HUD"] = "Ajouter une zone %s à l'ATH"
135 | La["Add %s area to the HUD"] = "Ajouter une zone %s à l'ATH"
136 | La["Alpha"] = "Opacité"
137 | La["Annulus Sectors Settings"] = "Réglages des zones"
138 | La["Archaeology Helper"] = "Archaeology Helper"
139 | La["Arch nodes only"] = "Nœuds d'archéologie seulement"
140 | La["Arrow Alpha"] = "Opacité de la flèche"
141 | La["Arrow Scaling"] = "Echelle de la flèche"
142 | La["Audio Settings"] = "Réglages Audio"
143 | La["Automatically mount when adding this color to the HUD"] = "Se mettre automatiquement en selle lorsque cette couleur est ajouté à l'ATH."
144 | La["cast Survey"] = "Levé"
145 | La["Cast Survey"] = "Levé"
146 | La["clear HUD"] = "Nettoyer l'ATH" -- Needs review
147 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "Réglez la couleur des points cardinaux de la boussole (réglez aussi l'opacité ici)."
148 | La["Color of the Compass Circle (you can also set alpha here)"] = "Réglez la couleur du cercle de la boussole (réglez aussi l'opacité ici)."
149 | La["Color of the Success Circle (you can also set alpha here)"] = "Réglez la couleur du cercle de portée (réglez aussi l'opacité ici)."
150 | La["Compass Circle Color"] = "Cercle de la boussole"
151 | La["Compass Settings"] = "Réglages de la boussole"
152 | La["Dig Sites"] = "Sites de fouilles"
153 | La["Direction Marks Color"] = "Points cardinaux"
154 | La["Display minimap icon"] = "Affiche l'icône sur la mini-carte."
155 | La["Draw arrow in the center of the HUD"] = "Affiche une flèche au centre de l'ATH."
156 | La["Draw compass-like circle on the HUD"] = "Affiche un cercle type boussole sur l'ATH."
157 | La["General HUD Settings"] = "Réglages généraux de l'ATH"
158 | La["green"] = "verte" -- Needs review
159 | La["Green"] = "verte" -- Needs review
160 | La["Hide on combat"] = "Cacher en combat"
161 | La["Hide when resting"] = "Cacher au repos"
162 | La["Horizontal position of HUD relative to screen center"] = "Réglez la position horizontale de l'ATH par rapport au centre de l'écran."
163 | La["How transparent is HUD"] = "Réglez la transparence de l'ATH."
164 | La["How transparent is Player Arrow"] = "Réglez la transparence de la flèche du joueur."
165 | La["How transparent is %s Annulus Sector"] = "Réglez la transparence des zones %ss."
166 | La["How transparent is %s Direction Line"] = "Réglez la transparence des lignes de direction %ss."
167 | La["How transparent is window"] = "Réglez la transparence de la fenêtre."
168 | La["HUD"] = "ATH"
169 | La["HUD Alpha"] = "Opacité ATH"
170 | La["HUD Scaling"] = "Echelle ATH"
171 | La["HUD settings"] = "Réglages de l'ATH"
172 | La["HUD X-Offset"] = "Décalage X de l'ATH"
173 | La["HUD Y-Offset"] = "Décalage Y de l'ATH"
174 | La["Key Bindings Settings"] = "Réglages des raccourcis clavier"
175 | La["Left Click"] = "Clic gauche"
176 | La["Locked"] = "Verrouillé"
177 | La["Locks window to prevent accidental repositioning"] = "Verrouille la fenêtre pour empêcher de la déplacer accidentellement."
178 | La["Main Window"] = "Fenêtre principale"
179 | La["Main window settings"] = "Réglages de la fenêtre principale"
180 | La["Middle Click"] = "Clic milieu"
181 | La["Minimap Icon"] = "Icône mini-carte"
182 | La["Misc Settings"] = "Réglages divers"
183 | La["Mount %s"] = "Mount %s" -- Needs review
184 | La["move window"] = "Déplacer la fenêtre"
185 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "Ne montrer que les nœuds d'archéologie de GatherMate2 sur l'ATH."
186 | La["Open archaeology window"] = "Ouvrir la fenêtre d'archéologie"
187 | La["Play confirmation sounds for various actions"] = "Joue un son de confirmation pour diverses actions."
188 | La["Play Sounds"] = "Jouer des sons"
189 | La["Radius of the compass circle"] = "Rayon du cercle de la boussole"
190 | La["Radius (yards)"] = "Rayon (yards)"
191 | La["red"] = "rouge" -- Needs review
192 | La["Red"] = "rouge" -- Needs review
193 | La["Redirect GatherMate2 output to the HUD when visible"] = "Redirige les points de GatherMate2 vers l'ATH quand il est visible."
194 | La["remove one previously added area"] = "Enlever la dernière zone ajoutée"
195 | La["Remove one previously added area"] = "Retirer la dernière zone ajoutée" -- Needs review
196 | La["Reset All Settings"] = "Réinitialiser tous les réglages" -- Needs review
197 | La["Reset Position"] = "Réinitialiser la position" -- Needs review
198 | La["Resets all settings to defaults"] = "Réinitialise tous les réglages aux paramètres par défaut."
199 | La["Resets window position to the center of the screen"] = "Réinitialise la position de la fenêtre au centre de l'écran."
200 | La["Right Click"] = "Clic droit"
201 | La["Scale main window Tooltips"] = "Réglez l'échelle des infobulles de la fenêtre principale."
202 | La["Scaling"] = "Echelle"
203 | La["Show compass"] = "Boussole"
204 | La["Show digsites on the Battlefield Minimap"] = "Afficher les sites de fouille sur la carte locale"
205 | La["Show digsites on the Minimap"] = "Afficher les sites de fouille sur la mini-carte"
206 | La["Show GatherMate2 pins on the HUD (recomended)"] = "Points GatherMate2 dans l'ATH (recommandé)"
207 | La["Show/Hide all %s areas"] = "Afficher/Cacher les zones %ss" -- Needs review
208 | La["show/hide all %s areas on the HUD"] = "Afficher/Cacher les zones %ss sur l'ATH"
209 | La["Show/Hide Config"] = "Afficher/Cacher la configuration"
210 | La["show/hide digsites on minimap"] = "Afficher/Cacher les sites de fouille sur la mini-carte" -- Needs review
211 | La["Show/Hide the HUD"] = "Afficher/Cacher l'ATH" -- Needs review
212 | La["Show/Hide the Main Window"] = "Afficher/Cacher la fenêtre principale"
213 | La["Show/Hide window when entering/leaving a digsite"] = "Affiche/Cache la fenêtre en entrant/sortant d'un site de fouilles."
214 | La["Show/Hide window when you show/hide Archy addon"] = "Afficher/Cacher la fenêtre quand vous affichez/cachez l'addon Archy"
215 | La["Show Player Arrow"] = "Flèche du joueur"
216 | La["Show Success Circle"] = "Cercle de portée"
217 | La["Show Tooltips"] = "Infobulles"
218 | La["Show Tooltips in the main window"] = "Affiche les infobulles dans la fenêtre principale."
219 | La[ [=[Size of the HUD
220 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[Réglez la taille de l'ATH.
221 | Pour faire un zoom, utilisez celui de la mini-carte.]=]
222 | La["Size of the main window"] = "Réglez la taille de la fenêtre principale."
223 | La["Size of the Player Arrow"] = "Réglez la taille de la flèche du joueur."
224 | La["%s Line Alpha"] = "Opacité ligne %s"
225 | La["%s Sector Alpha"] = "Opacité zone %s"
226 | La["Success Circle Color"] = "Réglez la couleur du cercle de portée."
227 | La["Survey will succeed if fragment lies within this circle"] = "Levé trouvera les fragments dans ce cercle." -- Needs review
228 | La["This will overwrite current settings!"] = "Cela écrasera les réglages actuels !"
229 | La["This will reset Main Window position"] = "Cela réinitialisera la position de la fenêtre principale."
230 | La["Toggle with Archy"] = "Activer avec Archy" -- Needs review
231 | La["Toggle with digsite"] = "Afficher sur place"
232 | La["Tooltips Scaling"] = "Echelle de l'infobulle"
233 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "Utilisez |cff69ccf0Maj-M|r pour ouvrir ou cacher la carte locale."
234 | La["Vertical position of HUD relative to screen center"] = "Réglez la position verticale de l'ATH par rapport au centre de l'écran."
235 | La["Visible"] = "Visible"
236 | La["Visual Settings"] = "Réglages visuels"
237 | La["Whether window is visible"] = "Réglez la visibilité de la fenêtre."
238 | La["yellow"] = "jaune" -- Needs review
239 | La["Yellow"] = "jaune" -- Needs review
240 | La["You can also use %s command for this action"] = "Vous pouvez aussi utiliser la commande %s pour cette action."
241 |
242 | elseif locale == "deDE" then do end
243 | La["add new %s zone to the HUD"] = "neue %s Zone zum HUD hinzufügen"
244 | La["Add %s area to the HUD"] = "%s-Bereich zum HUD hinzufügen"
245 | La["Alpha"] = "Transparenz"
246 | La["Annulus Sectors Settings"] = "Kreisring-Sektor-Einstellungen"
247 | La["Archaeology Helper"] = "Archaeology Helper"
248 | La["Arch nodes only"] = "Nur Arch.-Fundstellen"
249 | La["Arrow Alpha"] = "Transparenz des Pfeils"
250 | La["Arrow Scaling"] = "Größe des Pfeils"
251 | La["Audio Settings"] = "Audio-Einstellungen"
252 | La["Automatically mount when adding this color to the HUD"] = "Automatisch aufsitzen, wenn diese Farbe im HUD gesetzt wird."
253 | La["cast Survey"] = "Untersuchen"
254 | La["Cast Survey"] = "Untersuchen"
255 | La["clear HUD"] = "HUD bereinigen"
256 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "Farbe der Kompassrichtungsmarker (Transparenz kann hier auch eingestellt werden)"
257 | La["Color of the Compass Circle (you can also set alpha here)"] = "Farbe des Kompasskreises (Transparenz kann hier auch eingestellt werden)"
258 | La["Color of the Success Circle (you can also set alpha here)"] = "Farbe des Erfolgskreises (Transparenz kann hier auch eingestellt werden)"
259 | La["Compass Circle Color"] = "Kompasskreisfarbe"
260 | La["Compass Settings"] = "Kompasseinstellungen"
261 | La["Dig Sites"] = "Ausgrabungsstätten"
262 | La["Direction Marks Color"] = "Farbe der Richtungsmarker"
263 | La["Display minimap icon"] = "Minikartensymbol anzeigen"
264 | La["Draw arrow in the center of the HUD"] = "Pfeil in der Mitte vom HUD anzeigen"
265 | La["Draw compass-like circle on the HUD"] = "Kompasskreis auf HUD anzeigen"
266 | La["General HUD Settings"] = "Allgemeine HUD Einstellungen"
267 | La["green"] = "Grün"
268 | La["Green"] = "Grün"
269 | La["Hide on combat"] = "Im Kampf verstecken"
270 | La["Hide when resting"] = "In Ruhezonen verstecken"
271 | La["Horizontal position of HUD relative to screen center"] = "Horizontale Position des HUDs relativ zur Bildschirmmitte"
272 | La["How transparent is HUD"] = "Wie transparent ist das HUD"
273 | La["How transparent is Player Arrow"] = "Wie transparent ist der Spielerpfeil"
274 | La["How transparent is %s Annulus Sector"] = "Wie transparent ist der %s-Kreisring-Sektor"
275 | La["How transparent is %s Direction Line"] = "Wie transparent ist %s Richtungslinie"
276 | La["How transparent is window"] = "Wie transparent ist das Fenster"
277 | La["HUD"] = "HUD"
278 | La["HUD Alpha"] = "HUD Transparenz"
279 | La["HUD Scaling"] = "HUD Skalierung"
280 | La["HUD settings"] = "HUD Einstellungen"
281 | La["HUD X-Offset"] = "HUD X-Versatz"
282 | La["HUD Y-Offset"] = "HUD Y-Versatz"
283 | La["Key Bindings Settings"] = "Tastaturbelegungseinstellungen"
284 | La["Left Click"] = "Links-Klick"
285 | La["Locked"] = "Gesperrt"
286 | La["Locks window to prevent accidental repositioning"] = "Fenster sperren, um versehentliches Verschieben zu vermeiden"
287 | La["Main Window"] = "Hauptfenster"
288 | La["Main window settings"] = "Hauptfenstereinstellungen"
289 | La["Middle Click"] = "Mittel-Klick"
290 | La["Minimap Icon"] = "Minikartensymbol"
291 | La["Misc Settings"] = "Sonstige Einstellungen"
292 | La["Mount %s"] = "Aufsitzen bei %s"
293 | La["move window"] = "Fenster bewegen"
294 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "Nur Archäologie-Fundstellen von Gathermate2 am HUD anzeigen"
295 | La["Open archaeology window"] = "Archäologiefenster öffnen"
296 | La["Play confirmation sounds for various actions"] = "Bestätigungssounds abspielen für verschiedene Aktionen"
297 | La["Play Sounds"] = "Sounds abspielen"
298 | La["Radius of the compass circle"] = "Radius des Kompasskreises"
299 | La["Radius (yards)"] = "Radius (yards)"
300 | La["red"] = "Rot"
301 | La["Red"] = "Rot"
302 | La["Redirect GatherMate2 output to the HUD when visible"] = "GatherMate2-Ausgabe an HUD weiterleiten, wenn es sichtbar ist"
303 | La["remove one previously added area"] = "einen vorher hinzugefügten Bereich entfernen"
304 | La["Remove one previously added area"] = "Ein vorher hinzugefügten Bereich entfernen"
305 | La["Reset All Settings"] = "Alle Einstellungen zurücksetzen"
306 | La["Reset Position"] = "Position zurücksetzen"
307 | La["Resets all settings to defaults"] = "Alle Einstellungen auf Standard zurücksetzen"
308 | La["Resets window position to the center of the screen"] = "Fensterposition auf Bildschirmmitte zurücksetzen"
309 | La["Right Click"] = "Rechtsklick"
310 | La["Scale main window Tooltips"] = "Skalierung der Tooltips im Hauptfenster"
311 | La["Scaling"] = "Skalierung"
312 | La["Show compass"] = "Kompass anzeigen"
313 | La["Show digsites on the Battlefield Minimap"] = "Ausgrabungsstätten auf der Schlachtfeld-Minikarte anzeigen"
314 | La["Show digsites on the Minimap"] = "Ausgrabungsstätten auf der Minikarte anzeigen"
315 | La["Show GatherMate2 pins on the HUD (recomended)"] = "GatherMate2-Pins im HUD anzeigen (empfohlen)"
316 | La["Show/Hide all %s areas"] = "Alle %s Gebiete anzeigen/verstecken"
317 | La["show/hide all %s areas on the HUD"] = "Alle %s Zonen am HUD anzeigen/verstecken"
318 | La["Show/Hide Config"] = "Konfiguration anzeigen/verstecken"
319 | La["show/hide digsites on minimap"] = "Ausgrabungsstätten auf der Minikarte anzeigen/verstecken"
320 | La["Show/Hide the HUD"] = "HUD anzeigen/verstecken"
321 | La["Show/Hide the Main Window"] = "Hauptfenster anzeigen/verstecken"
322 | La["Show/Hide window when entering/leaving a digsite"] = "Zeige/Verstecke das Fenster, wenn eine Ausgrabungsstätte betreten/verlassen wird"
323 | La["Show/Hide window when you show/hide Archy addon"] = "Fenster anzeigen/verstecken, wenn du das Archy-Addon anzeigst/versteckst"
324 | La["Show Player Arrow"] = "Spielerpfeil anzeigen"
325 | La["Show Success Circle"] = "Erfolgskreis anzeigen"
326 | La["Show Tooltips"] = "Tooltips anzeigen"
327 | La["Show Tooltips in the main window"] = "Tooltips im Hauptfenster anzeigen"
328 | La[ [=[Size of the HUD
329 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[Größe des HUDs
330 | Wenn du ZOOM benötigst benutze stattdessen den Minimap ZOOM]=]
331 | La["Size of the main window"] = "Größe des Hauptfensters"
332 | La["Size of the Player Arrow"] = "Größe des Spielerpfeils"
333 | La["%s Line Alpha"] = "%s Linien-Transparenz"
334 | La["%s Sector Alpha"] = "%s Sektor-Transparenz"
335 | La["Success Circle Color"] = "Farbe des Erfolgskreises"
336 | La["Survey will succeed if fragment lies within this circle"] = "Untersuchen wird erfolgreich sein, falls das Fragment in diesem Kreis liegt"
337 | La["This will overwrite current settings!"] = "Dies wird die aktuellen Einstellungen überschreiben!"
338 | La["This will reset Main Window position"] = "Dies wird die Hauptfensterposition zurücksetzen"
339 | La["Toggle with Archy"] = "Mit Archy umschalten"
340 | La["Toggle with digsite"] = "Anzeige nur bei Ausgrabungsstätten"
341 | La["Tooltips Scaling"] = "Tooltipskalierung"
342 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "Nutze |cff69ccf0Shift-M|r, um die Schlachtfeld-Minikarte anzuzeigen/zu verstecken"
343 | La["Vertical position of HUD relative to screen center"] = "Vertikale Position des HUDs relativ zur Bildschirmmitte"
344 | La["Visible"] = "Sichtbar"
345 | La["Visual Settings"] = "Anzeige-Einstellungen"
346 | La["Whether window is visible"] = "Ob das Fenster sichbar sein soll"
347 | La["yellow"] = "Gelb"
348 | La["Yellow"] = "Gelb"
349 | La["You can also use %s command for this action"] = "Du kannst auch den %s Befehl für diese Aktion benutzen"
350 |
351 | elseif locale == "koKR" then do end
352 | La["add new %s zone to the HUD"] = "새로운 %s 지역을 HUD에 추가"
353 | La["Add %s area to the HUD"] = "%s 영역을 HUD에 추가"
354 | La["Alpha"] = "투명도"
355 | La["Annulus Sectors Settings"] = "고리 영역 설정"
356 | La["Archaeology Helper"] = "Archaeology Helper"
357 | La["Arch nodes only"] = "고고학 노드만"
358 | La["Arrow Alpha"] = "화살표 투명도"
359 | La["Arrow Scaling"] = "화살표 크기"
360 | La["Audio Settings"] = "소리 설정"
361 | La["Automatically mount when adding this color to the HUD"] = "HUD에 이 색상이 추가되면 자동으로 탈것을 탑니다"
362 | La["cast Survey"] = "조사 시전"
363 | La["Cast Survey"] = "조사 시전"
364 | La["clear HUD"] = "HUD 지우기"
365 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "나침반 방향 표시 색상 (투명도도 설정 가능)"
366 | La["Color of the Compass Circle (you can also set alpha here)"] = "나침반 원의 색상 (투명도도 설정 가능)"
367 | La["Color of the Success Circle (you can also set alpha here)"] = "성공 원의 색상 (투명도도 설정 가능)"
368 | La["Compass Circle Color"] = "나침반 원 색상"
369 | La["Compass Settings"] = "나침반 설정"
370 | La["Dig Sites"] = "발굴현장"
371 | La["Direction Marks Color"] = "방향 표시 색상"
372 | La["Display minimap icon"] = "미니맵 아이콘 표시"
373 | La["Draw arrow in the center of the HUD"] = "HUD 중앙에 화살표 표시"
374 | La["Draw compass-like circle on the HUD"] = "HUD에 나침반 형태의 원 표시"
375 | La["General HUD Settings"] = "기본 HUD 설정"
376 | La["green"] = "녹색"
377 | La["Green"] = "녹색"
378 | La["Hide on combat"] = "전투 중 숨기기"
379 | La["Hide when resting"] = "휴식 중 숨기기"
380 | La["Horizontal position of HUD relative to screen center"] = "화면 중앙을 기준으로 HUD의 가로 위치"
381 | La["How transparent is HUD"] = "HUD의 투명도"
382 | La["How transparent is Player Arrow"] = "플레이어 화살표의 투명도"
383 | La["How transparent is %s Annulus Sector"] = "%s 고리 영역의 투명도"
384 | La["How transparent is %s Direction Line"] = "%s 방향 선의 투명도"
385 | La["How transparent is window"] = "창의 투명도"
386 | La["HUD"] = "HUD"
387 | La["HUD Alpha"] = "HUD 투명도"
388 | La["HUD Scaling"] = "HUD 크기"
389 | La["HUD settings"] = "HUD 설정"
390 | La["HUD X-Offset"] = "HUD X-좌표"
391 | La["HUD Y-Offset"] = "HUD Y-좌표"
392 | La["Key Bindings Settings"] = "단축키 설정"
393 | La["Left Click"] = "좌 클릭"
394 | La["Locked"] = "잠금"
395 | La["Locks window to prevent accidental repositioning"] = "위치 이동을 방지하기 위해 창을 잠급니다"
396 | La["Main Window"] = "메인 창"
397 | La["Main window settings"] = "메인 창 설정"
398 | La["Middle Click"] = "가운데 클릭"
399 | La["Minimap Icon"] = "미니맵 아이콘"
400 | La["Misc Settings"] = "기타 설정"
401 | La["Mount %s"] = "%s 탈것 타기"
402 | La["move window"] = "창 이동"
403 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "HUD에 GatherMate2의 고고학 노드만 표시합니다"
404 | La["Open archaeology window"] = "고고학 창 열기"
405 | La["Play confirmation sounds for various actions"] = "여러 행동에 맞는 소리를 재생합니다"
406 | La["Play Sounds"] = "소리 재생하기"
407 | La["Radius of the compass circle"] = "나침반 원의 반경"
408 | La["Radius (yards)"] = "반경 (미터)"
409 | La["red"] = "빨강"
410 | La["Red"] = "빨강"
411 | La["Redirect GatherMate2 output to the HUD when visible"] = "표시 될 때 HUD에 GatherMate2 출력을 재설정합니다"
412 | La["remove one previously added area"] = "이전에 추가된 지역 제거"
413 | La["Remove one previously added area"] = "이전에 추가된 지역 삭제"
414 | La["Reset All Settings"] = "모든 설정 초기화"
415 | La["Reset Position"] = "위치 초기화"
416 | La["Resets all settings to defaults"] = "모든 설정을 기본값으로 초기화"
417 | La["Resets window position to the center of the screen"] = "창 위치를 화면 중앙으로 초기화"
418 | La["Right Click"] = "우 클릭"
419 | La["Scale main window Tooltips"] = "메인 창 툴팁 크기"
420 | La["Scaling"] = "크기"
421 | La["Show compass"] = "나침반 표시"
422 | La["Show digsites on the Battlefield Minimap"] = "전장 미니맵에 발굴현장 표시"
423 | La["Show digsites on the Minimap"] = "미니맵에 발굴현장 표시"
424 | La["Show GatherMate2 pins on the HUD (recomended)"] = "HUD에 GatherMate2 핀 표시 (권장)"
425 | La["Show/Hide all %s areas"] = "모든 %s 영역 표시/숨기기"
426 | La["show/hide all %s areas on the HUD"] = "HUD에 모든 %s 지역 표시/숨기기"
427 | La["Show/Hide Config"] = "설정 표시/숨기기"
428 | La["show/hide digsites on minimap"] = "미니맵에 발굴현장 표시/숨기기"
429 | La["Show/Hide the HUD"] = "HUD 표시/숨기기"
430 | La["Show/Hide the Main Window"] = "메인 창 표시/숨기기"
431 | La["Show/Hide window when entering/leaving a digsite"] = "발굴현장에 들어가거나 나올 때 창을 표시하거나 숨깁니다"
432 | La["Show/Hide window when you show/hide Archy addon"] = "Archy 애드온을 표시하거나 숨기면 창을 표시하거나 숨깁니다"
433 | La["Show Player Arrow"] = "플레이어 화살표 표시"
434 | La["Show Success Circle"] = "성공 원 표시"
435 | La["Show Tooltips"] = "툴팁 표시"
436 | La["Show Tooltips in the main window"] = "메인 창에 툴팁 표시"
437 | La[ [=[Size of the HUD
438 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[HUD의 크기
439 | 확대하고 싶다면 - 미니맵 확대를 대신 사용하세요]=]
440 | La["Size of the main window"] = "메인 창의 크기"
441 | La["Size of the Player Arrow"] = "플레이어 화살표의 크기"
442 | La["%s Line Alpha"] = "%s 선 투명도"
443 | La["%s Sector Alpha"] = "%s 영역 투명도"
444 | La["Success Circle Color"] = "성공 원 색상"
445 | La["Survey will succeed if fragment lies within this circle"] = "원 안에 조각이 있으면 조사가 성공합니다"
446 | La["This will overwrite current settings!"] = "현재 설정을 덮어씁니다!"
447 | La["This will reset Main Window position"] = "메인 창 위치를 초기화합니다"
448 | La["Toggle with Archy"] = "Archy로 전환"
449 | La["Toggle with digsite"] = "발굴현장으로 전환"
450 | La["Tooltips Scaling"] = "툴팁 크기"
451 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "|cff69ccf0쉬프트-M|r을 눌러 전장 미니맵을 열거나 숨깁니다"
452 | La["Vertical position of HUD relative to screen center"] = "화면 중앙을 기준으로 HUD의 세로 위치"
453 | La["Visible"] = "표시"
454 | La["Visual Settings"] = "표시 설정"
455 | La["Whether window is visible"] = "창 표시 여부"
456 | La["yellow"] = "노랑"
457 | La["Yellow"] = "노랑"
458 | La["You can also use %s command for this action"] = "이 행동에 %s 명령어를 사용할 수 있습니다"
459 |
460 | elseif locale == "esMX" then do end
461 | La["add new %s zone to the HUD"] = "Añadir nueva zona %s al HUD"
462 | La["Add %s area to the HUD"] = "Añadir área %s al HUD"
463 | La["Alpha"] = "Transparencia"
464 | La["Annulus Sectors Settings"] = "Configuración de las áreas del anillo"
465 | La["Archaeology Helper"] = "Archaeology Helper"
466 | La["Arch nodes only"] = "Sólo los nodos de arqueología"
467 | La["Arrow Alpha"] = "Transparencia de la flecha"
468 | La["Arrow Scaling"] = "Escala de la flecha"
469 | La["Audio Settings"] = "Configuración de audio"
470 | La["Automatically mount when adding this color to the HUD"] = "Montar automáticamente al añadir este color al HUD" -- Needs review
471 | La["cast Survey"] = "Lanzar Estudiar"
472 | La["Cast Survey"] = "Lanzar Estudiar"
473 | La["clear HUD"] = "Limpiar HUD"
474 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "Color de las marcas de dirección de la brújula (también puedes establecer aquí la transparencia)."
475 | La["Color of the Compass Circle (you can also set alpha here)"] = "Color del círculo de la brújula (también puedes establecer aquí la transparencia)."
476 | La["Color of the Success Circle (you can also set alpha here)"] = "Color del círculo de acierto (también puedes establecer aquí la transparencia)."
477 | La["Compass Circle Color"] = "Color del círculo de la brújula"
478 | La["Compass Settings"] = "Configuración de la brújula"
479 | La["Dig Sites"] = "Excavaciones"
480 | La["Direction Marks Color"] = "Color de las marcas de dirección"
481 | La["Display minimap icon"] = "Muestra el icono en el Minimapa."
482 | La["Draw arrow in the center of the HUD"] = "Muestra una flecha en el centro del HUD."
483 | La["Draw compass-like circle on the HUD"] = "Muestra un círculo similar a una brújula en el HUD."
484 | La["General HUD Settings"] = "Configuración general del HUD"
485 | La["green"] = "verde"
486 | La["Green"] = "verde"
487 | La["Hide on combat"] = "Ocultar en combate"
488 | La["Hide when resting"] = "Ocultar en reposo"
489 | La["Horizontal position of HUD relative to screen center"] = "Posición horizontal del HUD con respecto al centro de la pantalla."
490 | La["How transparent is HUD"] = "Transparencia del HUD."
491 | La["How transparent is Player Arrow"] = "Transparencia de la flecha del jugador."
492 | La["How transparent is %s Annulus Sector"] = "Transparencia del área %s del anillo."
493 | La["How transparent is %s Direction Line"] = "Transparencia de la línea de dirección %s."
494 | La["How transparent is window"] = "Transparencia de la ventana."
495 | La["HUD"] = "HUD"
496 | La["HUD Alpha"] = "Transparencia del HUD"
497 | La["HUD Scaling"] = "Escala del HUD"
498 | La["HUD settings"] = "Configuración del HUD."
499 | La["HUD X-Offset"] = "Posición horizontal"
500 | La["HUD Y-Offset"] = "Posición vertical"
501 | La["Key Bindings Settings"] = "Configuración de acceso rápido"
502 | La["Left Click"] = "Clic izquierdo"
503 | La["Locked"] = "Bloquear"
504 | La["Locks window to prevent accidental repositioning"] = "Bloquea la ventana para evitar que puedas moverla accidentalmente."
505 | La["Main Window"] = "General"
506 | La["Main window settings"] = "Ventana principal de configuración."
507 | La["Middle Click"] = "Clic medio"
508 | La["Minimap Icon"] = "Icono en el Minimapa"
509 | La["Misc Settings"] = "Configuración Misc" -- Needs review
510 | La["Mount %s"] = "Montar %s" -- Needs review
511 | La["move window"] = "Mover ventana"
512 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "Muestra solo los nodos de arqueología de GatherMate2 en el HUD."
513 | La["Open archaeology window"] = "Abrir el panel de arqueología"
514 | La["Play confirmation sounds for various actions"] = "Reproduce sonidos de confirmación para algunas acciones."
515 | La["Play Sounds"] = "Reproducir sonidos"
516 | La["Radius of the compass circle"] = "Radio del círculo de la brújula."
517 | La["Radius (yards)"] = "Radio (yardas)"
518 | La["red"] = "roja"
519 | La["Red"] = "roja"
520 | La["Redirect GatherMate2 output to the HUD when visible"] = "Redirecciona la salida de GatherMate2 al HUD cuando está visible."
521 | La["remove one previously added area"] = "Eliminar la última área que fue agregada"
522 | La["Remove one previously added area"] = "Eliminar la última área que fue agregada"
523 | La["Reset All Settings"] = "Restablecer todo"
524 | La["Reset Position"] = "Restablecer posición"
525 | La["Resets all settings to defaults"] = "Restablece todas las configuraciones a los valores por defecto."
526 | La["Resets window position to the center of the screen"] = "Restablece la posición de la ventana al centro de la pantalla."
527 | La["Right Click"] = "Clic derecho"
528 | La["Scale main window Tooltips"] = "Escala de la información de la ventana principal."
529 | La["Scaling"] = "Escala"
530 | La["Show compass"] = "Mostrar brújula"
531 | La["Show digsites on the Battlefield Minimap"] = "Mostrar excavaciones en el Mapa de zona"
532 | La["Show digsites on the Minimap"] = "Mostrar excavaciones en el Minimapa"
533 | La["Show GatherMate2 pins on the HUD (recomended)"] = "Iconos de GatherMate2 en el HUD (recomendado)"
534 | La["Show/Hide all %s areas"] = "Mostrar/ocultar toda el área %s"
535 | La["show/hide all %s areas on the HUD"] = "Mostrar/ocultar toda el área %s en el HUD"
536 | La["Show/Hide Config"] = "Mostrar/ocultar el panel de configuración"
537 | La["show/hide digsites on minimap"] = "Mostrar/ocultar excavaciones en el Minimapa"
538 | La["Show/Hide the HUD"] = "Mostrar/ocultar el HUD"
539 | La["Show/Hide the Main Window"] = "Mostrar/ocultar la ventana principal"
540 | La["Show/Hide window when entering/leaving a digsite"] = "Mostrar/Ocultar ventana al entrar/salir de la excavación" -- Needs review
541 | La["Show/Hide window when you show/hide Archy addon"] = "Muestra/oculta la ventana cuando se muestra/oculta el Addon Archy."
542 | La["Show Player Arrow"] = "Mostrar flecha del jugador"
543 | La["Show Success Circle"] = "Círculo de acierto"
544 | La["Show Tooltips"] = "Mostrar información"
545 | La["Show Tooltips in the main window"] = "Muestra información en la ventana principal."
546 | La[ [=[Size of the HUD
547 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[Tamaño del HUD.
548 | Si necesitas acercar/alejar, mejor utiliza los botones del Minimapa.]=]
549 | La["Size of the main window"] = "Tamaño de la ventana principal."
550 | La["Size of the Player Arrow"] = "Tamaño de la flecha del jugador."
551 | La["%s Line Alpha"] = "Transp. de la línea %s"
552 | La["%s Sector Alpha"] = "Transp. del área %s"
553 | La["Success Circle Color"] = "Color del círculo de acierto"
554 | La["Survey will succeed if fragment lies within this circle"] = "Estudiar tendrá éxito si el fragmento se encuentra dentro de este círculo."
555 | La["This will overwrite current settings!"] = "¡Esto sobrescribirá la configuración actual!"
556 | La["This will reset Main Window position"] = "¡Esto restablecerá la posición de la ventana principal!"
557 | La["Toggle with Archy"] = "Mostrar con Archy"
558 | La["Toggle with digsite"] = "Alternar con excavación" -- Needs review
559 | La["Tooltips Scaling"] = "Escala de información"
560 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "Utiliza |cff69ccf0Mayús+M|r para mostrar/ocultar el Mapa de zona."
561 | La["Vertical position of HUD relative to screen center"] = "Posición vertical del HUD con respecto al centro de la pantalla."
562 | La["Visible"] = "Visible"
563 | La["Visual Settings"] = "Configuración visual"
564 | La["Whether window is visible"] = "Si es visible la ventana."
565 | La["yellow"] = "amarilla"
566 | La["Yellow"] = "amarilla"
567 | La["You can also use %s command for this action"] = "También puedes usar el comando %s para esta acción."
568 |
569 | elseif locale == "ruRU" then do end
570 | La["add new %s zone to the HUD"] = "добавить новую %s зону в HUD-дисплей"
571 | La["Add %s area to the HUD"] = "Добавить %s зону в HUD-дисплей"
572 | La["Alpha"] = "Прозрачность"
573 | La["Annulus Sectors Settings"] = "Настройки Секторов Кольца"
574 | La["Archaeology Helper"] = "Помощник Археолога"
575 | La["Arch nodes only"] = "Только отметки Archy." -- Needs review
576 | La["Arrow Alpha"] = "Направляющая Прозрачности"
577 | La["Arrow Scaling"] = "Направляющая Масштабирования"
578 | La["Audio Settings"] = "Настройки Аудио"
579 | La["Automatically mount when adding this color to the HUD"] = "Автоматически оседлать маунта после установки маркера этого цвета "
580 | La["cast Survey"] = "начать Раскопку"
581 | La["Cast Survey"] = "Начать Раскопку"
582 | La["clear HUD"] = "очистить HUD-дисплей"
583 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "Цвет Направляющих Маркеров Компаса (возможно использовать прозрачность)"
584 | La["Color of the Compass Circle (you can also set alpha here)"] = "Цвет Круга Компаса (возможно использовать прозрачность)"
585 | La["Color of the Success Circle (you can also set alpha here)"] = "Цвет Кольца Успеха (возможно использовать прозрачность)"
586 | La["Compass Circle Color"] = "Цвет Круга Компаса"
587 | La["Compass Settings"] = "Настройки Компаса"
588 | La["Dig Sites"] = "Зоны Раскопок"
589 | La["Direction Marks Color"] = "Цвет Направляющих Маркеров"
590 | La["Display minimap icon"] = "Отображать иконку на миникарте"
591 | La["Draw arrow in the center of the HUD"] = "Нарисовать направляющую в центре HUD-дисплея"
592 | La["Draw compass-like circle on the HUD"] = "Нарисовать компас в виде круга на HUD-дисплее"
593 | La["General HUD Settings"] = "Основные Настройки HUD-дисплея"
594 | La["green"] = "зелёный"
595 | La["Green"] = "Зелёный"
596 | La["Hide on combat"] = "Скрывать во время боя"
597 | La["Hide when resting"] = "Скрывать во время отдыха"
598 | La["Horizontal position of HUD relative to screen center"] = "Горизонтальное положение HUD-дисплея (относительно центра экрана)"
599 | La["How transparent is HUD"] = "Прозрачность HUD-дисплея"
600 | La["How transparent is Player Arrow"] = "Прозрачность Направляющей Игрока"
601 | La["How transparent is %s Annulus Sector"] = "Прозрачность %s Сектора Кольца"
602 | La["How transparent is %s Direction Line"] = "Прозрачность %s Направляющей Линии"
603 | La["How transparent is window"] = "Прозрачность окна"
604 | La["HUD"] = "HUD-дисплей"
605 | La["HUD Alpha"] = "HUD-дисплей (Прозрачность)"
606 | La["HUD Scaling"] = "Масштабирование HUD-дисплея"
607 | La["HUD settings"] = "Настройки HUD-дисплея"
608 | La["HUD X-Offset"] = "HUD-дисплей (Смещение по оси X)"
609 | La["HUD Y-Offset"] = "HUD-дисплей (Смещение по оси Y)"
610 | La["Key Bindings Settings"] = "Настройки Комбинаций Клавиш"
611 | La["Left Click"] = "Клик ЛКМ"
612 | La["Locked"] = "Заблокировано"
613 | La["Locks window to prevent accidental repositioning"] = "Блокировка окна (дабы избежать случайного перетаскивания)"
614 | La["Main Window"] = "Основное Окно"
615 | La["Main window settings"] = "Настройки основного окна"
616 | La["Middle Click"] = "Клик Средней Кнопкой Мыши"
617 | La["Minimap Icon"] = "Иконка на Миникарте"
618 | La["Misc Settings"] = "Другие Настройки"
619 | La["Mount %s"] = "Маунт %s"
620 | La["move window"] = "передвигать окно"
621 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "Показывать только археологические отметки GatherMate2 на пользовательском интерфейсе." -- Needs review
622 | La["Open archaeology window"] = "Открыть окно археологии"
623 | La["Play confirmation sounds for various actions"] = "Проигрывать подтверждающие звуки для различных действий"
624 | La["Play Sounds"] = "Воспроизводить Звуки"
625 | La["Radius of the compass circle"] = "Радиус круга компаса"
626 | La["Radius (yards)"] = "Радиус (ярды)"
627 | La["red"] = "красный"
628 | La["Red"] = "Красный"
629 | La["Redirect GatherMate2 output to the HUD when visible"] = "Переправить данные GatherMate2 на пользовательский интерфейс, если есть." -- Needs review
630 | La["remove one previously added area"] = "удалить последнюю добавленную зону"
631 | La["Remove one previously added area"] = "Удалить последнюю добавленную зону "
632 | La["Reset All Settings"] = "Сбросить Настройки"
633 | La["Reset Position"] = "Сбросить Позицию"
634 | La["Resets all settings to defaults"] = "Вернуться к настройкам по умолчанию"
635 | La["Resets window position to the center of the screen"] = "Сбросить позицию окна в центр экрана"
636 | La["Right Click"] = "Клик ПКМ"
637 | La["Scale main window Tooltips"] = "Масштабирование Подсказок на главном окне"
638 | La["Scaling"] = "Масштабирование "
639 | La["Show compass"] = "Показать компас"
640 | La["Show digsites on the Battlefield Minimap"] = "Показывать зоны раскопок на Миникарте Игровой Зоны"
641 | La["Show digsites on the Minimap"] = "Показывать зоны раскопок на Миникарте"
642 | La["Show GatherMate2 pins on the HUD (recomended)"] = "Показывать отметки GatherMate2 на пользовательском интерфейсе. (рекомендуется)" -- Needs review
643 | La["Show/Hide all %s areas"] = "Показать/Скрыть все %s зоны"
644 | La["show/hide all %s areas on the HUD"] = "показать/скрыть все %s зоны в HUD-дисплей"
645 | La["Show/Hide Config"] = "Показать/Скрыть Конфигурацию"
646 | La["show/hide digsites on minimap"] = "показать/скрыть зоны раскопок на миникарте"
647 | La["Show/Hide the HUD"] = "Показать/Скрыть HUD-дислпей"
648 | La["Show/Hide the Main Window"] = "Показать/Скрыть Основное Окно"
649 | La["Show/Hide window when entering/leaving a digsite"] = "Отображать/Скрывать окно, когда входишь/покидаешь зону раскопок"
650 | La["Show/Hide window when you show/hide Archy addon"] = "Отображать/Скрывать окно, когда Вы отображаете/скрываете Archy аддон"
651 | La["Show Player Arrow"] = "Показывать Направляющую Игрока"
652 | La["Show Success Circle"] = "Показывать Круг Успеха"
653 | La["Show Tooltips"] = "Отображать Подсказки"
654 | La["Show Tooltips in the main window"] = "Показывать Подсказки в основном окне "
655 | La[ [=[Size of the HUD
656 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[Размер HUD-дисплея
657 | Если Вам нужно Приблизить - лучше используйте Приближение Миникарты]=]
658 | La["Size of the main window"] = "Размер основного окна"
659 | La["Size of the Player Arrow"] = "Размер Направляющей Игрока"
660 | La["%s Line Alpha"] = "%s Линия Прозрачности"
661 | La["%s Sector Alpha"] = "%s Сектор Прозрачности"
662 | La["Success Circle Color"] = "Цвет Круга Успеха"
663 | La["Survey will succeed if fragment lies within this circle"] = "Раскопка будет успешной, если фрагмент лежит внутри этого круга"
664 | La["This will overwrite current settings!"] = "Это сотрёт нынешние настройки!!!"
665 | La["This will reset Main Window position"] = "Это сбросит позицию Основного Окна"
666 | La["Toggle with Archy"] = "Включать с Archy." -- Needs review
667 | La["Toggle with digsite"] = "Отображать в зоне раскопок"
668 | La["Tooltips Scaling"] = "Подсказки к Масштабированию"
669 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "Используйте |cff69ccf0Shift-M|r, чтобы отобразить/скрыть Миникарту Игровой Зоны"
670 | La["Vertical position of HUD relative to screen center"] = "Вертикальное положение HUD-дисплея (относительно центра экрана)"
671 | La["Visible"] = "Видимость"
672 | La["Visual Settings"] = "Визуальные Настройки"
673 | La["Whether window is visible"] = "Вкл/выкл отображение интерфейса"
674 | La["yellow"] = "жёлтый"
675 | La["Yellow"] = "Жёлтый"
676 | La["You can also use %s command for this action"] = "Также Вы можете использовать %s команду для этого действия"
677 |
678 | elseif locale == "zhCN" then do end
679 | La["add new %s zone to the HUD"] = "增加新的%s地域到HUD" -- Needs review
680 | La["Add %s area to the HUD"] = "增加 %s 区域到HUD"
681 | La["Alpha"] = "透明度"
682 | La["Annulus Sectors Settings"] = "环型扇区设定"
683 | La["Archaeology Helper"] = "考古助手"
684 | La["Arch nodes only"] = "仅考古点" -- Needs review
685 | La["Arrow Alpha"] = "箭头透明度"
686 | La["Arrow Scaling"] = "箭头缩放"
687 | La["Audio Settings"] = "声音设定"
688 | -- La["Automatically mount when adding this color to the HUD"] = ""
689 | La["cast Survey"] = "使用勘探" -- Needs review
690 | La["Cast Survey"] = "使用勘测"
691 | La["clear HUD"] = "清理HUD" -- Needs review
692 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "罗盘方位标志颜色(这里你也可以设定透明度)"
693 | La["Color of the Compass Circle (you can also set alpha here)"] = "罗盘圆圈颜色(这里你也可以设定透明度)"
694 | La["Color of the Success Circle (you can also set alpha here)"] = "成功圈圈颜色(这里你也可以设定透明度)"
695 | La["Compass Circle Color"] = "罗盘圆圈颜色"
696 | La["Compass Settings"] = "罗盘设置"
697 | La["Dig Sites"] = "挖掘场"
698 | La["Direction Marks Color"] = "方位标志颜色"
699 | La["Display minimap icon"] = "显示小地图图标" -- Needs review
700 | La["Draw arrow in the center of the HUD"] = "将箭头放置在HUD的中心"
701 | La["Draw compass-like circle on the HUD"] = "将类似罗盘的圆圈放置在HUD上"
702 | La["General HUD Settings"] = "一般HUD设置"
703 | La["green"] = "绿色" -- Needs review
704 | La["Green"] = "绿色"
705 | La["Hide on combat"] = "战斗时隐藏" -- Needs review
706 | La["Hide when resting"] = "休息时隐藏" -- Needs review
707 | La["Horizontal position of HUD relative to screen center"] = "HUD相对于屏幕中心的水平位置" -- Needs review
708 | La["How transparent is HUD"] = "设置HUD的透明度"
709 | La["How transparent is Player Arrow"] = "设置玩家箭头的透明度"
710 | La["How transparent is %s Annulus Sector"] = "设置在 %s 环型扇区的透明度"
711 | La["How transparent is %s Direction Line"] = "设置在 %s 方位线的透明度"
712 | La["How transparent is window"] = "设置在窗口的透明度"
713 | La["HUD"] = "HUD"
714 | La["HUD Alpha"] = "HUD透明度"
715 | La["HUD Scaling"] = "HUD缩放"
716 | La["HUD settings"] = "HUD设置"
717 | La["HUD X-Offset"] = "HUD X轴偏移量" -- Needs review
718 | La["HUD Y-Offset"] = "HUD Y轴偏移量" -- Needs review
719 | La["Key Bindings Settings"] = "按键绑定设置"
720 | La["Left Click"] = "左键点击"
721 | La["Locked"] = "锁定"
722 | La["Locks window to prevent accidental repositioning"] = "锁定窗口以防止意外改变位置"
723 | La["Main Window"] = "主窗口"
724 | La["Main window settings"] = "主窗口设置"
725 | La["Middle Click"] = "中键点击"
726 | La["Minimap Icon"] = "小地图图标" -- Needs review
727 | -- La["Misc Settings"] = ""
728 | -- La["Mount %s"] = ""
729 | La["move window"] = "移动窗口" -- Needs review
730 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "只在HUD上显示 GatherMate2 的考古点" -- Needs review
731 | La["Open archaeology window"] = "开启考古学窗口"
732 | La["Play confirmation sounds for various actions"] = "为各种改动播放确认声音"
733 | La["Play Sounds"] = "播放声音"
734 | La["Radius of the compass circle"] = "罗盘圆圈的半径"
735 | La["Radius (yards)"] = "半径(码)"
736 | La["red"] = "红色" -- Needs review
737 | La["Red"] = "红色"
738 | La["Redirect GatherMate2 output to the HUD when visible"] = "重定向 GatherMate2 的数据到可见时的HUD"
739 | La["remove one previously added area"] = "移除一个先前增加的区域" -- Needs review
740 | La["Remove one previously added area"] = "移除一个先前增加的区域"
741 | La["Reset All Settings"] = "重设所有设置"
742 | La["Reset Position"] = "重设位置"
743 | La["Resets all settings to defaults"] = "重设所有设定至默认设置"
744 | La["Resets window position to the center of the screen"] = "重设窗口位置至屏幕中间"
745 | La["Right Click"] = "右键点击"
746 | La["Scale main window Tooltips"] = "缩放主窗口鼠标提示"
747 | La["Scaling"] = "缩放"
748 | La["Show compass"] = "显示罗盘"
749 | La["Show digsites on the Battlefield Minimap"] = "在战场小地图上显示挖掘场"
750 | La["Show digsites on the Minimap"] = "在小地图上显示挖掘场"
751 | La["Show GatherMate2 pins on the HUD (recomended)"] = "在HUD上显示 GatherMate2 的点(建议)"
752 | La["Show/Hide all %s areas"] = "显示/隐藏 所有 %s 区域" -- Needs review
753 | La["show/hide all %s areas on the HUD"] = "显示/隐藏HUD上所有%s的区域" -- Needs review
754 | La["Show/Hide Config"] = "显示/隐藏设置" -- Needs review
755 | La["show/hide digsites on minimap"] = "显示/隐藏小地图上的挖掘场" -- Needs review
756 | La["Show/Hide the HUD"] = "显示/隐藏 HUD" -- Needs review
757 | La["Show/Hide the Main Window"] = "显示/隐藏主窗口" -- Needs review
758 | La["Show/Hide window when entering/leaving a digsite"] = "当进入/离开挖掘场时显示/隐藏窗口" -- Needs review
759 | La["Show/Hide window when you show/hide Archy addon"] = "当你显示/隐藏Archy插件时也同步显示/隐藏窗口" -- Needs review
760 | La["Show Player Arrow"] = "显示玩家箭头"
761 | La["Show Success Circle"] = "显示成功圆圈"
762 | La["Show Tooltips"] = "显示鼠标提示"
763 | La["Show Tooltips in the main window"] = "在主窗口显示鼠标提示"
764 | La[ [=[Size of the HUD
765 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[HUD尺寸
766 | 如果你需要缩放 - 使用小地图缩放代替]=] -- Needs review
767 | La["Size of the main window"] = "主窗口尺寸" -- Needs review
768 | La["Size of the Player Arrow"] = "玩家箭头尺寸" -- Needs review
769 | La["%s Line Alpha"] = "%s 线条透明度"
770 | La["%s Sector Alpha"] = "%s 扇区透明度"
771 | La["Success Circle Color"] = "成功圆圈颜色" -- Needs review
772 | La["Survey will succeed if fragment lies within this circle"] = "如果碎片在此圆圈内将成功勘探" -- Needs review
773 | La["This will overwrite current settings!"] = "这件覆盖现有设置!" -- Needs review
774 | La["This will reset Main Window position"] = "这将重设主窗口位置" -- Needs review
775 | La["Toggle with Archy"] = "跟Archy一起切换" -- Needs review
776 | La["Toggle with digsite"] = "切换挖掘场" -- Needs review
777 | La["Tooltips Scaling"] = "鼠标提示缩放" -- Needs review
778 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "使用 |cff69ccf0Shift-M|r 以开启或隐藏战场小地图" -- Needs review
779 | La["Vertical position of HUD relative to screen center"] = "HUD相对于屏幕中心的垂直位置" -- Needs review
780 | La["Visible"] = "可视性" -- Needs review
781 | La["Visual Settings"] = "视觉设置" -- Needs review
782 | La["Whether window is visible"] = "窗口是否可见" -- Needs review
783 | La["yellow"] = "黄色" -- Needs review
784 | La["Yellow"] = "黄色" -- Needs review
785 | La["You can also use %s command for this action"] = "你也可以使用%s的指令来作此动作" -- Needs review
786 |
787 | elseif locale == "esES" then do end
788 | La["add new %s zone to the HUD"] = "Añadir nueva zona %s al HUD"
789 | La["Add %s area to the HUD"] = "Añadir área %s al HUD"
790 | La["Alpha"] = "Transparencia"
791 | La["Annulus Sectors Settings"] = "Configuración de las áreas del anillo"
792 | La["Archaeology Helper"] = "Archaeology Helper"
793 | La["Arch nodes only"] = "Sólo los nodos de arqueología"
794 | La["Arrow Alpha"] = "Transparencia de la flecha"
795 | La["Arrow Scaling"] = "Escala de la flecha"
796 | La["Audio Settings"] = "Configuración de audio"
797 | La["Automatically mount when adding this color to the HUD"] = "Montar automáticamente al añadir este color al HUD" -- Needs review
798 | La["cast Survey"] = "Lanzar Estudiar"
799 | La["Cast Survey"] = "Lanzar Estudiar"
800 | La["clear HUD"] = "Limpiar HUD"
801 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "Color de las marcas de dirección de la brújula (también puedes establecer aquí la transparencia)."
802 | La["Color of the Compass Circle (you can also set alpha here)"] = "Color del círculo de la brújula (también puedes establecer aquí la transparencia)."
803 | La["Color of the Success Circle (you can also set alpha here)"] = "Color del círculo de acierto (también puedes establecer aquí la transparencia)."
804 | La["Compass Circle Color"] = "Color del círculo de la brújula"
805 | La["Compass Settings"] = "Configuración de la brújula"
806 | La["Dig Sites"] = "Excavaciones"
807 | La["Direction Marks Color"] = "Color de las marcas de dirección"
808 | La["Display minimap icon"] = "Muestra el icono en el Minimapa."
809 | La["Draw arrow in the center of the HUD"] = "Muestra una flecha en el centro del HUD."
810 | La["Draw compass-like circle on the HUD"] = "Muestra un círculo similar a una brújula en el HUD."
811 | La["General HUD Settings"] = "Configuración general del HUD"
812 | La["green"] = "verde"
813 | La["Green"] = "verde"
814 | La["Hide on combat"] = "Ocultar en combate"
815 | La["Hide when resting"] = "Ocultar en reposo"
816 | La["Horizontal position of HUD relative to screen center"] = "Posición horizontal del HUD con respecto al centro de la pantalla."
817 | La["How transparent is HUD"] = "Transparencia del HUD."
818 | La["How transparent is Player Arrow"] = "Transparencia de la flecha del jugador."
819 | La["How transparent is %s Annulus Sector"] = "Transparencia del área %s del anillo."
820 | La["How transparent is %s Direction Line"] = "Transparencia de la línea de dirección %s."
821 | La["How transparent is window"] = "Transparencia de la ventana."
822 | La["HUD"] = "HUD"
823 | La["HUD Alpha"] = "Transparencia del HUD"
824 | La["HUD Scaling"] = "Escala del HUD"
825 | La["HUD settings"] = "Configuración del HUD."
826 | La["HUD X-Offset"] = "Posición horizontal"
827 | La["HUD Y-Offset"] = "Posición vertical"
828 | La["Key Bindings Settings"] = "Configuración de acceso rápido"
829 | La["Left Click"] = "Clic izquierdo"
830 | La["Locked"] = "Bloquear"
831 | La["Locks window to prevent accidental repositioning"] = "Bloquea la ventana para evitar que puedas moverla accidentalmente."
832 | La["Main Window"] = "General"
833 | La["Main window settings"] = "Ventana principal de configuración."
834 | La["Middle Click"] = "Clic medio"
835 | La["Minimap Icon"] = "Icono en el Minimapa"
836 | La["Misc Settings"] = "Configuración Miscelánea" -- Needs review
837 | La["Mount %s"] = "Montar %s" -- Needs review
838 | La["move window"] = "Mover ventana"
839 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "Muestra solo los nodos de arqueología de GatherMate2 en el HUD."
840 | La["Open archaeology window"] = "Abrir el panel de arqueología"
841 | La["Play confirmation sounds for various actions"] = "Reproduce sonidos de confirmación para algunas acciones."
842 | La["Play Sounds"] = "Reproducir sonidos"
843 | La["Radius of the compass circle"] = "Radio del círculo de la brújula."
844 | La["Radius (yards)"] = "Radio (yardas)"
845 | La["red"] = "roja"
846 | La["Red"] = "roja"
847 | La["Redirect GatherMate2 output to the HUD when visible"] = "Redirecciona la salida de GatherMate2 al HUD cuando está visible."
848 | La["remove one previously added area"] = "Eliminar la última área que fue agregada"
849 | La["Remove one previously added area"] = "Eliminar la última área que fue agregada"
850 | La["Reset All Settings"] = "Restablecer todo"
851 | La["Reset Position"] = "Restablecer posición"
852 | La["Resets all settings to defaults"] = "Restablece todas las configuraciones a los valores por defecto."
853 | La["Resets window position to the center of the screen"] = "Restablece la posición de la ventana al centro de la pantalla."
854 | La["Right Click"] = "Clic derecho"
855 | La["Scale main window Tooltips"] = "Escala de la información de la ventana principal."
856 | La["Scaling"] = "Escala"
857 | La["Show compass"] = "Mostrar brújula"
858 | La["Show digsites on the Battlefield Minimap"] = "Mostrar excavaciones en el Mapa de zona"
859 | La["Show digsites on the Minimap"] = "Mostrar excavaciones en el Minimapa"
860 | La["Show GatherMate2 pins on the HUD (recomended)"] = "Iconos de GatherMate2 en el HUD (recomendado)"
861 | La["Show/Hide all %s areas"] = "Mostrar/ocultar toda el área %s"
862 | La["show/hide all %s areas on the HUD"] = "Mostrar/ocultar toda el área %s en el HUD"
863 | La["Show/Hide Config"] = "Mostrar/ocultar el panel de configuración"
864 | La["show/hide digsites on minimap"] = "Mostrar/ocultar excavaciones en el Minimapa"
865 | La["Show/Hide the HUD"] = "Mostrar/ocultar el HUD"
866 | La["Show/Hide the Main Window"] = "Mostrar/ocultar la ventana principal"
867 | La["Show/Hide window when entering/leaving a digsite"] = "Mostrar / Ocultar ventana al entrar / salir un zona excavación"
868 | La["Show/Hide window when you show/hide Archy addon"] = "Muestra/oculta la ventana cuando se muestra/oculta el Addon Archy."
869 | La["Show Player Arrow"] = "Mostrar flecha del jugador"
870 | La["Show Success Circle"] = "Círculo de acierto"
871 | La["Show Tooltips"] = "Mostrar información"
872 | La["Show Tooltips in the main window"] = "Muestra información en la ventana principal."
873 | La[ [=[Size of the HUD
874 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[Tamaño del HUD.
875 | Si necesitas acercar/alejar, mejor utiliza los botones del Minimapa.]=]
876 | La["Size of the main window"] = "Tamaño de la ventana principal."
877 | La["Size of the Player Arrow"] = "Tamaño de la flecha del jugador."
878 | La["%s Line Alpha"] = "Transp. de la línea %s"
879 | La["%s Sector Alpha"] = "Transp. del área %s"
880 | La["Success Circle Color"] = "Color del círculo de acierto"
881 | La["Survey will succeed if fragment lies within this circle"] = "Estudiar tendrá éxito si el fragmento se encuentra dentro de este círculo."
882 | La["This will overwrite current settings!"] = "¡Esto sobrescribirá la configuración actual!"
883 | La["This will reset Main Window position"] = "¡Esto restablecerá la posición de la ventana principal!"
884 | La["Toggle with Archy"] = "Mostrar con Archy"
885 | La["Toggle with digsite"] = "Alternar con zona excavación"
886 | La["Tooltips Scaling"] = "Escala de información"
887 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "Utiliza |cff69ccf0Mayús+M|r para mostrar/ocultar el Mapa de zona."
888 | La["Vertical position of HUD relative to screen center"] = "Posición vertical del HUD con respecto al centro de la pantalla."
889 | La["Visible"] = "Visible"
890 | La["Visual Settings"] = "Configuración visual"
891 | La["Whether window is visible"] = "Si es visible la ventana."
892 | La["yellow"] = "amarilla"
893 | La["Yellow"] = "amarilla"
894 | La["You can also use %s command for this action"] = "También puedes usar el comando %s para esta acción."
895 |
896 | elseif locale == "zhTW" then do end
897 | La["add new %s zone to the HUD"] = "增加新的%s區域到HUD"
898 | La["Add %s area to the HUD"] = "增加 %s 區域到HUD"
899 | La["Alpha"] = "透明度"
900 | La["Annulus Sectors Settings"] = "環型扇區設定"
901 | La["Archaeology Helper"] = "考古學幫手"
902 | La["Arch nodes only"] = "只有考古點"
903 | La["Arrow Alpha"] = "箭頭透明度"
904 | La["Arrow Scaling"] = "箭頭大小"
905 | La["Audio Settings"] = "聲音設定"
906 | La["Automatically mount when adding this color to the HUD"] = "當在HUD上加入此顏色時自動上坐騎"
907 | La["cast Survey"] = "使用探勘"
908 | La["Cast Survey"] = "使用探勘"
909 | La["clear HUD"] = "清除HUD"
910 | La["Color of Compass Direction Marks (you can also set alpha here)"] = "羅盤方位標誌顏色(這裏你也可以設定透明度)"
911 | La["Color of the Compass Circle (you can also set alpha here)"] = "羅盤圓圈顏色(這裏你也可以設定透明度)"
912 | La["Color of the Success Circle (you can also set alpha here)"] = "成功圈圈顏色(這裏你也可以設定透明度)"
913 | La["Compass Circle Color"] = "羅盤圓圈顏色"
914 | La["Compass Settings"] = "羅盤設定"
915 | La["Dig Sites"] = "挖掘場"
916 | La["Direction Marks Color"] = "方位標誌顏色"
917 | La["Display minimap icon"] = "顯示小地圖圖標"
918 | La["Draw arrow in the center of the HUD"] = "放置箭頭在HUD的中心"
919 | La["Draw compass-like circle on the HUD"] = "放置類似羅盤的圓圈在HUD"
920 | La["General HUD Settings"] = "一般HUD設定"
921 | La["green"] = "綠色"
922 | La["Green"] = "綠色"
923 | La["Hide on combat"] = "戰鬥時隱藏"
924 | La["Hide when resting"] = "休息時隱藏"
925 | La["Horizontal position of HUD relative to screen center"] = "HUD相對於螢幕中央的水平位置"
926 | La["How transparent is HUD"] = "設置HUD的透明度"
927 | La["How transparent is Player Arrow"] = "設置玩家箭頭的透明度"
928 | La["How transparent is %s Annulus Sector"] = "設置在 %s 環型扇區的透明度"
929 | La["How transparent is %s Direction Line"] = "設置在 %s 方位線的透明度"
930 | La["How transparent is window"] = "設置在視窗的透明度"
931 | La["HUD"] = "HUD"
932 | La["HUD Alpha"] = "HUD透明度"
933 | La["HUD Scaling"] = "HUD縮放"
934 | La["HUD settings"] = "HUD設定"
935 | La["HUD X-Offset"] = "HUD X軸偏移量"
936 | La["HUD Y-Offset"] = "HUD Y軸偏移量"
937 | La["Key Bindings Settings"] = "按鍵綁定設置"
938 | La["Left Click"] = "左鍵點擊"
939 | La["Locked"] = "鎖定"
940 | La["Locks window to prevent accidental repositioning"] = "鎖定視窗以防止意外改變位置"
941 | La["Main Window"] = "主視窗"
942 | La["Main window settings"] = "主視窗設置"
943 | La["Middle Click"] = "中鍵點擊"
944 | La["Minimap Icon"] = "小地圖圖標"
945 | La["Misc Settings"] = "雜項設置"
946 | La["Mount %s"] = "坐騎 %s"
947 | La["move window"] = "移動視窗"
948 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "只顯示GatherMate2的考古點在HUD上"
949 | La["Open archaeology window"] = "開啟考古學視窗"
950 | La["Play confirmation sounds for various actions"] = "為各種行動撥放確認聲音"
951 | La["Play Sounds"] = "播放聲音"
952 | La["Radius of the compass circle"] = "羅盤圓圈的半徑"
953 | La["Radius (yards)"] = "半徑(碼)"
954 | La["red"] = "紅色"
955 | La["Red"] = "紅色"
956 | La["Redirect GatherMate2 output to the HUD when visible"] = "當可視時重新指向GatherMate2的輸出到HUD"
957 | La["remove one previously added area"] = "移除一個先前增加的區域"
958 | La["Remove one previously added area"] = "移除一個先前增加的區域範圍"
959 | La["Reset All Settings"] = "重設所有設定"
960 | La["Reset Position"] = "重設位置"
961 | La["Resets all settings to defaults"] = "重設所有設定為預設"
962 | La["Resets window position to the center of the screen"] = "重設視窗位置到螢幕中央"
963 | La["Right Click"] = "右鍵點擊"
964 | La["Scale main window Tooltips"] = "縮放主視窗工具提示"
965 | La["Scaling"] = "縮放"
966 | La["Show compass"] = "顯示羅盤"
967 | La["Show digsites on the Battlefield Minimap"] = "在戰場小地圖上顯示挖掘場"
968 | La["Show digsites on the Minimap"] = "在小地圖上顯示挖掘場"
969 | La["Show GatherMate2 pins on the HUD (recomended)"] = "顯示GatherMate2的點在HUD(建議)"
970 | La["Show/Hide all %s areas"] = "顯示/隱藏 所有 %s 區域"
971 | La["show/hide all %s areas on the HUD"] = "顯示/隱藏HUD上所有%s的區域"
972 | La["Show/Hide Config"] = "顯示/隱藏設置選項"
973 | La["show/hide digsites on minimap"] = "顯示/隱藏小地圖上的挖掘場"
974 | La["Show/Hide the HUD"] = "顯示/隱藏 HUD"
975 | La["Show/Hide the Main Window"] = "顯示/隱藏主視窗"
976 | La["Show/Hide window when entering/leaving a digsite"] = "當進入/離開探勘點時顯示/隱藏視窗"
977 | La["Show/Hide window when you show/hide Archy addon"] = "當你顯示/隱藏Archy插件時也顯示/隱藏視窗"
978 | La["Show Player Arrow"] = "顯示玩家箭頭"
979 | La["Show Success Circle"] = "顯示成功圈圈"
980 | La["Show Tooltips"] = "顯示工具提示"
981 | La["Show Tooltips in the main window"] = "顯示工具提示在主視窗"
982 | La[ [=[Size of the HUD
983 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[HUD尺寸大小
984 | 如果你需要縮放 - 請使用小地圖縮放代替]=]
985 | La["Size of the main window"] = "主視窗大小"
986 | La["Size of the Player Arrow"] = "玩家箭頭大小"
987 | La["%s Line Alpha"] = "%s 線條透明度"
988 | La["%s Sector Alpha"] = "%s 扇區透明度"
989 | La["Success Circle Color"] = "成功圈圈顏色"
990 | La["Survey will succeed if fragment lies within this circle"] = "如果碎片在此圈圈內探勘將會成功"
991 | La["This will overwrite current settings!"] = "這將會覆寫現有的設定"
992 | La["This will reset Main Window position"] = "這會重設主視窗的位置"
993 | La["Toggle with Archy"] = "跟Archy一起切換"
994 | La["Toggle with digsite"] = "探勘點切換"
995 | La["Tooltips Scaling"] = "工具提示縮放"
996 | La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = "使用 |cff69ccf0Shift-M|r 以開啟或隱藏戰場小地圖"
997 | La["Vertical position of HUD relative to screen center"] = "HUD相對於螢幕中央的垂直位置"
998 | La["Visible"] = "可視性"
999 | La["Visual Settings"] = "視覺設定"
1000 | La["Whether window is visible"] = "視窗是否可見"
1001 | La["yellow"] = "黃色"
1002 | La["Yellow"] = "黃色"
1003 | La["You can also use %s command for this action"] = "你也可以使用%s的指令來作此動作"
1004 |
1005 | elseif locale == "ptBR" then do end
1006 | -- La["add new %s zone to the HUD"] = ""
1007 | La["Add %s area to the HUD"] = "Adicionar área %s ao HUD" -- Needs review
1008 | La["Alpha"] = "Transparência" -- Needs review
1009 | La["Annulus Sectors Settings"] = "Configurações de Setores do Anel" -- Needs review
1010 | La["Archaeology Helper"] = "Ajudante de Arqueologia" -- Needs review
1011 | -- La["Arch nodes only"] = ""
1012 | La["Arrow Alpha"] = "Transparência da seta" -- Needs review
1013 | La["Arrow Scaling"] = "Dimensão do Cursor" -- Needs review
1014 | La["Audio Settings"] = "Configurações de Audio" -- Needs review
1015 | -- La["Automatically mount when adding this color to the HUD"] = ""
1016 | -- La["cast Survey"] = ""
1017 | La["Cast Survey"] = "Sondar" -- Needs review
1018 | -- La["clear HUD"] = ""
1019 | -- La["Color of Compass Direction Marks (you can also set alpha here)"] = ""
1020 | -- La["Color of the Compass Circle (you can also set alpha here)"] = ""
1021 | -- La["Color of the Success Circle (you can also set alpha here)"] = ""
1022 | -- La["Compass Circle Color"] = ""
1023 | La["Compass Settings"] = "Configurações do Compasso" -- Needs review
1024 | La["Dig Sites"] = "Sitios Arqueologicos" -- Needs review
1025 | La["Direction Marks Color"] = "Cores das Marcas de Direção" -- Needs review
1026 | -- La["Display minimap icon"] = ""
1027 | La["Draw arrow in the center of the HUD"] = "Dezenhar cursor no centro do HUD" -- Needs review
1028 | -- La["Draw compass-like circle on the HUD"] = ""
1029 | La["General HUD Settings"] = "Configurações gerais do HUD" -- Needs review
1030 | -- La["green"] = ""
1031 | La["Green"] = "Verde" -- Needs review
1032 | -- La["Hide on combat"] = ""
1033 | -- La["Hide when resting"] = ""
1034 | -- La["Horizontal position of HUD relative to screen center"] = ""
1035 | La["How transparent is HUD"] = "Transparência do HUD" -- Needs review
1036 | La["How transparent is Player Arrow"] = "Transparência do cursor" -- Needs review
1037 | -- La["How transparent is %s Annulus Sector"] = ""
1038 | -- La["How transparent is %s Direction Line"] = ""
1039 | La["How transparent is window"] = "Transparência da janela" -- Needs review
1040 | -- La["HUD"] = ""
1041 | -- La["HUD Alpha"] = ""
1042 | La["HUD Scaling"] = "Escala do HUD" -- Needs review
1043 | La["HUD settings"] = "Configurações do HUD" -- Needs review
1044 | -- La["HUD X-Offset"] = ""
1045 | -- La["HUD Y-Offset"] = ""
1046 | -- La["Key Bindings Settings"] = ""
1047 | -- La["Left Click"] = ""
1048 | La["Locked"] = "Travado" -- Needs review
1049 | La["Locks window to prevent accidental repositioning"] = "Travar janela para previnir deslocamento acidental" -- Needs review
1050 | La["Main Window"] = "Janela principal" -- Needs review
1051 | La["Main window settings"] = "Configurções da janela principal" -- Needs review
1052 | -- La["Middle Click"] = ""
1053 | -- La["Minimap Icon"] = ""
1054 | -- La["Misc Settings"] = ""
1055 | -- La["Mount %s"] = ""
1056 | -- La["move window"] = ""
1057 | -- La["Only show Archaeology nodes from GatherMate2 on the HUD"] = ""
1058 | -- La["Open archaeology window"] = ""
1059 | La["Play confirmation sounds for various actions"] = "Tocar som de confirmação para diversas ações" -- Needs review
1060 | La["Play Sounds"] = "Tocar Sons" -- Needs review
1061 | La["Radius of the compass circle"] = "Raio do circulo do compasso" -- Needs review
1062 | La["Radius (yards)"] = "Raio (metros)" -- Needs review
1063 | -- La["red"] = ""
1064 | La["Red"] = "Vermelho" -- Needs review
1065 | -- La["Redirect GatherMate2 output to the HUD when visible"] = ""
1066 | -- La["remove one previously added area"] = ""
1067 | -- La["Remove one previously added area"] = ""
1068 | -- La["Reset All Settings"] = ""
1069 | -- La["Reset Position"] = ""
1070 | -- La["Resets all settings to defaults"] = ""
1071 | -- La["Resets window position to the center of the screen"] = ""
1072 | -- La["Right Click"] = ""
1073 | -- La["Scale main window Tooltips"] = ""
1074 | -- La["Scaling"] = ""
1075 | -- La["Show compass"] = ""
1076 | -- La["Show digsites on the Battlefield Minimap"] = ""
1077 | -- La["Show digsites on the Minimap"] = ""
1078 | -- La["Show GatherMate2 pins on the HUD (recomended)"] = ""
1079 | -- La["Show/Hide all %s areas"] = ""
1080 | -- La["show/hide all %s areas on the HUD"] = ""
1081 | -- La["Show/Hide Config"] = ""
1082 | -- La["show/hide digsites on minimap"] = ""
1083 | -- La["Show/Hide the HUD"] = ""
1084 | -- La["Show/Hide the Main Window"] = ""
1085 | -- La["Show/Hide window when entering/leaving a digsite"] = ""
1086 | -- La["Show/Hide window when you show/hide Archy addon"] = ""
1087 | -- La["Show Player Arrow"] = ""
1088 | -- La["Show Success Circle"] = ""
1089 | -- La["Show Tooltips"] = ""
1090 | -- La["Show Tooltips in the main window"] = ""
1091 | --[==[ La[ [=[Size of the HUD
1092 | If you need ZOOM - use Minimap ZOOM instead]=] ] = "" ]==]
1093 | -- La["Size of the main window"] = ""
1094 | -- La["Size of the Player Arrow"] = ""
1095 | La["%s Line Alpha"] = "Tranparência da Linha %s" -- Needs review
1096 | La["%s Sector Alpha"] = "Transparência do Setor %s" -- Needs review
1097 | -- La["Success Circle Color"] = ""
1098 | -- La["Survey will succeed if fragment lies within this circle"] = ""
1099 | -- La["This will overwrite current settings!"] = ""
1100 | -- La["This will reset Main Window position"] = ""
1101 | -- La["Toggle with Archy"] = ""
1102 | -- La["Toggle with digsite"] = ""
1103 | -- La["Tooltips Scaling"] = ""
1104 | -- La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = ""
1105 | -- La["Vertical position of HUD relative to screen center"] = ""
1106 | -- La["Visible"] = ""
1107 | -- La["Visual Settings"] = ""
1108 | -- La["Whether window is visible"] = ""
1109 | -- La["yellow"] = ""
1110 | -- La["Yellow"] = ""
1111 | -- La["You can also use %s command for this action"] = ""
1112 |
1113 | elseif locale == "itIT" then do end
1114 | La["add new %s zone to the HUD"] = "aggiungi nuova %s zona all'HUD"
1115 | La["Add %s area to the HUD"] = "Aggiungi un'area %s all'interfaccia"
1116 | La["Alpha"] = "Alfa" -- Needs review
1117 | La["Annulus Sectors Settings"] = "Impostazioni corone dei settori" -- Needs review
1118 | La["Archaeology Helper"] = "Archaelogy Helper"
1119 | La["Arch nodes only"] = "Solo nodi ad arco" -- Needs review
1120 | -- La["Arrow Alpha"] = ""
1121 | La["Arrow Scaling"] = "Scala il Puntatore" -- Needs review
1122 | La["Audio Settings"] = "Impostazioni Audio"
1123 | -- La["Automatically mount when adding this color to the HUD"] = ""
1124 | La["cast Survey"] = "Esegui Ricerca"
1125 | La["Cast Survey"] = "Lancia Rilevamento"
1126 | La["clear HUD"] = "Pulisci HUD"
1127 | -- La["Color of Compass Direction Marks (you can also set alpha here)"] = ""
1128 | -- La["Color of the Compass Circle (you can also set alpha here)"] = ""
1129 | La["Color of the Success Circle (you can also set alpha here)"] = "Colore del circolo di successo (puoi impostare anche gli alfa qui)"
1130 | -- La["Compass Circle Color"] = ""
1131 | La["Compass Settings"] = "Impostazioni della Bussola" -- Needs review
1132 | La["Dig Sites"] = "Siti di Scavo"
1133 | La["Direction Marks Color"] = "Colere dei punti di direzione"
1134 | La["Display minimap icon"] = "Mostra icona sulla minimappa"
1135 | La["Draw arrow in the center of the HUD"] = "Disegna il puntatore al centro dell'HUD" -- Needs review
1136 | La["Draw compass-like circle on the HUD"] = "Disegna cerchi simili ad una bussola sull'HUD"
1137 | La["General HUD Settings"] = "Impostazioni Generali dell'HUD"
1138 | La["green"] = "verde"
1139 | La["Green"] = "Verde"
1140 | La["Hide on combat"] = "Nascondi durante il combattimento"
1141 | La["Hide when resting"] = "Nascondi quando riposi"
1142 | La["Horizontal position of HUD relative to screen center"] = "Posizione orizzontale dell'HUD relativa al centro dello schermo"
1143 | La["How transparent is HUD"] = "Trasparenza HUD"
1144 | La["How transparent is Player Arrow"] = "Trasparenza del Puntatore del Giocatore"
1145 | La["How transparent is %s Annulus Sector"] = "Trasparenza del Settore Anulare %s" -- Needs review
1146 | La["How transparent is %s Direction Line"] = "Trasparenza della Linea di Direzione %s"
1147 | La["How transparent is window"] = "Trasparenza della Finestra"
1148 | La["HUD"] = "HUD"
1149 | La["HUD Alpha"] = "HUD Alfa" -- Needs review
1150 | La["HUD Scaling"] = "Scala dell'HUD"
1151 | La["HUD settings"] = "Impostazioni dell'HUD"
1152 | La["HUD X-Offset"] = "HUD X-Offset"
1153 | La["HUD Y-Offset"] = "HUD Y-Offset"
1154 | La["Key Bindings Settings"] = "Impostazioni Tasti"
1155 | La["Left Click"] = "Click Sinistro"
1156 | La["Locked"] = "Bloccato"
1157 | La["Locks window to prevent accidental repositioning"] = "Blocca la finestra per evitare un riposizionamento accidentale"
1158 | La["Main Window"] = "Finestra Principare" -- Needs review
1159 | La["Main window settings"] = "Impostazioni della Finestra Principale"
1160 | La["Middle Click"] = "Click Centrale" -- Needs review
1161 | La["Minimap Icon"] = "Icona sulla minimappa"
1162 | La["Misc Settings"] = "Impostazioni Varie"
1163 | -- La["Mount %s"] = ""
1164 | La["move window"] = "Muovi la finestra"
1165 | La["Only show Archaeology nodes from GatherMate2 on the HUD"] = "Mostra solo i nodi di Archeologia provenienti da GatherMate2 sull'HUD"
1166 | La["Open archaeology window"] = "Apri la Finestra di Archeologia"
1167 | La["Play confirmation sounds for various actions"] = "Esegui suoni di Conferma per varie Azioni"
1168 | La["Play Sounds"] = "Esegui i Suoni"
1169 | La["Radius of the compass circle"] = "Raggio del cerchio della Bussola" -- Needs review
1170 | La["Radius (yards)"] = "Raggio(Yards)"
1171 | La["red"] = "Rosso"
1172 | La["Red"] = "Rosso"
1173 | La["Redirect GatherMate2 output to the HUD when visible"] = "Ridireziona l'output di GatherMate2 sull'HUD, quando visibile"
1174 | La["remove one previously added area"] = "Rimuovi un'area aggiunta precedentemente"
1175 | La["Remove one previously added area"] = "Rimuovi un'area precedentemente aggiunta."
1176 | La["Reset All Settings"] = "Resetta tutte le Impostazioni"
1177 | La["Reset Position"] = "Resetta la Posizione" -- Needs review
1178 | La["Resets all settings to defaults"] = "Resetta tutte le Impostazioni al valore iniziale"
1179 | La["Resets window position to the center of the screen"] = "Resetta la posizione della finestra al centro dello schermo"
1180 | La["Right Click"] = "Click destro"
1181 | -- La["Scale main window Tooltips"] = ""
1182 | La["Scaling"] = "Scala" -- Needs review
1183 | La["Show compass"] = "Mostra bussola"
1184 | -- La["Show digsites on the Battlefield Minimap"] = ""
1185 | La["Show digsites on the Minimap"] = "Mostra i siti di scavo sulla minimappa"
1186 | La["Show GatherMate2 pins on the HUD (recomended)"] = "Mostra i punti di GatherMate2 sull'HUD (Raccomandato)"
1187 | La["Show/Hide all %s areas"] = "Mostra/Nascondi tutte le aree &s"
1188 | La["show/hide all %s areas on the HUD"] = "Mostra/Nascondi tutte le aree %s sull'HUD"
1189 | La["Show/Hide Config"] = "Mostra/Nascondi Configurazione"
1190 | La["show/hide digsites on minimap"] = "Mostra/Nascondi i siti di scavo sulla minimappa"
1191 | La["Show/Hide the HUD"] = "Mostra/Nascondi l'HUD"
1192 | La["Show/Hide the Main Window"] = "Mostra/Nascondi la Finestra principale"
1193 | La["Show/Hide window when entering/leaving a digsite"] = "Mostra/Nascondi la finestra quando entri/lasci un sito di scavo"
1194 | La["Show/Hide window when you show/hide Archy addon"] = "Mostra/Nascondi finestra quando mostri/nascondi Archeology Addon"
1195 | La["Show Player Arrow"] = "Mostra il puntatore del giocatore"
1196 | La["Show Success Circle"] = "Mostra il cerchio di successo"
1197 | -- La["Show Tooltips"] = ""
1198 | -- La["Show Tooltips in the main window"] = ""
1199 | La[ [=[Size of the HUD
1200 | If you need ZOOM - use Minimap ZOOM instead]=] ] = [=[Dimensione dell'HUD
1201 | Se ti serve ZOOM usa piuttosto lo ZOOM della mini mappa]=]
1202 | La["Size of the main window"] = "Dimensione della finestra principale"
1203 | La["Size of the Player Arrow"] = "Dimensione del puntatore del giocatore"
1204 | -- La["%s Line Alpha"] = ""
1205 | -- La["%s Sector Alpha"] = ""
1206 | La["Success Circle Color"] = "Colore del cerchio di successo"
1207 | La["Survey will succeed if fragment lies within this circle"] = "La ricerca avrà successo se il frammento giace all'interno di questo circolo."
1208 | La["This will overwrite current settings!"] = "Questo sovrascriverà le impostazioni attuali!"
1209 | La["This will reset Main Window position"] = "Questo resetterà la posizione della finestra principale"
1210 | -- La["Toggle with Archy"] = ""
1211 | -- La["Toggle with digsite"] = ""
1212 | -- La["Tooltips Scaling"] = ""
1213 | -- La["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"] = ""
1214 | La["Vertical position of HUD relative to screen center"] = "Posizione verticale dell'HUD relativa al centro dello schermo"
1215 | La["Visible"] = "Visibile"
1216 | La["Visual Settings"] = "Impostazioni visuale"
1217 | La["Whether window is visible"] = "Se la finestra è visibile"
1218 | La["yellow"] = "Giallo"
1219 | La["Yellow"] = "Giallo"
1220 | -- La["You can also use %s command for this action"] = ""
1221 |
1222 | end
1223 |
--------------------------------------------------------------------------------
/Arh.lua:
--------------------------------------------------------------------------------
1 | local addonName, vars = ...
2 | local L = vars.L
3 | Arh = {}
4 | local addon = Arh
5 | addon.vars = vars
6 | vars.svnrev = vars.svnrev or {}
7 | local svnrev = vars.svnrev
8 | svnrev["Arh.lua"] = tonumber(("$Revision: 107 $"):match("%d+"))
9 |
10 | local Config = nil -- AceConfig-3.0
11 | local minimapIcon = LibStub("LibDBIcon-1.0")
12 | local LDB, LDBo
13 |
14 | local cfg = nil
15 |
16 | local ARH_GREEN = 1
17 | local ARH_YELLOW = 2
18 | local ARH_RED = 3
19 | local id2cname = {
20 | [ARH_GREEN] = "Green",
21 | [ARH_YELLOW] = "Yellow",
22 | [ARH_RED] = "Red",
23 | }
24 | local id2rgb = {
25 | [ARH_GREEN] = { 0, 1, 0 },
26 | [ARH_YELLOW] = { 0.5, 0.5, 0 },
27 | [ARH_RED] = { 1, 0, 0 },
28 | }
29 | addon.colorButton = {}
30 |
31 | local CONYARDS = {[ARH_GREEN] = 40, [ARH_YELLOW] = 80, [ARH_RED] = 640}
32 |
33 | local minimap_size =
34 | {
35 | indoor =
36 | {
37 | [0] = 300, -- scale
38 | [1] = 240, -- 1.25
39 | [2] = 180, -- 5/3
40 | [3] = 120, -- 2.5
41 | [4] = 80, -- 3.75
42 | [5] = 50, -- 6
43 | },
44 | outdoor =
45 | {
46 | [0] = 466 + 2/3, -- scale
47 | [1] = 400, -- 7/6
48 | [2] = 333 + 1/3, -- 1.4
49 | [3] = 266 + 2/6, -- 1.75
50 | [4] = 200, -- 7/3
51 | [5] = 133 + 1/3, -- 3.5
52 | },
53 | }
54 | local minimap_scale =
55 | {
56 | indoor =
57 | {
58 | [0] = 1,
59 | [1] = 1.25,
60 | [2] = 5/3,
61 | [3] = 2.5,
62 | [4] = 3.75,
63 | [5] = 6,
64 | },
65 | outdoor =
66 | {
67 | [0] = 1,
68 | [1] = 7/6,
69 | [2] = 1.4,
70 | [3] = 1.75,
71 | [4] = 7/3,
72 | [5] = 3.5,
73 | },
74 | }
75 |
76 | local function CopyByValue(t)
77 | if type(t) ~= "table" then return t end
78 | local t2 = {}
79 | for k,v in pairs(t) do
80 | t2[CopyByValue(k)] = CopyByValue(v)
81 | end
82 | return t2
83 | end
84 |
85 | local function GetNewestStructure(old, new)
86 | if new == nil then return nil end
87 | if old == nil then return CopyByValue(new) end -- field added
88 | if type(old) ~= type(new) then return CopyByValue(new) end -- structure changed
89 | if type(old) ~= "table" then return old end -- same structure, using old value
90 | local t = {}
91 | for k,v in pairs(new) do -- using new structure
92 | t[CopyByValue(k)] = GetNewestStructure(old[k], v)
93 | end
94 | return t
95 | end
96 |
97 | local function SetVisible(self, visible)
98 | if visible then
99 | self:Show()
100 | else
101 | self:Hide()
102 | end
103 | end
104 |
105 | local SOUND_SHOWMAINFRAME = 567529 --"Sound\\interface\\uMiniMapOpen.ogg"
106 | local SOUND_HIDEMAINFRAME = 567515 --"Sound\\interface\\uMiniMapClose.ogg"
107 | local SOUND_ADDCON = 567481 --"Sound\\Interface\\iUiInterfaceButtonA.ogg"
108 | local SOUND_SHOWCOLOR = 569839 --"Sound\\Universal\\TomeUnSheath.ogg"
109 | local SOUND_HIDECOLOR = 569842 --"Sound\\Universal\\TomeSheath.ogg"
110 | local SOUND_BACK = 567573 --"Sound\\interface\\PickUp\\PickUpMeat.ogg"
111 | --local SOUND_GATHERING = "Sound\\interface\\PickUp\\PickUpMeat.wav"
112 |
113 | local function PlaySound(soundfile)
114 | if cfg.MainFrame.PlaySounds then
115 | PlaySoundFile(soundfile)
116 | end
117 | end
118 |
119 | local function ArchyShown()
120 | return Archy and Archy.db and Archy.db.profile and Archy.db.profile.general and Archy.db.profile.general.show
121 | end
122 |
123 | local function ArchyUpdate()
124 | local shown = ArchyShown()
125 | if addon.archy_state == shown then return end -- no change
126 | addon.archy_state = shown
127 | local follow = cfg and cfg.MainFrame and cfg.MainFrame.FollowArchy
128 | if not follow then return end -- disabled
129 | addon:ToggleMainFrame(shown)
130 | end
131 |
132 | function addon:HookArchy()
133 | if Archy and Archy.ConfigUpdated and not addon.archy_hooked then
134 | hooksecurefunc(Archy, "ConfigUpdated", ArchyUpdate)
135 | addon.archy_hooked = true
136 | addon.archy_state = ArchyShown()
137 | end
138 | end
139 |
140 | local function DigsiteUpdate(self, elapsed)
141 | if InCombatLockdown() then return end
142 | local shown = CanScanResearchSite()
143 | local follow = cfg and cfg.MainFrame and cfg.MainFrame.FollowDigsite
144 | if follow and not cfg.MainFrame.Visible ~= not shown then
145 | addon:ToggleMainFrame(shown)
146 | end
147 | end
148 |
149 | addon.hiddenFrame = CreateFrame("Button", "ArhHiddenFrame", UIParent)
150 | addon.hiddenFrame:SetScript("OnUpdate",DigsiteUpdate)
151 |
152 | function addon:ToggleMainFrame(enable)
153 | if enable ~= nil then
154 | cfg.MainFrame.Visible = enable
155 | else
156 | cfg.MainFrame.Visible = not Arh_MainFrame:IsVisible()
157 | end
158 | if not InCombatLockdown() then SetVisible(Arh_MainFrame, cfg.MainFrame.Visible) end
159 | addon:ToggleHUD(cfg.MainFrame.Visible)
160 | if cfg.MainFrame.Visible then
161 | PlaySound(SOUND_SHOWMAINFRAME)
162 | else
163 | PlaySound(SOUND_HIDEMAINFRAME)
164 | end
165 | end
166 |
167 | function addon:ToggleHUD(enable)
168 | if enable ~= nil then
169 | cfg.HUD.Visible = enable
170 | else
171 | cfg.HUD.Visible = not Arh_HudFrame:IsVisible()
172 | end
173 | Arh_MainFrame_ButtonDig.Canceled = not cfg.HUD.Visible
174 | SetVisible(Arh_MainFrame_ButtonDig.CanceledTexture, not cfg.HUD.Visible)
175 | SetVisible(Arh_HudFrame, cfg.HUD.Visible)
176 | addon.suppress = false -- manual override disables suppression
177 | --[[
178 | if cfg.HUD.Visible then
179 | PlaySound(SOUND_SHOWMAINFRAME)
180 | else
181 | PlaySound(SOUND_HIDEMAINFRAME)
182 | end
183 | --]]
184 | end
185 |
186 | function addon:CheckSuppress()
187 | local shouldsuppress = false
188 | if UnitIsGhost("player") or
189 | UnitInBattleground("player") or
190 | UnitInVehicle("player") or
191 | IsInInstance() or
192 | (C_PetBattles and C_PetBattles.IsInBattle()) or -- in pet battle
193 | not select(3,GetProfessions()) -- lacks archaeology
194 | then
195 | shouldsuppress = true
196 | elseif cfg.MainFrame.HideCombat and (InCombatLockdown() or UnitAffectingCombat("player") or UnitAffectingCombat("pet")) then
197 | shouldsuppress = true
198 | elseif cfg.MainFrame.HideResting and IsResting() then
199 | shouldsuppress = true
200 | end
201 | if shouldsuppress and not addon.suppress then -- begin suppress
202 | if not InCombatLockdown() then SetVisible(Arh_MainFrame, false) end
203 | SetVisible(Arh_HudFrame, false)
204 | addon.suppress = true
205 | elseif not shouldsuppress and addon.suppress then -- end suppress
206 | if not InCombatLockdown() then SetVisible(Arh_MainFrame, cfg.MainFrame.Visible) end
207 | SetVisible(Arh_HudFrame, cfg.HUD.Visible)
208 | addon.suppress = false
209 | end
210 | end
211 |
212 | function addon:Config()
213 | if Settings and Settings.OpenToCategory then
214 | Settings.OpenToCategory(addonName)
215 | else
216 | InterfaceOptionsFrame_OpenToCategory(addonName)
217 | end
218 | end
219 |
220 | function addon:ToggleArch()
221 | if not C_AddOns.IsAddOnLoaded("Blizzard_ArchaeologyUI") then
222 | local loaded, reason = C_AddOns.LoadAddOn("Blizzard_ArchaeologyUI")
223 | if not loaded then return end
224 | end
225 | if ArchaeologyFrame:IsShown() then
226 | HideUIPanel(ArchaeologyFrame)
227 | else
228 | ShowUIPanel(ArchaeologyFrame)
229 | end
230 | end
231 |
232 | local function cs(str)
233 | return "|cffffff78"..str.."|r"
234 | end
235 |
236 | Arh_DefaultConfig =
237 | {
238 | MainFrame =
239 | {
240 | Visible = true,
241 | FollowArchy = true,
242 | FollowDigsite = true,
243 | HideCombat = true,
244 | HideResting = true,
245 | Locked = false,
246 | Scale = 1,
247 | Alpha = 1,
248 | ShowTooltips = true,
249 | TooltipsScale = 1,
250 | PlaySounds = true,
251 | MountGreen = false,
252 | MountYellow = true,
253 | MountRed = true,
254 | posX = 0,
255 | posY = 0,
256 | point = "CENTER",
257 | },
258 | HUD =
259 | {
260 | Visible = true,
261 | UseGatherMate2 = true,
262 | Scale = 1,
263 | Alpha = 1,
264 | PosX = 0,
265 | PosY = 0,
266 | ShowArrow = true,
267 | ArrowScale = 1,
268 | ArrowAlpha = 1,
269 | ArchOnly = true,
270 | ShowSuccessCircle = true,
271 | SuccessCircleColor = {r=1, g=0, b=0, a=1},
272 | ShowCompass = false,
273 | CompassRadius = 120,
274 | CompassColor = {r=0, g=1, b=0, a=0.5},
275 | CompassTextColor = {r=0, g=1, b=0, a=0.5},
276 | RedSectAlpha = 0.1,
277 | RedLineAlpha = 0.05,
278 | YellowSectAlpha = 0.1,
279 | YellowLineAlpha = 0.2,
280 | GreenSectAlpha = 0.1,
281 | GreenLineAlpha = 0.2,
282 | },
283 | DigSites =
284 | {
285 | ShowOnBattlefieldMinimap = true,
286 | },
287 | Minimap =
288 | {
289 | hide = false,
290 | minimapPos = 0,
291 | },
292 | }
293 |
294 | -- label bindings
295 | BINDING_HEADER_ARH = L["Archaeology Helper"]
296 | local bindings = {
297 | { name="Dig:Left", desc=L["Cast Survey"], },
298 | { name="SHOWARCH", desc=L["Open archaeology window"] },
299 | { name="TOGGLEMAIN", desc=L["Show/Hide the Main Window"], alias="t" },
300 | { name="TOGGLEHUD", desc=L["Show/Hide the HUD"], alias="h" },
301 | { name="Back:Left", desc=L["Remove one previously added area"], alias="b", order=-1 },
302 | }
303 | for _,color in ipairs(id2cname) do
304 | local c = color:lower():sub(1,1)
305 | table.insert(bindings, { name=color..":Left", desc=L["Add %s area to the HUD"]:format(L[color:lower()]), alias="a"..c })
306 | table.insert(bindings, { name=color..":Right", desc=L["Show/Hide all %s areas"]:format(L[color:lower()]), alias="t"..c })
307 | end
308 | for _, info in ipairs(bindings) do
309 | local bindname
310 | if info.name:find(":") then
311 | info.bindname = string.format("CLICK Arh_MainFrame_Button%sButton",info.name)
312 | else
313 | info.bindname = string.format("ARH_%s",info.name)
314 | end
315 | _G["BINDING_NAME_"..info.bindname] = info.desc
316 | end
317 |
318 | function addon:ResetSettings()
319 | local c
320 |
321 | -- MainFrame
322 | SetVisible(Arh_MainFrame, cfg.MainFrame.Visible)
323 | Arh_MainFrame:SetScale(cfg.MainFrame.Scale)
324 | Arh_MainFrame:SetAlpha(cfg.MainFrame.Alpha)
325 | Arh_MainFrame:ClearAllPoints()
326 | Arh_MainFrame:SetPoint("CENTER")
327 |
328 | -- HUD
329 | Arh_SetUseGatherMate2(cfg.HUD.UseGatherMate2)
330 | addon:HUD_config_update()
331 | Arh_UpdateHudFrameSizes(true)
332 |
333 | -- Annulus Sectors
334 | addon:UpdateAlphaEverything()
335 | addon:ToggleHUD(cfg.HUD.Visible)
336 |
337 | -- Dig Sites
338 | SetVisible(Arh_ArchaeologyDigSites_BattlefieldMinimap, cfg.DigSites.ShowOnBattlefieldMinimap)
339 |
340 | end
341 |
342 | -- return current value of minimap arch tracking
343 | function addon:GetDigsiteTracking()
344 | local id, active
345 |
346 | for i=1,C_Minimap.GetNumTrackingTypes() do
347 | local trackingInfo = C_Minimap.GetTrackingInfo(i)
348 | if trackingInfo["name"]:find("Track Digsites") then
349 | id = i
350 | active = a
351 | break
352 | end
353 | end
354 | return active, id
355 | end
356 | -- set minimap arch tracking and return the old enabled value
357 | function addon:SetDigsiteTracking(on)
358 | local active, id = addon:GetDigsiteTracking()
359 | if id then
360 | C_Minimap.SetTracking(id, on)
361 | end
362 | return active
363 | end
364 |
365 | local OptionsTable =
366 | {
367 | type = "group",
368 | args =
369 | {
370 | ResetToDefaults =
371 | {
372 | order = 1,
373 | name = L["Reset All Settings"],
374 | desc = L["Resets all settings to defaults"],
375 | type = "execute",
376 | confirm = true,
377 | confirmText = L["This will overwrite current settings!"],
378 | func =
379 | function()
380 | Arh_Config = CopyByValue(Arh_DefaultConfig)
381 | cfg = Arh_Config
382 | addon:ResetSettings()
383 | end,
384 | },
385 | MainFrame =
386 | {
387 | order = 2,
388 | name = L["Main Window"],
389 | desc = L["Main window settings"],
390 | type = "group",
391 | get = function(info)
392 | return cfg.MainFrame[info[#info]]
393 | end,
394 | set = function(info, value)
395 | cfg.MainFrame[info[#info]] = value
396 | end,
397 | args =
398 | {
399 | VisualOptions =
400 | {
401 | order = 1,
402 | type = "group",
403 | name = L["Visual Settings"],
404 | inline = true,
405 | args =
406 | {
407 | reset =
408 | {
409 | order = 1,
410 | name = L["Reset Position"],
411 | desc = L["Resets window position to the center of the screen"],
412 | type = "execute",
413 | width = "full",
414 | confirm = true,
415 | confirmText = L["This will reset Main Window position"],
416 | func =
417 | function()
418 | Arh_MainFrame:ClearAllPoints()
419 | Arh_MainFrame:SetPoint("CENTER")
420 | end,
421 | },
422 | Visible =
423 | {
424 | order = 2,
425 | name = L["Visible"],
426 | desc = L["Whether window is visible"],
427 | type = "toggle",
428 | set = function(info, val)
429 | addon:ToggleMainFrame(val)
430 | end,
431 | disabled = function(info) return cfg.MainFrame.FollowDigsite end,
432 | },
433 | FollowArchy =
434 | {
435 | order = 2.5,
436 | name = L["Toggle with Archy"],
437 | desc = L["Show/Hide window when you show/hide Archy addon"],
438 | type = "toggle",
439 | disabled = function(info) return not Archy or cfg.MainFrame.FollowDigsite end,
440 | },
441 | FollowDigsite =
442 | {
443 | order = 1.9,
444 | name = L["Toggle with digsite"],
445 | desc = L["Show/Hide window when entering/leaving a digsite"],
446 | type = "toggle",
447 | },
448 | HideCombat =
449 | {
450 | order = 2.7,
451 | name = L["Hide on combat"],
452 | desc = L["Hide on combat"],
453 | type = "toggle",
454 | },
455 | HideResting =
456 | {
457 | order = 2.9,
458 | name = L["Hide when resting"],
459 | desc = L["Hide when resting"],
460 | type = "toggle",
461 | },
462 | Locked =
463 | {
464 | order = 3,
465 | name = L["Locked"],
466 | desc = L["Locks window to prevent accidental repositioning"],
467 | type = "toggle",
468 | set = function(info, val)
469 | cfg.MainFrame.Locked = val
470 | end,
471 | },
472 | minimap = {
473 | order = 3.5,
474 | name = L["Minimap Icon"],
475 | desc = L["Display minimap icon"],
476 | type = "toggle",
477 | set = function(info,val)
478 | cfg.Minimap.hide = not val
479 | minimapIcon:Refresh(addonName)
480 | end,
481 | get = function() return not cfg.Minimap.hide end,
482 | },
483 | Scale =
484 | {
485 | order = 4,
486 | name = L["Scaling"],
487 | desc = L["Size of the main window"],
488 | type = "range",
489 | min = 0.1,
490 | max = 100,
491 | softMin = 0.5,
492 | softMax = 5,
493 | step = 0.1,
494 | set =
495 | function(info, val)
496 | cfg.MainFrame.Scale = val
497 | Arh_MainFrame:SetScale(val)
498 | end,
499 | },
500 | Alpha =
501 | {
502 | order = 5,
503 | name = L["Alpha"],
504 | desc = L["How transparent is window"],
505 | type = "range",
506 | min = 0,
507 | max = 1,
508 | step = 0.01,
509 | isPercent = true,
510 | set =
511 | function(info, val)
512 | cfg.MainFrame.Alpha = val
513 | Arh_MainFrame:SetAlpha(val)
514 | end,
515 | },
516 | ShowTooltips =
517 | {
518 | order = 6,
519 | name = L["Show Tooltips"],
520 | desc = L["Show Tooltips in the main window"],
521 | type = "toggle",
522 | },
523 | TooltipsScale =
524 | {
525 | order = 7,
526 | name = L["Tooltips Scaling"],
527 | desc = L["Scale main window Tooltips"],
528 | type = "range",
529 | min = 0.10,
530 | max = 3.00,
531 | step = 0.05,
532 | isPercent = true,
533 | disabled = function(info) return not cfg.MainFrame.ShowTooltips end,
534 | set =
535 | function(info, val)
536 | cfg.MainFrame.TooltipsScale = val
537 | Arh_Tooltip:SetScale(val)
538 | end,
539 | },
540 | },
541 | },
542 | MiscOptions =
543 | {
544 | order = 2,
545 | type = "group",
546 | name = L["Misc Settings"],
547 | inline = true,
548 | args = (function()
549 | local ret = {}
550 | ret.PlaySounds = {
551 | order = 1,
552 | name = L["Play Sounds"],
553 | desc = L["Play confirmation sounds for various actions"],
554 | type = "toggle",
555 | }
556 | for id,cname in ipairs(id2cname) do
557 | ret["Mount"..cname] = {
558 | order = 10+id,
559 | name = L["Mount %s"]:format(L[cname:lower()]),
560 | desc = L["Automatically mount when adding this color to the HUD"],
561 | type = "toggle",
562 | set = function(info, value)
563 | cfg.MainFrame[info[#info]] = value
564 | addon:init_travelform()
565 | end,
566 | }
567 | end
568 | return ret
569 | end)(),
570 | },
571 | },
572 | },
573 | KeyBindings = {
574 | order = 3.5,
575 | type = "group",
576 | name = KEY_BINDINGS,
577 | get = function(info)
578 | return GetBindingKey(info.arg)
579 | end,
580 | set = function(info, key)
581 | local action = info.arg
582 | if key == "" then
583 | oldkey = GetBindingKey(action)
584 | if oldkey then
585 | SetBinding(oldkey, nil)
586 | end
587 | else
588 | SetBinding(key, action)
589 | end
590 | SaveBindings(GetCurrentBindingSet())
591 | end,
592 | args = (function()
593 | local ret = {}
594 | for i,info in ipairs(bindings) do
595 | ret[info.name] = {
596 | order = info.order or i,
597 | width = "full",
598 | type = "keybinding",
599 | name = info.desc,
600 | arg = info.bindname,
601 | desc = info.alias and string.format(L["You can also use %s command for this action"],
602 | string.format("|cff69ccf0/arh %s|r", info.alias))
603 | or info.desc,
604 | }
605 | end
606 | return ret
607 | end)(),
608 | },
609 | HUD =
610 | {
611 | order = 3,
612 | name = L["HUD"],
613 | desc = L["HUD settings"],
614 | type = "group",
615 | args =
616 | {
617 | General =
618 | {
619 | order = 1,
620 | type = "group",
621 | name = L["General HUD Settings"],
622 | inline = true,
623 | get = function(info) return cfg.HUD[info[#info]] end,
624 | set = function(info,val)
625 | cfg.HUD[info[#info]] = val
626 | addon:HUD_config_update()
627 | end,
628 | args = {
629 | ShowGatherMate2 = {
630 | order = 1,
631 | name = L["Show GatherMate2 pins on the HUD (recomended)"],
632 | desc = L["Redirect GatherMate2 output to the HUD when visible"],
633 | type = "toggle",
634 | width = "full",
635 | disabled = function(info) return not GatherMate2 end,
636 | get = function(info) return cfg.HUD.UseGatherMate2 end,
637 | set = function(info,val) Arh_SetUseGatherMate2(val) end,
638 | },
639 | ArchOnly = {
640 | order = 1.5,
641 | name = L["Arch nodes only"],
642 | desc = L["Only show Archaeology nodes from GatherMate2 on the HUD"],
643 | type = "toggle",
644 | width = "full",
645 | set = function(info,val)
646 | cfg.HUD.ArchOnly = val
647 | addon:ToggleHUD();addon:ToggleHUD()
648 | end,
649 | disabled = function(info) return not cfg.HUD.UseGatherMate2 end,
650 | },
651 | Scale = {
652 | order = 2,
653 | name = L["HUD Scaling"],
654 | desc = L["Size of the HUD\nIf you need ZOOM - use Minimap ZOOM instead"],
655 | type = "range",
656 | min = 0.1,
657 | max = 100,
658 | softMin = 0.1,
659 | softMax = 3,
660 | step = 0.1,
661 | },
662 | Alpha = {
663 | order = 3,
664 | name = L["HUD Alpha"],
665 | desc = L["How transparent is HUD"],
666 | type = "range",
667 | min = 0,
668 | max = 1,
669 | step = 0.01,
670 | isPercent = true,
671 | },
672 | PosX = {
673 | order = 3,
674 | name = L["HUD X-Offset"],
675 | desc = L["Horizontal position of HUD relative to screen center"],
676 | type = "range",
677 | min = -0.5,
678 | max = 0.5,
679 | step = 0.01,
680 | isPercent = true,
681 | },
682 | PosY = {
683 | order = 3,
684 | name = L["HUD Y-Offset"],
685 | desc = L["Vertical position of HUD relative to screen center"],
686 | type = "range",
687 | min = -0.5,
688 | max = 0.5,
689 | step = 0.01,
690 | isPercent = true,
691 | },
692 | ShowArrow = {
693 | order = 4,
694 | name = L["Show Player Arrow"],
695 | desc = L["Draw arrow in the center of the HUD"],
696 | type = "toggle",
697 | width = "full",
698 | },
699 | ArrowScale = {
700 | order = 5,
701 | name = L["Arrow Scaling"],
702 | desc = L["Size of the Player Arrow"],
703 | type = "range",
704 | disabled = function(info) return not cfg.HUD.ShowArrow end,
705 | min = 0.1,
706 | max = 100,
707 | softMin = 0.1,
708 | softMax = 10,
709 | step = 0.1,
710 | },
711 | ArrowAlpha = {
712 | order = 6,
713 | name = L["Arrow Alpha"],
714 | desc = L["How transparent is Player Arrow"],
715 | type = "range",
716 | disabled = function(info) return not cfg.HUD.ShowArrow end,
717 | min = 0,
718 | max = 1,
719 | step = 0.01,
720 | isPercent = true,
721 | },
722 | ShowSuccessCircle = {
723 | order = 7,
724 | name = L["Show Success Circle"],
725 | desc = L["Survey will succeed if fragment lies within this circle"],
726 | type = "toggle",
727 | },
728 | SuccessCircleColor = {
729 | order = 8,
730 | name = L["Success Circle Color"],
731 | desc = L["Color of the Success Circle (you can also set alpha here)"],
732 | type = "color",
733 | hasAlpha = true,
734 | disabled = function(info) return not cfg.HUD.ShowSuccessCircle end,
735 | get =
736 | function(info)
737 | local c = cfg.HUD.SuccessCircleColor
738 | return c.r, c.g, c.b, c.a
739 | end,
740 | set =
741 | function(info, r, g, b, a)
742 | local c = cfg.HUD.SuccessCircleColor
743 | c.r, c.g, c.b, c.a = r, g, b, a
744 | addon:HUD_config_update()
745 | end,
746 | },
747 |
748 | },
749 | },
750 | Compass =
751 | {
752 | order = 2,
753 | type = "group",
754 | name = L["Compass Settings"],
755 | inline = true,
756 | args =
757 | {
758 | ShowCompass =
759 | {
760 | order = 1,
761 | name = L["Show compass"],
762 | desc = L["Draw compass-like circle on the HUD"],
763 | type = "toggle",
764 | get = function(info) return cfg.HUD.ShowCompass end,
765 | set =
766 | function(info,val)
767 | cfg.HUD.ShowCompass = val
768 | addon:HUD_config_update()
769 | end,
770 | },
771 | CompassRadius =
772 | {
773 | order = 2,
774 | name = L["Radius (yards)"],
775 | desc = L["Radius of the compass circle"],
776 | type = "range",
777 | disabled = function(info) return not cfg.HUD.ShowCompass end,
778 | min = 1,
779 | max = 1000,
780 | softMin = 10,
781 | softMax = 300,
782 | step = 1,
783 | get = function(info) return cfg.HUD.CompassRadius end,
784 | set =
785 | function(info,val)
786 | cfg.HUD.CompassRadius = val
787 | Arh_UpdateHudFrameSizes(true)
788 | end,
789 | },
790 | CompassColor =
791 | {
792 | order = 3,
793 | name = L["Compass Circle Color"],
794 | desc = L["Color of the Compass Circle (you can also set alpha here)"],
795 | type = "color",
796 | hasAlpha = true,
797 | disabled = function(info) return not cfg.HUD.ShowCompass end,
798 | get =
799 | function(info)
800 | local c = cfg.HUD.CompassColor
801 | return c.r, c.g, c.b, c.a
802 | end,
803 | set =
804 | function(info, r, g, b, a)
805 | local c = cfg.HUD.CompassColor
806 | c.r, c.g, c.b, c.a = r, g, b, a
807 | addon:HUD_config_update()
808 | end,
809 | },
810 | CompassTextColor =
811 | {
812 | order = 4,
813 | name = L["Direction Marks Color"],
814 | desc = L["Color of Compass Direction Marks (you can also set alpha here)"],
815 | type = "color",
816 | hasAlpha = true,
817 | disabled = function(info) return not cfg.HUD.ShowCompass end,
818 | get =
819 | function(info)
820 | local c = cfg.HUD.CompassTextColor
821 | return c.r, c.g, c.b, c.a
822 | end,
823 | set =
824 | function(info, r, g, b, a)
825 | local c = cfg.HUD.CompassTextColor
826 | c.r, c.g, c.b, c.a = r, g, b, a
827 | addon:HUD_config_update()
828 | end,
829 | },
830 |
831 | },
832 | },
833 | AnnulusSectors =
834 | {
835 | order = 3,
836 | type = "group",
837 | name = L["Annulus Sectors Settings"],
838 | inline = true,
839 | get = function(info) return cfg.HUD[info[#info]] end,
840 | set = function(info,val)
841 | cfg.HUD[info[#info]] = val
842 | addon:UpdateAlphaEverything()
843 | end,
844 | args = (function()
845 | local ret = {}
846 | for id,cname in ipairs(id2cname) do
847 | ret[cname.."SectAlpha"] = {
848 | order = id*2,
849 | name = L["%s Sector Alpha"]:format(L[cname]),
850 | desc = L["How transparent is %s Annulus Sector"]:format(L[cname]),
851 | type = "range",
852 | min = 0,
853 | max = 1,
854 | step = 0.01,
855 | isPercent = true,
856 | }
857 | ret[cname.."LineAlpha"] = {
858 | order = id*2+1,
859 | name = L["%s Line Alpha"]:format(L[cname]),
860 | desc = L["How transparent is %s Direction Line"]:format(L[cname]),
861 | type = "range",
862 | min = 0,
863 | max = 1,
864 | step = 0.01,
865 | isPercent = true,
866 | }
867 | end
868 | return ret
869 | end)()
870 | },
871 | },
872 | },
873 | DigSites =
874 | {
875 | order = 4,
876 | name = L["Dig Sites"],
877 | desc = L["Dig Sites"],
878 | type = "group",
879 | args =
880 | {
881 | ShowOnBattlefieldMinimap =
882 | {
883 | order = 1,
884 | name = L["Show digsites on the Battlefield Minimap"],
885 | desc = L["Use |cff69ccf0Shift-M|r to open or hide Battlefield Minimap"],
886 | type = "toggle",
887 | width = "full",
888 | get = function(info) return cfg.DigSites.ShowOnBattlefieldMinimap end,
889 | set =
890 | function(info,val)
891 | cfg.DigSites.ShowOnBattlefieldMinimap = val
892 | SetVisible(Arh_ArchaeologyDigSites_BattlefieldMinimap, val)
893 | end,
894 | },
895 | ShowOnMinimap =
896 | {
897 | order = 2,
898 | name = L["Show digsites on the Minimap"],
899 | desc = string.format(L["You can also use %s command for this action"],"|cff69ccf0/arh mm|r"),
900 | type = "toggle",
901 | width = "full",
902 | get = function(info) return addon:GetDigsiteTracking() end,
903 | set = function(info,val) addon:SetDigsiteTracking(val) end,
904 | },
905 | },
906 | },
907 |
908 | }
909 | }
910 |
911 | function Arh_ShowTooltip(self)
912 | if not cfg.MainFrame.ShowTooltips then return end
913 | if not self.TooltipText then return end
914 |
915 | local text
916 | if type(self.TooltipText)=="string" then
917 | text = self.TooltipText
918 | elseif type(self.TooltipText)=="function" then
919 | text = self.TooltipText(self)
920 | if not text then return end
921 | end
922 | Arh_Tooltip:SetScale(cfg.MainFrame.TooltipsScale)
923 | Arh_Tooltip:SetOwner(self, "ANCHOR_CURSOR")
924 | Arh_Tooltip:AddLine(text, 1, 1, 1)
925 | Arh_Tooltip:Show()
926 | end
927 | function Arh_HideTooltip(self)
928 | Arh_Tooltip:Hide()
929 | end
930 |
931 | local function SetTooltips()
932 | Arh_MainFrame.TooltipText =
933 | function(self)
934 | if cfg.MainFrame.Locked then
935 | return cs(L["Right Click"])..": "..L["Show/Hide Config"]
936 | else
937 | return cs(L["Left Click"])..": "..L["move window"].."\n"..cs(L["Right Click"])..": "..L["Show/Hide Config"]
938 | end
939 | end
940 | for id, button in ipairs(addon.colorButton) do
941 | local cname = id2cname[id]:lower()
942 | button.TooltipText = cs(L["Left Click"])..": "..L["add new %s zone to the HUD"]:format(L[cname]).."\n"..
943 | cs(L["Right Click"])..": "..L["show/hide all %s areas on the HUD"]:format(L[cname])
944 | end
945 | Arh_MainFrame_ButtonDig.TooltipText = cs(L["Left Click"])..": "..L["cast Survey"].."\n"..
946 | cs(L["Right Click"])..": "..L["Show/Hide the HUD"].."\n"..
947 | cs(L["Middle Click"])..": "..L["Open archaeology window"]
948 | Arh_MainFrame_ButtonBack.TooltipText = cs(L["Left Click"])..": "..L["remove one previously added area"]
949 | end
950 |
951 | local function RotateTexture(item, angle)
952 | --item.texture:SetRotation(angle)
953 | --item.texture_line:SetRotation(angle)
954 | local cos, sin = math.cos(angle), math.sin(angle)
955 | local p, m = (sin+cos)/2, (sin-cos)/2
956 | local pp, pm, mp, mm = 0.5+p, 0.5+m, 0.5-p, 0.5-m
957 | item.texture:SetTexCoord(pm, mp, mp, mm, pp, pm, mm, pp)
958 | item.texture_line:SetTexCoord(pm, mp, mp, mm, pp, pm, mm, pp)
959 | end
960 |
961 | local function CreateConTexture(parent, color)
962 | local t = parent:CreateTexture()
963 | t:SetBlendMode("ADD")
964 | t:SetPoint("CENTER", parent, "CENTER", 0, 0)
965 | t:SetTexture("Interface\\AddOns\\Arh\\img\\con1024_"..color)
966 | t:Show()
967 |
968 | return t
969 | end
970 |
971 | local function CreateLineTexture(parent, contexture, color)
972 | local t = parent:CreateTexture()
973 | t:SetBlendMode("ADD")
974 | t:SetPoint("CENTER", contexture, "CENTER", 0, 0)
975 | t:SetTexture("Interface\\AddOns\\Arh\\img\\line1024_"..color)
976 | t:Show()
977 |
978 | return t
979 | end
980 |
981 | local function SetTextureColor(texture, color, isline)
982 | local r,g,b = unpack(id2rgb[color])
983 | local a = cfg.HUD[string.format("%s%sAlpha",id2cname[color],(isline and "Line" or "Sect"))]
984 | texture:SetVertexColor(r,g,b,a)
985 | end
986 |
987 | local function PixelsInYardOnHud_Calc()
988 | local mapSizePix = Arh_HudFrame:GetHeight()
989 |
990 | local zoom = Minimap:GetZoom()
991 | --local indoors = GetCVar("minimapZoom")+0 == Minimap:GetZoom() and "outdoor" or "indoor"
992 | local indoors = IsIndoors() and "indoor" or "outdoor"
993 |
994 | local mapSizeYards = minimap_size[indoors][zoom]
995 |
996 | return mapSizePix/mapSizeYards
997 | end
998 | local PixelsInYardOnHud = -1
999 |
1000 |
1001 | local function UpdateTextureSize(texture, color)
1002 | texture:SetSize(PixelsInYardOnHud * CONYARDS[color]*2, PixelsInYardOnHud * CONYARDS[color]*2)
1003 | end
1004 |
1005 | local function CreateCon(parent, color)
1006 | local t = CreateConTexture(parent, color)
1007 | SetTextureColor(t, color, false)
1008 | UpdateTextureSize(t, color)
1009 |
1010 | return t
1011 | end
1012 | local function CreateLine(parent, color, contexture)
1013 | local t = CreateLineTexture(parent, contexture, color)
1014 | SetTextureColor(t, color, true)
1015 | UpdateTextureSize(t, color)
1016 |
1017 | return t
1018 | end
1019 |
1020 |
1021 | local function UpdateConAndLine(texture_con, texture_line, color)
1022 | UpdateTextureSize(texture_con, color)
1023 | texture_con:Show()
1024 |
1025 | UpdateTextureSize(texture_line, color)
1026 | texture_line:Show()
1027 | end
1028 |
1029 | addon.ConsCache = {[ARH_GREEN] = {}, [ARH_YELLOW] = {}, [ARH_RED] = {} }
1030 | addon.ConsArray = {}
1031 | local function GetCached(color)
1032 | local cnt = #addon.ConsCache[color]
1033 | if cnt > 0 then
1034 | local ret = addon.ConsCache[color][cnt]
1035 | addon.ConsCache[color][cnt] = nil
1036 | return ret
1037 | else
1038 | return nil
1039 | end
1040 | end
1041 | function addon:ReturnAllToCache()
1042 | for i=1,#addon.ConsArray do
1043 | addon:ReturnLastToCache()
1044 | end
1045 | end
1046 | function addon:ReturnLastToCache()
1047 | local cnt = #addon.ConsArray
1048 | if cnt==0 then return end
1049 |
1050 | local item = addon.ConsArray[cnt]
1051 | addon.ConsArray[cnt] = nil
1052 |
1053 | table.insert(addon.ConsCache[item.color], item)
1054 | item.texture:Hide()
1055 | item.texture_line:Hide()
1056 | item.x = nil
1057 | item.y = nil
1058 | item.a = nil
1059 | item.color = nil
1060 | end
1061 |
1062 |
1063 | local function AddCon(color, x, y, a)
1064 | local item = GetCached(color)
1065 | if not item then
1066 | item = {}
1067 | item.texture = CreateCon(Arh_HudFrame, color)
1068 | item.texture_line = CreateLine(Arh_HudFrame, color, item.texture)
1069 | end
1070 | item.color = color
1071 | item.x = x
1072 | item.y = y
1073 | item.a = a
1074 |
1075 | table.insert(addon.ConsArray,item)
1076 | UpdateConAndLine(item.texture, item.texture_line, color)
1077 |
1078 | local visible = not addon.colorButton[color].Canceled
1079 |
1080 | SetVisible(item.texture, visible)
1081 | SetVisible(item.texture_line, visible)
1082 |
1083 | addon:UpdateCons(x,y,a)
1084 | end
1085 |
1086 | function addon:UpdateConsSizes()
1087 | local piy = PixelsInYardOnHud_Calc()
1088 | if piy == PixelsInYardOnHud then return end
1089 | PixelsInYardOnHud = piy
1090 | --print("UpdateConsSizes")
1091 | for _,item in ipairs(addon.ConsArray) do
1092 | UpdateTextureSize(item.texture, item.color)
1093 | UpdateTextureSize(item.texture_line, item.color)
1094 | end
1095 | end
1096 |
1097 | function addon:UpdateConsPositions(player_x, player_y, player_a)
1098 | local cos, sin = math.cos(player_a), math.sin(player_a)
1099 |
1100 | for _,item in ipairs(addon.ConsArray) do
1101 | --print(item.x .. " " .. player_x)
1102 | --print(item.y .. " " .. player_y)
1103 | local dx, dy = item.x - player_x, item.y - player_y
1104 | local x = dx*cos - dy*sin
1105 | local y = dx*sin + dy*cos
1106 | local rot = item.a-player_a
1107 |
1108 | --item.texture:ClearAllPoints()
1109 | -- 4000 = too fast
1110 | item.texture:SetPoint("CENTER", Arh_HudFrame, "CENTER", x*PixelsInYardOnHud, -y*PixelsInYardOnHud)
1111 | --item.texture:SetPoint("CENTER", Arh_HudFrame, "CENTER", -25, -75)
1112 | RotateTexture(item, rot)
1113 | end
1114 | end
1115 |
1116 | function addon:UpdateAlpha(texture, color, isline)
1117 | local a
1118 | if isline then
1119 | a = cfg.HUD[id2cname[color].."LineAlpha"]
1120 | else
1121 | a = cfg.HUD[id2cname[color].."SectAlpha"]
1122 | end
1123 |
1124 | texture:SetAlpha(a)
1125 | end
1126 |
1127 | function addon:UpdateAlphaEverything()
1128 | for _,item in ipairs(addon.ConsArray) do
1129 | addon:UpdateAlpha(item.texture_line, item.color, true)
1130 | addon:UpdateAlpha(item.texture, item.color, false)
1131 | end
1132 | for color in ipairs(id2cname) do
1133 | for _,item in ipairs(addon.ConsCache[color]) do
1134 | addon:UpdateAlpha(item.texture_line, color, true)
1135 | addon:UpdateAlpha(item.texture, color, false)
1136 | end
1137 | end
1138 | end
1139 |
1140 | function addon:UpdateCons(player_x, player_y, player_a)
1141 | addon:UpdateConsSizes() -- if minimap zoomed
1142 | addon:UpdateConsPositions(player_x, player_y, player_a)
1143 | end
1144 |
1145 | local _lastmapid, _lastmaptext
1146 | function addon:GetPos()
1147 | --local oldcont = GetCurrentMapContinent()
1148 | --local oldmap = GetCurrentMapAreaID()
1149 | --local oldlvl = GetCurrentMapDungeonLevel()
1150 | local oldmap = C_Map.GetBestMapForUnit('player')
1151 | -- Unable to get map position probably instance
1152 | if oldmap == nil then
1153 | oldmap = 0
1154 | end
1155 | local mappos = C_Map.GetPlayerMapPosition(oldmap, 'player')
1156 | -- Unable to get map position probably instance
1157 | if mappos == nil then
1158 | return 0,0,oldmap,0
1159 | end
1160 | local oldcont = C_Map.GetWorldPosFromMapPos(oldmap, mappos)
1161 | local oldlvl = 0
1162 | local map = oldmap
1163 | local level = oldlvl
1164 | local text = GetRealZoneText()
1165 | local flicker
1166 | if map ~= _lastmapid or text ~= _lastmaptext then -- try to avoid unnecessary map sets
1167 | if WorldMapFrame and WorldMapFrame:IsVisible() then -- prevent map flicker
1168 | if WorldMapFrame:IsMouseOver() then
1169 | return 0,0,map,0
1170 | end
1171 | WorldMapFrame:Hide()
1172 | flicker = true
1173 | end
1174 | --SetMapToCurrentZone()
1175 | --map = GetCurrentMapAreaID()
1176 | local map = C_Map.GetBestMapForUnit('player')
1177 | --level = GetCurrentMapDungeonLevel();
1178 | level = 0
1179 | --print("SetMapToCurrentZone: "..oldmap.."->"..map)
1180 | _lastmapid = map
1181 | _lastmaptext = text
1182 | end
1183 |
1184 | local x, y = C_Map.GetPlayerMapPosition(map, "player"):GetXY()
1185 |
1186 | if flicker then
1187 | WorldMapFrame:Show()
1188 | if oldmap ~= map then
1189 | SetMapZoom(oldcont)
1190 | SetMapByID(oldmap)
1191 | _lastmapid = nil
1192 | end
1193 | if oldlvl and oldlvl > 0 then
1194 | SetDungeonMapLevel(oldlvl)
1195 | end
1196 | end
1197 | return x,y,map,level
1198 | end
1199 |
1200 | function addon:GetPosYards()
1201 | local x,y,map,level = addon:GetPos()
1202 |
1203 | if x and y and map and x + y > 0 then
1204 | --local id, _, _, left, right, top, bottom = GetAreaMapInfo(map)
1205 | --[[local hitrect = C_MapExplorationInfo.GetExploredMapTextures(map)
1206 | local top, bottom, left, right
1207 | for key, value in next, hitrect do
1208 | for k, v in next, value do
1209 | if k == "hitRect" then
1210 | for r, t in next, v do
1211 | if r == "bottom" then bottom = t end
1212 | if r == "top" then top = t end
1213 | if r == "left" then left = t end
1214 | if r == "right" then right = t end
1215 | end
1216 | end
1217 | end
1218 | end]]--
1219 | local vector00, vector05 = CreateVector2D(0, 0), CreateVector2D(0.5, 0.5)
1220 | local mapID = C_Map.GetBestMapForUnit('player');
1221 | local instance, topLeft = C_Map.GetWorldPosFromMapPos(mapID, vector00)
1222 | local _, bottomRight = C_Map.GetWorldPosFromMapPos(mapID, vector05)
1223 | local top, left = topLeft:GetXY()
1224 | local bottom, right = bottomRight:GetXY()
1225 | bottom = top + (bottom - top) * 2
1226 | right = left + (right - left) * 2
1227 |
1228 | --[[
1229 | if left == right or top == bottom then
1230 | -- instanced areas should never be relevant to arch, but useful for testing
1231 | _, right, left, bottom, top = GetDungeonMapInfo(map)
1232 | end
1233 | --]]
1234 | if left and right and left > right then
1235 | x = x * (left - right)
1236 | end
1237 | if bottom and top and bottom < top then
1238 | y = y * (top - bottom)
1239 | end
1240 | end
1241 |
1242 | return x,y,map,level
1243 | end
1244 |
1245 | local function Distance(xa, ya, xb, yb)
1246 | return math.sqrt(math.pow(xa-xb,2)+math.pow(ya-yb,2))
1247 | end
1248 |
1249 | local function CalcAngle(xa, ya, xb, yb)
1250 | if ya == yb then
1251 | if xa == xb then
1252 | return 0;
1253 | elseif xa > xb then
1254 | return math.pi/2;
1255 | else
1256 | return 3*math.pi/2;
1257 | end
1258 | end
1259 | local t = (xb-xa)/(yb-ya);
1260 | local a = math.atan(t);
1261 | if ya > yb then
1262 | if xa == xb then
1263 | return 0;
1264 | elseif xa > xb then
1265 | return a;
1266 | else
1267 | return a+2*math.pi;
1268 | end
1269 | else
1270 | if xa == xb then
1271 | return math.pi;
1272 | elseif xa > xb then
1273 | return a+math.pi;
1274 | else
1275 | return a+math.pi;
1276 | end
1277 | end
1278 | end
1279 |
1280 | local function AddPoint(color)
1281 | if IsInInstance() then
1282 | return
1283 | end
1284 | local jax, jay = addon:GetPosYards()
1285 | a = GetPlayerFacing()
1286 |
1287 | AddCon(color, jax, jay, a)
1288 | PlaySound(SOUND_ADDCON)
1289 | end
1290 |
1291 | local function ToggleColor(color, visible)
1292 | for _,item in ipairs(addon.ConsArray) do
1293 | if item.color == color then
1294 | SetVisible(item.texture, visible)
1295 | SetVisible(item.texture_line, visible)
1296 | end
1297 | end
1298 | end
1299 |
1300 | local function ToggleColorButton(self, enable)
1301 | local color = self:GetID()
1302 | if enable ~= nil then
1303 | self.Canceled = not enable
1304 | else
1305 | self.Canceled = not self.Canceled
1306 | end
1307 | ToggleColor(color, not self.Canceled)
1308 | SetVisible(self.CanceledTexture, self.Canceled)
1309 | if enable then
1310 | PlaySound(SOUND_SHOWCOLOR)
1311 | else
1312 | PlaySound(SOUND_HIDECOLOR)
1313 | end
1314 | end
1315 |
1316 | function Arh_MainFrame_ColorButton_OnMouseDown(self, button)
1317 | if button == "LeftButton" then
1318 | local id = self:GetID()
1319 | AddPoint(id)
1320 | if cfg.MainFrame["Mount"..id2cname[id]]
1321 | and not self:GetAttribute("type") then -- travel form handled by secure button
1322 | addon:mount()
1323 | end
1324 | elseif button == "RightButton" then
1325 | ToggleColorButton(self)
1326 | end
1327 | end
1328 |
1329 | function Arh_MainFrame_ButtonBack_OnMouseDown(self, button)
1330 | if button == "LeftButton" then
1331 | addon:ReturnLastToCache()
1332 | PlaySound(SOUND_BACK)
1333 | elseif button == "RightButton" then
1334 | end
1335 | end
1336 |
1337 | function addon:SaveDifs()
1338 | local japx, japy = addon:GetPosYards()
1339 |
1340 | for _,item in ipairs(addon.ConsArray) do
1341 | local jad = Distance(item.x, item.y, japx, japy)
1342 |
1343 | local ra = CalcAngle(item.x, item.y, japx, japy)
1344 | local ad = ra-a
1345 | while ad > 2*math.pi do ad = ad - 2*math.pi end
1346 | while ad < 0 do ad = ad + 2*math.pi end
1347 | if ad > math.pi then ad = ad - 2*math.pi end
1348 |
1349 | if Arh_Data == nil then
1350 | Arh_Data = {["next"]=1, ["items"]={}}
1351 | end
1352 | Arh_Data.items[Arh_Data.next] = {[1]=item.color, [2]=jad, [3]=ad}
1353 | Arh_Data.next = Arh_Data.next + 1
1354 | end
1355 | end
1356 |
1357 | function addon:OnGathering()
1358 | -- addon:SaveDifs()
1359 | addon:ReturnAllToCache()
1360 | for _, button in ipairs(addon.colorButton) do
1361 | ToggleColorButton(button, true)
1362 | end
1363 | -- PlaySound(SOUND_GATHERING)
1364 | end
1365 |
1366 | function addon:mount()
1367 | if InCombatLockdown() or IsMounted() or IsFlying() then return end
1368 | (C_MountJournal.Summon or C_MountJournal.SummonByID)(0) -- random favorite mount
1369 | end
1370 |
1371 | function addon:init_travelform()
1372 | -- setup secure buttons for travel form mounting
1373 | if InCombatLockdown() then return end
1374 | local mt
1375 |
1376 | local spellid = nil
1377 | local spellid_travelForm = 783 -- travel form
1378 | local spellid_flyingForm = 33950 -- flying form
1379 | local spellid_swiftFlyingForm = 40120 -- swift flying form
1380 |
1381 | if select(2,UnitClass("player")) == "DRUID" then -- check if player is druid
1382 | -- Check which flying-/travel-form is learned
1383 | if IsPlayerSpell(spellid_swiftFlyingForm) then
1384 | spellid = spellid_swiftFlyingForm
1385 | elseif IsPlayerSpell(spellid_flyingForm) then
1386 | spellid = spellid_flyingForm
1387 | elseif IsPlayerSpell(spellid_travelForm) then
1388 | spellid = spellid_travelForm
1389 | end
1390 | end
1391 |
1392 | if not(spellid == nil) then
1393 | mt = string.format("/cast [nostance:3,nocombat] %s", C_Spell.GetSpellInfo(spellid).name)
1394 | elseif (C_Item.GetItemCount(37011, false) or 0) > 0 then -- Magic Broom
1395 | mt = "/use item:37011"
1396 | end
1397 | for id, button in ipairs(addon.colorButton) do
1398 | local set = cfg.MainFrame["Mount"..id2cname[id]] and mt or nil
1399 | if button:GetAttribute("macrotext") ~= set then
1400 | button:SetAttribute("type", set and "macro")
1401 | button:SetAttribute("macrotext", set)
1402 | end
1403 | end
1404 | end
1405 |
1406 | function Arh_MainFrame_ButtonDig_OnMouseDown(self, button)
1407 | if button == "LeftButton" then
1408 | elseif button == "RightButton" then
1409 | addon:ToggleHUD()
1410 | elseif button == "MiddleButton" then
1411 | addon:ToggleArch()
1412 | end
1413 | end
1414 |
1415 | local function OnHelp()
1416 | local function os(str1, str2)
1417 | return cs(str1)..", "..cs(str2)
1418 | end
1419 | print("Arguments to "..cs("/arh")..":")
1420 | print(" "..os("toggle","t").." - "..L["Show/Hide the Main Window"])
1421 | print(" "..os("hud","h").." - "..L["Show/Hide the HUD"])
1422 | print(" "..os("addred","ar").." - ".. L["add new %s zone to the HUD"]:format(L["red"]))
1423 | print(" "..os("addyellow","ay").." - ".. L["add new %s zone to the HUD"]:format(L["yellow"]))
1424 | print(" "..os("addgreen","ag").." - ".. L["add new %s zone to the HUD"]:format(L["green"]))
1425 | print(" "..os("togglered","tr").." - ".. L["show/hide all %s areas on the HUD"]:format(L["red"]))
1426 | print(" "..os("toggleyellow","ty").." - ".. L["show/hide all %s areas on the HUD"]:format(L["yellow"]))
1427 | print(" "..os("togglegreen","tg").." - ".. L["show/hide all %s areas on the HUD"]:format(L["green"]))
1428 | print(" "..os("back","b").." - "..L["remove one previously added area"])
1429 | print(" "..os("clear","c").." - "..L["clear HUD"])
1430 | print(" "..os("minimap","mm").." - "..L["show/hide digsites on minimap"])
1431 | print(" "..os("config","co").." - "..L["Show/Hide Config"])
1432 | end
1433 |
1434 | local function handler(msg, editbox)
1435 | if msg=='' then
1436 | OnHelp()
1437 | elseif msg=='toggle' or msg=='t' then
1438 | addon:ToggleMainFrame()
1439 | elseif msg=='hud' or msg=='h' then
1440 | addon:ToggleHUD()
1441 |
1442 | elseif msg=='addred' or msg=='ar' then
1443 | Arh_MainFrame_ColorButton_OnMouseDown(Arh_MainFrame_ButtonRed, "LeftButton")
1444 | elseif msg=='addyellow' or msg=='ay' then
1445 | Arh_MainFrame_ColorButton_OnMouseDown(Arh_MainFrame_ButtonYellow, "LeftButton")
1446 | elseif msg=='addgreen' or msg=='ag' then
1447 | Arh_MainFrame_ColorButton_OnMouseDown(Arh_MainFrame_ButtonGreen, "LeftButton")
1448 |
1449 |
1450 | elseif msg=='togglered' or msg=='tr' then
1451 | Arh_MainFrame_ColorButton_OnMouseDown(Arh_MainFrame_ButtonRed, "RightButton")
1452 | elseif msg=='toggleyellow' or msg=='ty' then
1453 | Arh_MainFrame_ColorButton_OnMouseDown(Arh_MainFrame_ButtonYellow, "RightButton")
1454 | elseif msg=='togglegreen' or msg=='tg' then
1455 | Arh_MainFrame_ColorButton_OnMouseDown(Arh_MainFrame_ButtonGreen, "RightButton")
1456 |
1457 | elseif msg=='back' or msg=='b' then
1458 | Arh_MainFrame_ButtonBack_OnMouseDown(Arh_MainFrame_ButtonBack, "LeftButton")
1459 | elseif msg=='clear' or msg=='c' then
1460 | addon:ReturnAllToCache()
1461 |
1462 |
1463 | elseif msg=='minimap' or msg=='mm' then
1464 | addon:SetDigsiteTracking(not addon:GetDigsiteTracking())
1465 | elseif msg=='config' or msg=='co' then
1466 | addon:Config()
1467 | else
1468 | print("unknown command: "..msg)
1469 | print("use |cffffff78/arh|r for help on commands")
1470 | end
1471 | end
1472 | SlashCmdList["ARH"] = handler;
1473 | SLASH_ARH1 = "/arh"
1474 |
1475 | --local function OnSpellSent(unit,spellcast,rank,target)
1476 | local function OnSpellSent(unit,target,rank,spellcast)
1477 | if unit ~= "player" then return end
1478 | --if spellcast==GetSpellInfo(73979) then -- "Searching for Artifacts"
1479 | if spellcast==73979 then -- "Searching for Artifacts"
1480 | addon:OnGathering()
1481 | end
1482 | end
1483 |
1484 | local function OnAddonLoaded(name)
1485 | if not addon.init then
1486 | local start = debugprofilestop()
1487 | if not Arh_Config then
1488 | Arh_Config = CopyByValue(Arh_DefaultConfig)
1489 | else
1490 | Arh_Config = GetNewestStructure(Arh_Config, Arh_DefaultConfig)
1491 | end
1492 | cfg = Arh_Config
1493 | Arh_HudFrame_Init()
1494 | Arh_MainFrame_Init()
1495 | --print(string.format("Arh Load time: %f ms",debugprofilestop()-start))
1496 | addon.init = true
1497 | end
1498 | addon:HookArchy()
1499 | end
1500 |
1501 | function Arh_MainFrame_OnEvent(self, event, ...)
1502 | if event == "PLAYER_LOGIN" then
1503 | OnAddonLoaded(...)
1504 | elseif event == "UNIT_SPELLCAST_SENT" then
1505 | OnSpellSent(...)
1506 | elseif event == "SPELLS_CHANGED" then
1507 | -- ticket 58: IsPlayerSpell(travel form) not available at static load, and may change with level up
1508 | addon:init_travelform()
1509 | else
1510 | addon:CheckSuppress()
1511 | end
1512 | end
1513 |
1514 | function Arh_MainFrame_OnLoad()
1515 | -- Arh_MainFrame:RegisterEvent("ADDON_LOADED")
1516 | Arh_MainFrame:RegisterEvent("PLAYER_LOGIN")
1517 | end
1518 |
1519 | local function InitCancelableButton(self)
1520 | local t = self:CreateTexture()
1521 | t:SetPoint("CENTER", self, "CENTER", 0, 0)
1522 | t:SetTexture("Interface\\BUTTONS\\UI-GroupLoot-Pass-Up")
1523 | t:SetSize(20, 20)
1524 | t:SetDrawLayer("ARTWORK", 1)
1525 | t:Hide()
1526 | self.CanceledTexture = t
1527 | self.Canceled = false
1528 | end
1529 |
1530 | function Arh_MainFrame_Init()
1531 | Config = LibStub("AceConfig-3.0")
1532 | ConfigDialog = LibStub("AceConfigDialog-3.0")
1533 | Config:RegisterOptionsTable("Archaeology Helper", OptionsTable, "arhcfg")
1534 | ConfigDialog:AddToBlizOptions("Archaeology Helper", "Arh")
1535 |
1536 | LDB = LibStub:GetLibrary("LibDataBroker-1.1",true)
1537 | LDBo = LDB:NewDataObject(addonName, {
1538 | type = "launcher",
1539 | label = addonName,
1540 | icon = "Interface\\Icons\\inv_misc_shovel_01",
1541 | OnClick = function(self, button)
1542 | if button == "LeftButton" then
1543 | addon:ToggleMainFrame()
1544 | elseif button == "RightButton" then
1545 | addon:Config()
1546 | else
1547 | addon:ToggleArch()
1548 | end
1549 | end,
1550 | OnTooltipShow = function(tooltip)
1551 | if tooltip and tooltip.AddLine then
1552 | tooltip:SetText(addonName)
1553 | tooltip:AddLine(cs(L["Left Click"])..": "..L["Show/Hide the Main Window"])
1554 | tooltip:AddLine(cs(L["Right Click"])..": "..L["Show/Hide Config"])
1555 | tooltip:AddLine(cs(L["Middle Click"])..": "..L["Open archaeology window"])
1556 | tooltip:Show()
1557 | end
1558 | end,
1559 | })
1560 |
1561 | local PaneBackdrop = {
1562 | bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
1563 | edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
1564 | tile = true, tileSize = 16, edgeSize = 16,
1565 | insets = { left = 3, right = 3, top = 5, bottom = 3 }
1566 | }
1567 |
1568 | minimapIcon:Register(addonName, LDBo, cfg.Minimap)
1569 | minimapIcon:Refresh(addonName)
1570 |
1571 | SetVisible(Arh_MainFrame, cfg.MainFrame.Visible)
1572 | Arh_MainFrame:SetScale(cfg.MainFrame.Scale)
1573 | Arh_MainFrame:SetBackdrop(PaneBackdrop)
1574 | Arh_MainFrame:SetBackdropColor(0.05,0.05,0.05,0.3)
1575 | Arh_MainFrame:SetBackdropBorderColor(0.4,0.4,0.4)
1576 | Arh_MainFrame:SetAlpha(cfg.MainFrame.Alpha)
1577 | Arh_MainFrame:SetClampedToScreen(true)
1578 | Arh_MainFrame:ClearAllPoints()
1579 | if cfg.MainFrame.point then
1580 | Arh_MainFrame:SetPoint(cfg.MainFrame.point, cfg.MainFrame.posX, cfg.MainFrame.posY)
1581 | else
1582 | Arh_MainFrame:SetPoint("CENTER")
1583 | end
1584 |
1585 | Arh_MainFrame:RegisterEvent("UNIT_SPELLCAST_SENT")
1586 | for _,evt in pairs({ "ZONE_CHANGED", "ZONE_CHANGED_INDOORS", "ZONE_CHANGED_NEW_AREA",
1587 | "PLAYER_UPDATE_RESTING", "PLAYER_ALIVE", "PLAYER_DEAD",
1588 | "PET_BATTLE_OPENING_START", "PET_BATTLE_CLOSE", "PET_BATTLE_OVER",
1589 | "UNIT_ENTERED_VEHICLE", "UNIT_EXITED_VEHICLE",
1590 | "PLAYER_REGEN_DISABLED", "PLAYER_REGEN_ENABLED",
1591 | "SPELLS_CHANGED"
1592 | }) do
1593 | Arh_MainFrame:RegisterEvent(evt)
1594 | end
1595 | SetTooltips()
1596 |
1597 | if BattlefieldMinimap then
1598 | Arh_ArchaeologyDigSites_BattlefieldMinimap:SetParent(BattlefieldMinimap)
1599 | Arh_ArchaeologyDigSites_BattlefieldMinimap:ClearAllPoints()
1600 | Arh_ArchaeologyDigSites_BattlefieldMinimap:SetPoint("TOPLEFT", BattlefieldMinimap)
1601 | Arh_ArchaeologyDigSites_BattlefieldMinimap:SetPoint("BOTTOMRIGHT", BattlefieldMinimap)
1602 | SetVisible(Arh_ArchaeologyDigSites_BattlefieldMinimap, cfg.DigSites.ShowOnBattlefieldMinimap)
1603 | end
1604 |
1605 | for id, button in ipairs(addon.colorButton) do
1606 | InitCancelableButton(button)
1607 | button:SetHitRectInsets(6,6,6,6)
1608 | end
1609 | InitCancelableButton(Arh_MainFrame_ButtonDig)
1610 |
1611 | Arh_MainFrame_ButtonDig.CanceledTexture:SetSize(30, 30)
1612 | Arh_MainFrame_ButtonDig:SetAttribute("spell", C_Spell.GetSpellInfo(80451).name)
1613 | addon:ToggleHUD(cfg.HUD.Visible)
1614 | addon:CheckSuppress()
1615 | addon:init_travelform()
1616 |
1617 | Arh_MainFrame_ButtonBack:SetHitRectInsets(0,0,6,6)
1618 | end
1619 |
1620 | local MainFrameIsMoving = false
1621 | function Arh_MainFrame_OnMouseDown(self, button)
1622 | if button == "LeftButton" then
1623 | if Arh_MainFrame:IsMovable() and not cfg.MainFrame.Locked then
1624 | Arh_MainFrame:StartMoving()
1625 | MainFrameIsMoving = true
1626 | end
1627 | elseif button == "RightButton" then
1628 | addon:Config()
1629 | end
1630 | end
1631 |
1632 | function Arh_MainFrame_OnMouseUp(self, button)
1633 | if button == "LeftButton" then
1634 | if MainFrameIsMoving then
1635 | MainFrameIsMoving = false
1636 | Arh_MainFrame:StopMovingOrSizing()
1637 | cfg.MainFrame.point, cfg.MainFrame.posX, cfg.MainFrame.posY = select(3,Arh_MainFrame:GetPoint(1))
1638 | end
1639 | elseif button == "RightButton" then
1640 | end
1641 | end
1642 |
1643 | function Arh_MainFrame_OnHide()
1644 | if MainFrameIsMoving then
1645 | Arh_MainFrame_OnMouseUp(Arh_MainFrame, "LeftButton")
1646 | end
1647 | end
1648 |
1649 | local old_pw, old_ph = -1, -1
1650 |
1651 | function Arh_ArchaeologyDigSites_OnLoad(self)
1652 | self:SetFillAlpha(128);
1653 | self:SetFillTexture("Interface\\WorldMap\\UI-ArchaeologyBlob-Inside");
1654 | self:SetBorderTexture("Interface\\WorldMap\\UI-ArchaeologyBlob-Outside");
1655 | self:EnableSmoothing(true);
1656 | --self:SetNumSplinePoints(30);
1657 | self:SetBorderScalar(0.1);
1658 | end
1659 |
1660 | function Arh_ArchaeologyDigSites_BattlefieldMinimap_OnUpdate(self, elapsed)
1661 | self:DrawNone()
1662 | local mapID = C_Map.GetBestMapForUnit("player")
1663 | local numEntries = ArchaeologyMapUpdateAll(mapID)
1664 | for i = 1, numEntries do
1665 | local blobID = ArcheologyGetVisibleBlobID(i)
1666 | self:DrawBlob(blobID, true)
1667 | end
1668 | end
1669 |
1670 | local UIParent_Height_old = -1
1671 | local MinimapScale_old = -1
1672 | function Arh_UpdateHudFrameSizes(force)
1673 | local UIParent_Height = UIParent:GetHeight()
1674 |
1675 | local zoom = Minimap:GetZoom()
1676 | --local indoors = GetCVar("minimapZoom")+0 == Minimap:GetZoom() and "outdoor" or "indoor"
1677 | local indoors = IsIndoors() and "indoor" or "outdoor"
1678 | local MinimapScale = minimap_scale[indoors][zoom]
1679 |
1680 | if not force then
1681 | if UIParent_Height==UIParent_Height_old and MinimapScale==MinimapScale_old then return end
1682 | end
1683 | MinimapScale_old = MinimapScale
1684 | UIParent_Height_old = UIParent_Height
1685 | --print("Arh_UpdateHudFrameSizes")
1686 |
1687 | -- HUD Frame
1688 | Arh_HudFrame:SetScale(cfg.HUD.Scale)
1689 | local size = UIParent_Height
1690 | Arh_HudFrame:SetSize(size, size)
1691 |
1692 | local HudPixelsInYard = size / minimap_size[indoors][zoom]
1693 |
1694 | -- Success Circle
1695 | local success_diameter = 16 * HudPixelsInYard
1696 | Arh_HudFrame.SuccessCircle:SetSize(success_diameter, success_diameter)
1697 |
1698 | -- Compass
1699 | local compass_radius = cfg.HUD.CompassRadius * HudPixelsInYard
1700 | local compass_diameter = 2 * compass_radius
1701 | Arh_HudFrame.CompassCircle:SetSize(compass_diameter, compass_diameter)
1702 | local radius = size * (0.45/2) * MinimapScale
1703 | for k, v in ipairs(Arh_HudFrame.CompasDirections) do
1704 | v.radius = compass_radius
1705 | end
1706 | end
1707 |
1708 | function Arh_HudFrame_OnLoad()
1709 | end
1710 |
1711 | function addon:HUD_config_update()
1712 | Arh_HudFrame:SetParent(UIParent)
1713 | Arh_HudFrame:ClearAllPoints()
1714 | Arh_HudFrame:SetPoint("CENTER", (cfg.HUD.PosX or 0)*GetScreenWidth()/(cfg.HUD.Scale or 1),
1715 | (cfg.HUD.PosY or 0)*GetScreenHeight()/(cfg.HUD.Scale or 1))
1716 | Arh_HudFrame:EnableMouse(false)
1717 | Arh_HudFrame:SetFrameStrata("BACKGROUND")
1718 |
1719 | Arh_HudFrame:SetScale(cfg.HUD.Scale)
1720 | Arh_HudFrame:SetAlpha(cfg.HUD.Alpha)
1721 |
1722 | -- Arrow
1723 | SetVisible(Arh_HudFrame_ArrowFrame, cfg.HUD.ShowArrow)
1724 | Arh_HudFrame_ArrowFrame:SetScale(cfg.HUD.ArrowScale)
1725 | Arh_HudFrame_ArrowFrame:SetAlpha(cfg.HUD.ArrowAlpha)
1726 |
1727 | -- Success Circle
1728 | Arh_HudFrame.SuccessCircle:SetPoint("CENTER")
1729 | local c = cfg.HUD.SuccessCircleColor
1730 | Arh_HudFrame.SuccessCircle:SetVertexColor(c.r,c.g,c.b,c.a)
1731 | SetVisible(Arh_HudFrame.SuccessCircle, cfg.HUD.ShowSuccessCircle)
1732 |
1733 | -- Compass Circle
1734 | Arh_HudFrame.CompassCircle:SetPoint("CENTER")
1735 | c = cfg.HUD.CompassColor
1736 | Arh_HudFrame.CompassCircle:SetVertexColor(c.r,c.g,c.b,c.a)
1737 | SetVisible(Arh_HudFrame.CompassCircle, cfg.HUD.ShowCompass)
1738 | c = cfg.HUD.CompassTextColor
1739 | for _, ind in ipairs(Arh_HudFrame.CompasDirections) do
1740 | SetVisible(ind, cfg.HUD.ShowCompass)
1741 | ind:SetTextColor(c.r,c.g,c.b,c.a)
1742 | end
1743 | end
1744 |
1745 | function Arh_HudFrame_Init()
1746 | Arh_HudFrame.GetZoom = function(...) return Minimap:GetZoom(...) end
1747 | Arh_HudFrame.SetZoom = function(...) end
1748 |
1749 | Arh_HudFrame.SuccessCircle = Arh_HudFrame:CreateTexture()
1750 | Arh_HudFrame.SuccessCircle:SetTexture(165793)
1751 | Arh_HudFrame.SuccessCircle:SetBlendMode("ADD")
1752 |
1753 | Arh_HudFrame.CompassCircle = Arh_HudFrame:CreateTexture()
1754 | Arh_HudFrame.CompassCircle:SetTexture(165793)
1755 | Arh_HudFrame.CompassCircle:SetBlendMode("ADD")
1756 |
1757 | -- Compass Text
1758 | local directions = {}
1759 | local indicators = {"N", "NE", "E", "SE", "S", "SW", "W", "NW"}
1760 | for k, v in ipairs(indicators) do
1761 | local a = ((math.pi/4) * (k-1))
1762 | local ind = Arh_HudFrame:CreateFontString(nil, nil, "GameFontNormalSmall")
1763 | ind:SetText(v)
1764 | ind:SetShadowOffset(0.2,-0.2)
1765 | ind:SetTextHeight(20)
1766 | ind.angle = a
1767 | tinsert(directions, ind)
1768 | end
1769 | Arh_HudFrame.CompasDirections = directions
1770 |
1771 | addon:HUD_config_update()
1772 | end
1773 |
1774 | local arh_waiting_for_move = false
1775 | local last_player_x = 0
1776 | local last_player_y = 0
1777 | local function IsPlayerMoved(x, y, a)
1778 | ret = false
1779 | if arh_waiting_for_move then
1780 | if last_player_x ~= x or last_player_y ~= y then
1781 | -- print("arh: player moved")
1782 | ret = true
1783 | end
1784 | end
1785 | last_player_x = x
1786 | last_player_y = y
1787 | return ret
1788 | end
1789 |
1790 | local last_update_hud = 0
1791 | function Arh_HudFrame_OnUpdate(frame, elapsed)
1792 | if IsInInstance() then
1793 | return
1794 | end
1795 | -- I'M MOVING
1796 | last_update_hud = last_update_hud + elapsed
1797 | if last_update_hud > 0.05 then
1798 |
1799 | local pa = GetPlayerFacing()
1800 | -- Unable to get good data probably zone change
1801 | if pa == nil then
1802 | pa = 0
1803 | end
1804 | local japx, japy = addon:GetPosYards()
1805 | addon:UpdateCons(japx, japy, pa)
1806 |
1807 | -- if IsPlayerMoved(japx, japy, pa) then
1808 | -- end
1809 |
1810 | Arh_UpdateHudFrameSizes()
1811 |
1812 | if cfg.HUD.ShowCompass then
1813 | for k, v in ipairs(Arh_HudFrame.CompasDirections) do
1814 | local x, y = math.sin(v.angle + pa), math.cos(v.angle + pa)
1815 | v:ClearAllPoints()
1816 | v:SetPoint("CENTER", Arh_HudFrame, "CENTER", x * v.radius, y * v.radius)
1817 | end
1818 | end
1819 |
1820 | last_update_hud = 0
1821 | end
1822 | end
1823 |
1824 | local vishooked, enablehooked
1825 | local GMonHud
1826 | local function DisableNonArchPins()
1827 | if not GatherMate2 then return end
1828 | local gmsettings = GatherMate2.db and GatherMate2.db.profile
1829 | if GMonHud then
1830 | local v = GatherMate2.Visible
1831 | if not v then return end
1832 | if cfg.HUD.ArchOnly then
1833 | for i,_ in pairs(v) do
1834 | v[i] = false
1835 | end
1836 | end
1837 | v["Archaeology"] = true
1838 | if gmsettings and not gmsettings.showMinimap then
1839 | gmsettings.showMinimap = true -- Gm2 minimap pins must be enabled for us to use them
1840 | gmsettings.showMinimapSuppressed = true
1841 | end
1842 | elseif gmsettings and gmsettings.showMinimapSuppressed then
1843 | gmsettings.showMinimap = false -- restore the minimap setting for hud disabled
1844 | gmsettings.showMinimapSuppressed = nil
1845 | end
1846 | end
1847 |
1848 | local OriginalRotationFlag
1849 | local function UseGatherMate2(use)
1850 | if not GatherMate2 then return end
1851 | local Display = GatherMate2:GetModule("Display")
1852 | if not Display then return end
1853 | if use and not Display:IsEnabled() or not Display.updateFrame then -- ticket 36: before Display:OnEnable()
1854 | if not enablehooked and Display.OnEnable then
1855 | hooksecurefunc(Display, "OnEnable", function() UseGatherMate2(use) end)
1856 | enablehooked = true
1857 | end
1858 | return
1859 | end
1860 | if not vishooked and Display.UpdateVisibility then
1861 | hooksecurefunc(Display, "UpdateVisibility", DisableNonArchPins)
1862 | vishooked = true
1863 | end
1864 | if use then
1865 | OriginalRotationFlag = GetCVar("rotateMinimap") == "1"
1866 | Display:ReparentMinimapPins(Arh_HudFrame)
1867 | Display:ChangedVars(nil, "rotateMinimap", "1")
1868 | GMonHud = true
1869 | else
1870 | Display:ReparentMinimapPins(Minimap)
1871 | Display:ChangedVars(nil, "rotateMinimap", OriginalRotationFlag)
1872 | GMonHud = false
1873 | end
1874 | if Display.UpdateMaps then
1875 | Display:UpdateMaps()
1876 | end
1877 | end
1878 |
1879 | function Arh_SetUseGatherMate2(use)
1880 | if Arh_HudFrame:IsVisible() then
1881 | if cfg.HUD.UseGatherMate2 and not use then
1882 | UseGatherMate2(false)
1883 | end
1884 | if use and not cfg.HUD.UseGatherMate2 then
1885 | UseGatherMate2(true)
1886 | end
1887 | end
1888 | cfg.HUD.UseGatherMate2 = use
1889 | end
1890 |
1891 |
1892 | function Arh_HudFrame_OnShow(self)
1893 | if cfg.HUD.UseGatherMate2 then
1894 | UseGatherMate2(true)
1895 | end
1896 | Arh_HudFrame_OnUpdate(nil, 100) -- force an update to prevent a flicker
1897 | end
1898 | function Arh_HudFrame_OnHide(self)
1899 | if cfg.HUD.UseGatherMate2 then
1900 | UseGatherMate2(false)
1901 | end
1902 | end
1903 |
--------------------------------------------------------------------------------