vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1  
2 -- The ace:LoadTranslation() method looks for a specific translation function for
3 -- the addon. If it finds one, that translation is loaded. See AceHelloLocals_xxXX.lua
4 -- for an example and description of function naming.
5 if( not ace:LoadTranslation("MyAcePerc") ) then
6  
7 ace:RegisterGlobals({
8 version = 1.01
9 })
10  
11  
12 -- All text inside quotes is translatable, except for 'method' lines.
13 MYACEPERC.DESCRIPTION = "Mypercentage - Addon to show %-of-mana cost in tooltip for spells"
14 MYACEPERC.STATUS = "MyPercentage Display mode : "
15  
16 -- Chat handler locals
17 MYACEPERC.COMMANDS = {"/myperc"}
18 MYACEPERC.CMD_OPTIONS = {
19 {
20 option = "total",
21 desc = "Displays % mana cost based on total mana",
22 method = "TotalMana"
23 },
24 {
25 option = "current",
26 desc = "Displays % mana cost based on current mana",
27 method = "CurrentMana"
28 },
29 {
30 option = "colour",
31 desc = "Colour code tooltip info (Green=Current, Yellow=Total)",
32 method = "Colour"
33 }
34 }
35  
36 MYACEPERC.TOTAL_MSG = "MyAcePercentage tracking your total mana:"
37 MYACEPERC.CURNT_MSG = "MyAcePercentage tracking your current mana:"
38 MYACEPERC.COLOR_MSG = "MyAcePercentage displaying colours:"
39  
40 end