vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1  
2 BEB_SELECTOR_LABELS = {
3 BEBGeneralSelector = "General",
4 BEBColorsSelector = "Colors",
5 BEBPlacementSelector = "Size/Position"
6 }
7  
8 BEB_BUTTONLABELS = {
9 BEBBackgroundColorButton = "Background color.",
10 BEBXpUnrestedColorButton = "Unrested.",
11 BEBXpRestedColorButton = "Rested.",
12 BEBXpMaxRestedColorButton = "Fully rested.",
13 BEBRestedBarColorButton = "Rested.",
14 BEBRestedBarMaxColorButton = "Fully rested.",
15 BEBMarkerUnrestColorButton = "Unrested.",
16 BEBMarkerRestColorButton = "Rested.",
17 BEBMarkerMaxrestColorButton = "Fully rested.",
18 BEBTickUnrestColorButton = "Unrested.",
19 BEBTickRestColorButton = "Rested.",
20 BEBTickMaxrestColorButton = "Fully rested.",
21 BEBRestedTickRestColorButton = "Rested.",
22 BEBRestedTickMaxrestColorButton = "Fully rested.",
23 BEBBarTextUnrestColorButton = "Unrested.",
24 BEBBarTextRestColorButton = "Rested.",
25 BEBBarTextMaxrestColorButton = "Fully rested."
26 }
27  
28 BEB_HEADINGS = {
29 BEBXpBarHeading = "Experience bar.",
30 BEBRestedBarHeading = "Rested experience bar.",
31 BEBMarkerHeading = "Marker artwork.",
32 BEBTickHeading = "Tick on the end of the experience bar.",
33 BEBRestedTickHeading = "Tick indicating where rested experience ends.",
34 BEBBarTextHeading = "Text that is shown on the bar.",
35 BEBMainSizeHeading = "Overall size.",
36 BEBTickSizeHeading = "Tick size.",
37 BEBMainPositionControlsTitle = "Overall Position.",
38 BEBTickPositionControlsTitle = "Tick Position.",
39 BEB_MainAttachPointButton_Label = "Bar's attach point",
40 BEB_MainAttachToPointButton_Label ="Bar's relative point",
41 BEB_MainAttachToFrame_Label = "Attach to frame",
42 BEB_TextStringFrame_Label = "The text that will show on the bar."
43 }
44 BEB_CHECKBUTTONLABELS = {
45 BEBEnabledButton = "Enabled",
46 BEBShowMarksButton = "Show Marks",
47 BEBShowXpTicksButton = "Show tick at the end of the Xp bar.",
48 BEBShowRestedXpTicksButton = "Show tick where rested Xp will get you.",
49 BEBShowBackgroundButton = "Show a background behind the bar.",
50 BEBShowXpTextButton = "Show text on the bar.",
51 BEBFlashHighlightButton = "Flash the rested xp tick when resting.",
52 BEBTextOnMouseoverButton = "Show text only when moused over.",
53 BEBShowRestedBarButton = "Show the rested Xp bar.",
54 BEBUnlockBarButton = "Allow the bar to be dragged."
55 }
56  
57  
58  
59 BEB_TEXT = {
60 height = "Height",
61 width = "Width",
62 fontsize = "Font Size",
63 validcommands = "Valid commands are /beb [defaults, enbale, disable, help]. /beb by itself will open the config screen.",
64 invalidcommand = "Invalid command, use ,/beb help, for a list of commands",
65 xpnomatch1 = "Table and in game Xp per level do not match, send an email to futrtrubl@hotmail.com with; BEB: LVL= ",
66 xpnomatch2 = ", TableXp= ",
67 xpnomatch3 = ", ActualXp = ",
68 alreadyenabled = "BEB is already enabled.",
69 alreadydisabled = "BEB is already disabled.",
70 framelocked = "The BEB frame is locked. Unlock it if you wish to move it",
71 loaded = "BEB Loaded",
72 optionstextwasmouseover = "BEB: Text was being shown on mouseover, this has been disabled",
73 optionstextwashidden = "BEB: Text was set to never show. Text is now enabled",
74 framewasinvalid = "BEB: The frame that BEB was attached to does not exist or is invalid. Please use /beb and change the frame BEB is attached to.",
75 frameisinvalid = "BEB: The frame you entered does not exist or is invalid.",
76 rested = "Rested",
77 unrested = "Unrested",
78 fullyrested = "Fully Rested",
79 resting = "Resting"
80 }
81  
82 BEB_ATTACHPOINTS = {
83 TOP = "Top",
84 BOTTOM = "Bottom",
85 LEFT = "Left",
86 RIGHT = "Right",
87 TOPLEFT = "Top left",
88 TOPRIGHT = "Top right",
89 BOTTOMLEFT = "Bottom left",
90 BOTTONRIGHT = "Bottom right",
91 CENTER = "Center"
92 }
93  
94 BEB_UIATTACHFRAMES = {
95 UIParent = "UI Parent",
96 MainMenuExpBar = "UI Experience bar",
97 MainMenuBar = "UI Main bar",
98 ChatFrame1 = "UI Chat frame",
99 MinimapCluster = "UI Minimap"
100 }
101  
102 BEB_VARIABLE_FUNCTIONS_DESCIPTIONS = {
103 ["$plv"] = "$plv Character's level.",
104 ["$cxp"] = "$cxp Current xp for this level.",
105 ["$mxp"] = "$mxp Total xp needed for this level.",
106 ["$rxp"] = "$rxp Rested xp as reported by the game.",
107 ["$Rxp"] = "$Rxp Actual current rested xp.",
108 ["$Cxp"] = "$Cxp Total xp ever earned for this character.",
109 ["$Mxp"] = "$Mxp Xp to go until you can earn no more.",
110 ["$txp"] = "$txp Xp needed to level.",
111 ["$Txp"] = "$Txp Xp needed to reach level 60.",
112 ["$pdl"] = "$pdl Percent of the way through the current level.",
113 ["$Pdl"] = "$Pdl Percent of the way to the end of level 60.",
114 ["$ptl"] = "$ptl Percent of the level left to complete.",
115 ["$res"] = "$res Shows 'Resting' if you are currently resting.",
116 ["$rst"] = "$rst Shows 'Unrested', 'Rested' or 'Fully Rested'.",
117 ["$ptx"] = "$ptx Pet's current xp for this level.",
118 ["$pty"] = "$pty Pet's total xp needed for this level.",
119 ["$ppc"] = "$ppc Pet's % of the way through the current level.",
120 ["$ppn"] = "$ppn Pet's % of the level left to complete.",
121 ["$pxg"] = "$pxg Pet's xp needed to level."
122 }
123 if (GetLocale() == "deDE") then
124 end
125  
126 if (GetLocale() == "frFR") then
127 BEB_SELECTOR_LABELS = {
128 BEBGeneralSelector = "Général",
129 BEBColorsSelector = "Couleurs",
130 BEBPlacementSelector = "Calibre/Position"
131 }
132  
133 BEB_BUTTONLABELS = {
134 BEBBackgroundColorButton = "Couleur de fond.",
135 BEBXpUnrestedColorButton = "Peu reposé.",
136 BEBXpRestedColorButton = "Reposé.",
137 BEBXpMaxRestedColorButton = "Entièrement reposé.",
138 BEBRestedBarColorButton = "Reposé.",
139 BEBRestedBarMaxColorButton = "Entièrement reposé.",
140 BEBMarkerUnrestColorButton = "Peu reposé.",
141 BEBMarkerRestColorButton = "Reposé.",
142 BEBMarkerMaxrestColorButton = "Entièrement reposé.",
143 BEBTickUnrestColorButton = "Peu reposé.",
144 BEBTickRestColorButton = "RReposé.",
145 BEBTickMaxrestColorButton = "Entièrement reposé.",
146 BEBRestedTickRestColorButton = "Reposé.",
147 BEBRestedTickMaxrestColorButton = "Entièrement reposé.",
148 BEBBarTextUnrestColorButton = "Peu reposé.",
149 BEBBarTextRestColorButton = "Reposé.",
150 BEBBarTextMaxrestColorButton = "Entièrement reposé."
151 }
152  
153 BEB_HEADINGS = {
154 BEBXpBarHeading = "Barre d'expérience.",
155 BEBRestedBarHeading = "Barre d'expérience reposée.",
156 BEBMarkerHeading = "Travail d'art de borne.",
157 BEBTickHeading = "Tictaquer sur la fin de la barre d'expérience.",
158 BEBRestedTickHeading = "Tictaquer indiquer où l'expérience reposée termine.",
159 BEBBarTextHeading = "Le texte qui est montré sur la barre.",
160 BEBMainSizeHeading = "Taille générale.",
161 BEBTickSizeHeading = "Tictaquer la taille.",
162 BEBMainPositionControlsTitle = "Position générale.",
163 BEBTickPositionControlsTitle = "Tictaquer la Position.",
164 BEB_MainAttachPointButton_Label = "Barre attache le point.",
165 BEB_MainAttachToPointButton_Label ="Le point relatif de la barre.",
166 BEB_MainAttachToFrame_Label = "Attacher pour encadrer",
167 BEB_TextStringFrame_Label = "Le texte qui montrera sur la barre."
168 }
169 BEB_CHECKBUTTONLABELS = {
170 BEBEnabledButton = "Rendu capable",
171 BEBShowMarksButton = "Montrer les Marques",
172 BEBShowXpTicksButton = "Montrer le tictaquer à la fin du la barre Xp.",
173 BEBShowRestedXpTicksButton = "Montrer le tictaquer où reposé Xp vous obtiendra.",
174 BEBShowBackgroundButton = "Montrer un fond derrière la barre.",
175 BEBShowXpTextButton = "Montrer le texte sur la barre.",
176 BEBFlashHighlightButton = "Clignoter le tictaquer xp reposé en se reposant.",
177 BEBTextOnMouseoverButton = "Montrer le texte seulement quand moused par-dessus.",
178 BEBShowRestedBarButton = "Montrer la barre de Xp reposé.",
179 BEBUnlockBarButton = "Permettre à la barre être traîné."
180 }
181  
182  
183  
184 BEB_TEXT = {
185 height = "Hauteur",
186 width = "Largeur",
187 fontsize = "Taille de texte",
188 validcommands = "Les ordres valides sont /beb [defaults, enbale, disable, help]. /beb ouvrira tout seul l'écran de config.",
189 invalidcommand = "L'ordre nul, utiliser /beb help pour une liste d'ordres",
190 xpnomatch1 = "Ajourner et ingame Xp par ne nivelle pas l'allumette, envoyer un e-mail à futrtrubl@hotmail.com avec; BEB: LVL= ",
191 xpnomatch2 = ", XpAjourner = ",
192 xpnomatch3 = ", XpVéritable = ",
193 alreadyenabled = "BEB déjà est rendu capable.",
194 alreadydisabled = "BEB déjà est rendu infirme.",
195 framelocked = "Le cadre de BEB est verrouillé. L'ouvrir si vous souhaitez le déplacer.",
196 loaded = "BEB est chargé",
197 optionstextwasmouseover = "BEB: Le texte était montré sur mouseover, ceci a été rendu infirme.",
198 optionstextwashidden = "BEB: Le texte a été réglé pour ne jamais montrer. Le texte maintenant est rendu capable.",
199 framewasinvalid = "BEB: Le cadre que BEB a été attaché à n'existe pas ou est nul. S'il vous plaît l'usage /beb et change le cadre que BEB est attaché à.",
200 frameisinvalid = "BEB: Le cadre que vous êtes entré n'existe pas ou est nul.",
201 rested = "Reposé",
202 unrested = "Peu reposé",
203 fullyrested = "Entièrement Reposé",
204 resting = "Reposant"
205 }
206  
207 BEB_ATTACHPOINTS = {
208 TOP = "Superieur",
209 BOTTOM = "Inférieur",
210 LEFT = "Gauche",
211 RIGHT = "Droite",
212 TOPLEFT = "Superieur gauch",
213 TOPRIGHT = "Superieur droit",
214 BOTTOMLEFT = "Inférieur gauch",
215 BOTTONRIGHT = "Inférieur droit",
216 CENTER = "Centre"
217 }
218  
219 BEB_UIATTACHFRAMES = {
220 UIParent = "UI Parent",
221 MainMenuExpBar = "UI Barre d'expérience",
222 MainMenuBar = "UI Barre principale",
223 ChatFrame1 = "UI Cadre de bavarder",
224 MinimapCluster = "UI Petite carte"
225 }
226  
227 BEB_VARIABLE_FUNCTIONS_DESCIPTIONS = {
228 ["$plv"] = "$plv Niveau du caractère.",
229 ["$cxp"] = "$cxp Le courant xp pour ce niveau.",
230 ["$mxp"] = "$mxp Totaliser xp a eu besoin de pour ce niveau.",
231 ["$rxp"] = "$rxp Reposé xp comme rapporté par le jeu.",
232 ["$Rxp"] = "$Rxp Le véritable courant s'est reposé xp. ",
233 ["$Cxp"] = "$Cxp Totaliser xp jamais a gagné pour ce caractère.",
234 ["$Mxp"] = "$Mxp Xp aller jusqu'à ce que vous pouvez gagner non plus.",
235 ["$txp"] = "$txp Xp a eu besoin de niveler.",
236 ["$Txp"] = "$Txp Xp a eu besoin d'atteindre nivelle 60.",
237 ["$pdl"] = "$pdl Le pourcent de la façon par le niveau actuel.",
238 ["$Pdl"] = "$Pdl Le pourcent de la façon à la fin de niveau 60.",
239 ["$ptl"] = "$ptl Le pourcent du niveau part compléter.",
240 ["$res"] = "$res Les spectacles se 'Reposant' si vous vous reposez actuellement.",
241 ["$rst"] = "$rst Les spectacles 'peu Reposé', 'Reposé' ou 'Reposé Entièrement'.",
242 ["$ptx"] = "$ptx Le courant de l'animal favori xp pour ce niveau.",
243 ["$pty"] = "$pty Le total de l'animal favori xp a eu besoin de pour ce niveau.",
244 ["$ppc"] = "$ppc Animal favori % de la façon par le niveau actuel.",
245 ["$ppn"] = "$ppn Animal favori % du niveau part compléter.",
246 ["$pxg"] = "$pxg Animal favori xp a eu besoin de niveler."
247 }
248 end
249  
250 BEB_ARROWLEFT = "<"
251 BEB_ARROWRIGHT = ">"
252  
253 BEB_VARIABLE_FUNCTIONS = {
254 ["$plv"] = {
255 func = function() return UnitLevel("player") end,
256 events = {"PLAYER_LEVEL_UP"}
257 },
258  
259 ["$cxp"] = {
260 func = function()
261 if (UnitXP("player")) then
262 return UnitXP("player")
263 else
264 return 0
265 end
266 end,
267 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
268 },
269  
270 ["$mxp"] = {
271 func = function() return UnitXPMax("player") end,
272 events = {"PLAYER_LEVEL_UP"}
273 },
274  
275 ["$rxp"] = {
276 func = function()
277 if (GetXPExhaustion()) then
278 return GetXPExhaustion()
279 else
280 return 0
281 end
282 end,
283 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE", "UPDATE_EXHAUSTION"}
284 },
285  
286 ["$Rxp"] = {
287 func = function()
288 if (GetXPExhaustion()) then
289 return (GetXPExhaustion()/2)
290 else
291 return 0
292 end
293 end,
294 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE", "UPDATE_EXHAUSTION"}
295 },
296  
297 ["$Cxp"] = {
298 func = function()
299 local xpdone
300 if (UnitXP("player")) then
301 xpdone = UnitXP("player")
302 else
303 xpdone = 0
304 end
305 for i=1,(UnitLevel("player")-1) do
306 xpdone = xpdone + BEBXpPerLvl[i]
307 end
308 return xpdone
309 end,
310 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
311 },
312  
313 ["$Mxp"] = {
314 func = function()
315 local xptodo
316 if (UnitXP("player")) then
317 xptodo = UnitXPMax("player") - UnitXP("player")
318 else
319 xptodo = UnitXPMax("player")
320 end
321 for i=(UnitLevel("player")+1),60 do
322 xptodo = xptodo + BEBXpPerLvl[i]
323 end
324 return xptodo
325 end,
326 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
327 },
328  
329 ["$txp"] = {
330 func = function()
331 if (UnitXP("player")) then
332 return UnitXPMax("player") - UnitXP("player")
333 else
334 return UnitXPMax("player")
335 end
336 end,
337 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
338 },
339  
340 ["$Txp"] = {
341 func = function()
342 local xptodo
343 if (UnitXP("player")) then
344 xptodo = UnitXPMax("player") - UnitXP("player")
345 else
346 xptodo = UnitXPMax("player")
347 end
348 for i=(UnitLevel("player")+1),59 do
349 xptodo = xptodo + BEBXpPerLvl[i]
350 end
351 return xptodo
352 end,
353 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
354 },
355  
356 ["$pdl"] = {
357 func = function()
358 if (UnitXP("player")) then
359 return math.floor((UnitXP("player")/UnitXPMax("player"))*100)
360 else
361 return 0
362 end
363 end,
364 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
365 },
366  
367 ["$Pdl"] = {
368 func = function()
369 local xpdone
370 if (UnitXP("player")) then
371 xpdone = UnitXP("player")
372 else
373 xpdone = 0
374 end
375 for i=1,(UnitLevel("player")-1) do
376 xpdone = xpdone + BEBXpPerLvl[i]
377 end
378 return math.floor((xpdone/4302200)*100)
379 end,
380 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
381 },
382  
383 ["$ptl"] = {
384 func = function()
385 if (UnitXP("player")) then
386 return math.floor(((UnitXPMax("player") - UnitXP("player"))/UnitXPMax("player"))*100)
387 else
388 return 0
389 end
390 end,
391 events = {"PLAYER_LEVEL_UP", "PLAYER_XP_UPDATE"}
392 },
393  
394 ["$res"] = {
395 func = function()
396 if (IsResting() == 1) then
397 return BEB_TEXT.resting
398 else
399 return ""
400 end
401 end,
402 events = {"PLAYER_UPDATE_RESTING"}
403 },
404  
405 ["$rst"] = {
406 func = function()
407 if (GetRestState() == 1) then
408 if (GetXPExhaustion() == (UnitXPMax("player")*1.5)) then
409 return BEB_TEXT.fullyrested
410 else
411 return BEB_TEXT.rested
412 end
413 else
414 return BEB_TEXT.unrested
415 end
416 end,
417 events = {"UPDATE_EXHAUSTION"}
418 },
419 -- Pet Current XP
420 ["$ptx"] = {
421 func = function()
422 if (GetPetExperience()) then
423 local x = GetPetExperience();
424 return x
425 else
426 return ""
427 end
428 end,
429 events = {"UNIT_PET_EXPERIENCE"}
430 },
431 -- Pet XP Needed to Level
432 ["$pty"] = {
433 func = function(text, unit)
434 if (GetPetExperience()) then
435 local _,x = GetPetExperience();
436 return x
437 else
438 return ""
439 end
440 end,
441 events = {"UNIT_PET_EXPERIENCE"}
442 },
443 -- Pet XP Percent Complete
444 ["$ppc"] = {
445 func = function()
446 if (GetPetExperience()) then
447 local min,max = GetPetExperience();
448 if (max and min and max > 0) then
449 return math.floor((min / max) * 100);
450 else
451 return ""
452 end
453 else
454 return ""
455 end
456 end,
457 events = {"UNIT_PET_EXPERIENCE"}
458 },
459 -- Pet XP Percent Needed
460 ["$ppn"] = {
461 func = function()
462 if (GetPetExperience()) then
463 local min,max = GetPetExperience();
464 if (max and min and max > 0) then
465 return math.floor(((max-min)/max)*100);
466 else
467 return ""
468 end
469 else
470 return ""
471 end
472 end,
473 events = {"UNIT_PET_EXPERIENCE"}
474 },
475 -- Pet XP To Go
476 ["$pxg"] = {
477 func = function(text, unit)
478 if (GetPetExperience()) then
479 local min,max = GetPetExperience();
480 if (max and min and max > 0) then
481 return (max - min);
482 else
483 return ""
484 end
485 else
486 return ""
487 end
488 end,
489 events = {"UNIT_PET_EXPERIENCE"}
490 }
491 }