RSS

Четверг, 14.11.2024, 19:10
Главная » WoW API » API Функции » Парикмахерская »

GetHairCustomization

[ править ]
Returns a token used for displaying "hair" customization options.
[клоны]
Returns a token used for displaying "hair" customization options. The token referred to by this function can be used to look up a global variable containing localized names for the customization options available to the player's race at character creation time and in the Barbershop UI; see example.

Signature:
Code
token = GetHairCustomization()

Returns:
  • token - Part of a localized string token for displaying "hair" options for the player's race (string)

Examples:
-- prints localized names for customization options
-- e.g. "Hair Style"/"Hair Color" or "Horn Style"/"Horn Color"
local token = GetHairCustomization();
print(_G["HAIR_"..token.."_STYLE"]);
print(_G["HAIR_"..token.."_COLOR"]);

Также смотрите: Парикмахерская , Barbershop functions
Ссылки: http://wowprogramming.com/docs/api/GetHairCustomization