vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | function IMBA_AddAlert(text) |
2 | if not IMBA_SavedVariables.UseSCTForAlerts then |
||
3 | IMBA_Alert3:SetText(IMBA_Alert2.TheText,IMBA_Alert2.TextFade); |
||
4 | IMBA_Alert2:SetText(IMBA_Alert1.TheText,IMBA_Alert1.TextFade); |
||
5 | IMBA_Alert1:SetText(text,GetTime()+5); |
||
6 | else |
||
7 | SCT_MSG_FRAME:AddMessage(text,1,1,0,1); |
||
8 | end |
||
9 | end |
||
10 | |||
11 | function IMBA_AddRaidAlert(text, normalalert, raidsend) |
||
12 | if (raidsend) and (IsRaidLeader() or IsRaidOfficer()) and (not IMBA_SavedVariables.DontRaidBroadcast) then |
||
13 | SendChatMessage(text,"RAID_WARNING"); |
||
14 | end |
||
15 | if normalalert then |
||
16 | IMBA_AddAlert(text); |
||
17 | end |
||
18 | end |
||
19 | |||
20 | function IMBA_SetScaleAlert(loading) |
||
21 | if IMBA_SavedVariables.ScaleAlert==nil then |
||
22 | IMBA_SavedVariables.ScaleAlert=1; |
||
23 | end |
||
24 | IMBA_Options_GraphicsFrame_Slider_ScaleAlertText:SetText(string.format("Alert Scale Size : %.2f",IMBA_SavedVariables.ScaleAlert)); |
||
25 | |||
26 | if not loading then |
||
27 | local pointNum=IMBA_Alerts:GetNumPoints() |
||
28 | local curScale=IMBA_Alerts:GetScale(); |
||
29 | local points={} |
||
30 | for i=1,pointNum,1 do |
||
31 | points[i]={}; |
||
32 | points[i][1], points[i][2], points[i][3], points[i][4], points[i][5]=IMBA_Alerts:GetPoint(i) |
||
33 | points[i][4]=points[i][4]*curScale/IMBA_SavedVariables.ScaleAlert; |
||
34 | points[i][5]=points[i][5]*curScale/IMBA_SavedVariables.ScaleAlert; |
||
35 | --DEFAULT_CHAT_FRAME:AddMessage(points[i][1].." "..points[i][2].." "..points[i][3].." "..points[i][4].." "..points[i][5]); |
||
36 | end |
||
37 | IMBA_Alerts:ClearAllPoints() |
||
38 | for i=1,pointNum,1 do |
||
39 | IMBA_Alerts:SetPoint(points[i][1],points[i][2],points[i][3],points[i][4],points[i][5]); |
||
40 | end |
||
41 | end |
||
42 | |||
43 | IMBA_Alerts:SetScale(IMBA_SavedVariables.ScaleAlert); |
||
44 | end |