Babble-Class-2.2

From WowAce Wiki

Jump to: navigation, search

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

Example

local BC = AceLibrary("Babble-Class-2.2")

print(BC["Warlock"]) -- "Hexenmeister" if in deDE.

Extra API Documentation

Aside from the standard AceLocale-2.2#API Documentation, the following methods are provided:

 :GetColor("class")

Returns the color of the class.

Args

"class" 
string - the name of the class, either english or localized.

Returns

r, g, b

number [0, 1] - red value
number [0, 1] - green value
number [0, 1] - blue value

 :GetHexColor("class")

Returns the color of the class in hexadecimal

Args

"class" 
string - the name of the class, either english or localized.

Returns

string - color in the form of "rrggbb"


Personal tools
Support the Site