GHI_AnimBuffCastTexture

Pilus edited this page Aug 11, 2015 · 1 revision

Syntax:

GHI_AnimBuffCastTexture(texture, effectDuration, startingColor, endingColor)

Arguments:

GHI_AnimBuffCastTexture() has two required arguments and two optional arguments.

texture
''String''
A path to the image you wish to use for the animation.
effectDuration
''Number''
The total time the animation lasts.
startingColor
''Table or String''
This argument will tint the color of the image to this color. If no tint is desired, make this value nil or fully white. Takes an color table of RGB Values ranging from 0 to 1, or a color from the following list. (RGB value listed for reference):
  • red = { r = 1, g = 0.0, b = 0.0 },
  • white = { r = 1, g = 1, b = 1 },
  • yellow = { r = 1, g = 1, b = 0.0 },
  • gold = { r = 0.5, g = 0.5, b = 0.0 },
  • green = { r = 0.0, g = 1, b = 0.0 },
  • green2 = { r = 0.0, g = 0.5, b = 0.0 },
  • blue = { r = 0.0, g = 0.0, b = 1 },
  • blue2 = { r = 0.0, g = 0.0, b = 0.5 },
  • purple = { r = 0.5, g = 0.0, b = 0.5 },
  • teal = { r = 0.0, g = 0.5, b = 0.5 },
  • orange = { r = 0.8, g = 0.4, b = 0.0 },
  • Lgreen = { r = 0.4, g = 0.8, b = 0.0 },
  • Lblue = { r = 0.0, g = 0.4, b = 0.8 },
  • Dgreen = { r = 0.0, g = 0.8, b = 0.4 },
  • Pink = { r = 0.8, g = 0.0, b = 0.4 },
  • Dblue = { r = 0.4, g = 0.0, b = 0.8 },
  • brown = { r = 0.5, g = 0.0, b = 0.0 },
  • gray = { r = 0.5, g = 0.5, b = 0.5 },
  • black = { r = 0, g = 0, b = 0 },
endingColor
''Table or String''
This argument will tint the color of the image to this color at the end of the animation. The image will fade over time form the starting color to this color. If no change is desired, make this value nil.

Aliases:

None

Example:

local texture = "spells\\aspect_beast"

local effectDuration = 5

local startingColor = "blue"

local endingColor = "red"

GHI_AnimBuffCastTexture(texture,effectDuration,startingColor,endingColor)

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.