RaidWatch 2

Parameters in red are optional.

WarningShow(event, text, icon, color, sound, flash)

Shows a warning

Parameters

  • text (string) The text the warning should display.
  • icon (string) Texture path to the icon to be used.
  • color (table) Color to set on the text, if no color is supplied the default color set in the Warnings plugin settings will be used. (number indexed color table).
  • sound (string) Sound file to play along with showing the warning (LSM name).
  • flash (boolean) If true a screen flash will be shown together with the warning.

Usage

RW.Callbacks:Fire("WarningShow", "RUN RUN!", [[Interface\ICONS\SomeTexture]], "Bell", true)


You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Jul 19, 2010
Last updated
Aug 10, 2010

Author