-- size: numeric
-- width of the alert frame with the following predefinded values
-- 0 : Shows just the Icon and IconFrame along with ttext and bttext from the data fields. This mode also hides the shine effect.
-- 1 : Default size (width 300);
-- * : any other number will be used as a specific size to resize the width too. 300 is the default size, use this as a starting point.
-- data: keytable:
-- Text = Text to display
-- Title = Title to display
-- bTitle = text to display on the border of the guild alert frame.
-- Icon = icon path to display
-- tText = text to display at the top of the icon
-- bText = text to display at the bottom of the icon
-- Points = numeric value to display ontop of the shield icon (0 for nothing)
-- ShieldHide = Boolean (true or false ) hides the shield icon on the right of the frame. (This does not Hide shieldPoints).
-- ShieldIcon = String containing the path to a custom Icon/Texture to use in place of the regular shield.
-- FrameStyle = String to identify the type of frame to use for your alert.
-- nil: Use the default Blizzard Achievement style.
-- GuildAchievement: Use the Blizzard Guild Achievement style.
-- Notice: A small alert that handles a single line/short sentence of text.
-- HideBanner = Boolean (true or false ) hides the banner and banner border textures when useGuildAch is active
-- BannerColor = keytable: {r,g,b} or nil for default - the rgb values to use for the banner color when useGuildAch is active.
-- HideGlow = Boolean (true or false) hides the glow effect on the alert window.
-- HideShine = Boolean (true or false) hides the shine effect on the alert window.
-- glow: keytable: {r,g,b} or nil for default - the rgb values to use for the glow animation
-- shine: keytable: {r,g,b} or nil for default - the rgb values to use for the shine animation<</code>>
Sample Function Call:
<<code lua>>
function GlamourAlertSample()
local MyData = {};
MyData.Text = "General Text";
MyData.Title = "Title";
MyData.bTitle = "bTitle";
MyData.Icon = "Interface\\Icons\\INV_Misc_QuestionMark";
MyData.tText = "tText";
MyData.bText = "bText";
MyData.FrameStyle = FrameStyle;
MyData.ShieldHide = false;
MyData.ShieldIcon = false;
MyData.ShieldText = "shieldText";
MyData.HideGlow = false;
MyData.HideShine = false;
MyData.ShowBanner = true;
MyData.BannerColor = {r=.2,g=.2,b=.8};
local green = {r=0,g=1,b=0};
local red = {r=1,g=0,b=0 };
GlamourShowAlert(1, MyData, nil, nil);
GlamourShowAlert(1, MyData, red, green);
--
GlamourShowAlert(0, MyData, nil, nil);
GlamourShowAlert(0, MyData, red, green);
--
GlamourShowAlert(400, MyData, green, red);
GlamourShowAlert(200, MyData, red, green);
--
GlamourShowAlert(1, MyData, nil, nil);
GlamourShowAlert(1, MyData, red, green);
end