Babble-Class-2.2
From WowAce Wiki
Babble-Class-2.2 is a library to provide localizations for classes.
Note: Babble-Class-2.2 is merely an instance of AceLocale-2.2, with translations provided. Thus, API Documentation will not be provided, as you can refer to AceLocale-2.2#API Documentation.
See also: BabbleLib
Contents |
[edit]
Example
local BC = AceLibrary("Babble-Class-2.2")
print(BC["Warlock"]) -- "Hexenmeister" if in deDE.
[edit]
Extra API Documentation
Aside from the standard AceLocale-2.2#API Documentation, the following methods are provided:
[edit]
:GetColor("class")
Returns the color of the class.
[edit]
Args
- "class"
- string - the name of the class, either english or localized.
[edit]
Returns
r, g, b
- r
- number [0, 1] - red value
- g
- number [0, 1] - green value
- b
- number [0, 1] - blue value
[edit]
:GetHexColor("class")
Returns the color of the class in hexadecimal
[edit]
Args
- "class"
- string - the name of the class, either english or localized.
[edit]
Returns
string - color in the form of "rrggbb"

