vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | PINGY_COLOUR = {r=1,g=1,b=1,a=1}; |
2 | PINGY_HOLD = .1; |
||
3 | PINGY_SIZE_BIG = 30; |
||
4 | PINGY_SIZE_SMALL = 20; |
||
5 | PINGY_FLAG = "OUTLINE"; |
||
6 | PINGY_FONT = "Fonts\\ARIALN.TTF"; |
||
7 | |||
8 | function Pingy_OnLoad() |
||
9 | -- DEFAULT_CHAT_FRAME:AddMessage("PINGY LOADED!!!"); |
||
10 | this:RegisterEvent("MINIMAP_PING"); |
||
11 | this:RegisterEvent("PLAYER_ENTERING_WORLD"); |
||
12 | end |
||
13 | function Pingy_OnEvent() |
||
14 | if (event == "MINIMAP_PING") then |
||
15 | PINGY_MSG_Pinger:AddMessage(UnitName(arg1),PINGY_COLOUR.r,PINGY_COLOUR.g,PINGY_COLOUR.b,PINGY_COLOUR.a); |
||
16 | if (UnitIsPartyLeader(arg1)) then |
||
17 | PINGY_MSG_Leader:AddMessage("Leader",PINGY_COLOUR.r,PINGY_COLOUR.g,PINGY_COLOUR.b,PINGY_COLOUR.a); |
||
18 | end |
||
19 | PINGY_MSG_Class:AddMessage(UnitClass(arg1),PINGY_COLOUR.r,PINGY_COLOUR.g,PINGY_COLOUR.b,PINGY_COLOUR.a); |
||
20 | end |
||
21 | if (event == "PLAYER_ENTERING_WORLD") then |
||
22 | PINGY_MSG_Pinger:SetFont(PINGY_FONT,PINGY_SIZE_BIG,PINGY_FLAG); |
||
23 | PINGY_MSG_Pinger:SetHeight(PINGY_SIZE_BIG+1); |
||
24 | PINGY_MSG_Pinger:SetTimeVisible(PINGY_HOLD) |
||
25 | PINGY_MSG_Leader:SetFont(PINGY_FONT,PINGY_SIZE_SMALL,PINGY_FLAG); |
||
26 | PINGY_MSG_Leader:SetHeight(PINGY_SIZE_SMALL+2); |
||
27 | PINGY_MSG_Leader:SetTimeVisible(PINGY_HOLD) |
||
28 | PINGY_MSG_Class:SetFont(PINGY_FONT,PINGY_SIZE_SMALL,PINGY_FLAG); |
||
29 | PINGY_MSG_Class:SetHeight(PINGY_SIZE_SMALL+2); |
||
30 | PINGY_MSG_Class:SetTimeVisible(PINGY_HOLD) |
||
31 | end |
||
32 | end |