API/Callbacks/plugins/Warning
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)
Comments