RSS

Суббота, 20.04.2024, 01:49
Главная » WoW API » API Виджеты » Строка, использующая шрифт »

FontString:SetAlphaGradient(start, length)

[ править ]
Creates an opacity gradient over the text in the font string.
[клоны]
Creates an opacity gradient over the text in the font string. Seen in the default UI when quest text is presented by a questgiver (if the "Instant Quest Text" feature is not turned on): This method is used with a length of 30 to fade in the letters of the description, starting at the first character; then the start value is incremented in an OnUpdate script, creating the animated fade-in effect.


Signature:
Code
FontString:SetAlphaGradient(start, length)

Arguments:
  • start - Character position in the font string's text at which the gradient should begin (between 0 and string.len(fontString:GetText()) - 6) (number)
  • length - Width of the gradient in pixels, or 0 to restore the text to full opacity (number)

Также смотрите: Строка, использующая шрифт
Ссылки: http://wowprogramming.com/docs/widgets/FontString/SetAlphaGradient