vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --[[
2 Timers
3  
4 wowon_balken
5 wowon_b xx
6  
7 ]]
8  
9  
10  
11 function wowon_timer_balken (x)
12 -- x = true oder false, timer starten beenden
13 --update geschwindigkeit
14 local up = 0.01
15 if (x==true) then
16 Timex:AddNamedSchedule("wowon_balken", up, true, nil, wowon_sf_balken_move)
17 end
18 if (x==false) then
19 Timex:DeleteNamedSchedule("wowon_balken")
20 end
21 end
22  
23  
24 function wowon_timer_ball (x, b)
25 -- x = true oder false, timer starten beenden
26 -- b = ballnummer
27 local up = 0.035
28 if (x==true) then
29 Timex:AddNamedSchedule("wowon_b"..b, up, true, nil, wowon_event_ball, b)
30 end
31 if (x==false) then
32 Timex:DeleteNamedSchedule("wowon_b"..b)
33 end
34 end
35  
36  
37 function wowon_timer_gxf (x, art, n)
38 -- x = true oder false, timer starten beenden
39 -- art = ball/feld/balken
40 -- n = nummer des ball/feld
41 local up = 0.035
42 if (x==true) then
43 Timex:AddNamedSchedule("wowon_gxf_"..art..n, up, true, nil, wowon_UI_GXF_sf, art, n)
44 end
45 if (x==false) then
46 Timex:DeleteNamedSchedule("wowon_gxf_"..art..n)
47 end
48 end
49  
50  
51  
52 --[[
53  
54 Timex:NamedScheduleCheck("n")
55  
56 Example:
57 Timex:CheckNamedSchedule("MyAddOnSchedNameOne")
58  
59 -- return TRUE or nil.
60  
61 Timex:AddNamedSchedule(n, t, r, c, f, a)
62  
63 Key:
64 n The name of the schedule, this is a string.
65 t The delay before it fires, this is a number.
66 r Whether it constantly repeats, this is a boolean.
67 c The amount of times to run, this is a number.
68 f The function name, this is not a string.
69 a The function arguments.
70  
71 Example:
72 Timex:AddNamedSchedule("MyAddOnSchedNameTwo",5,TRUE,nil,ace["print"],ace,"Hello World!")
73  
74  
75 Timex:DeleteNamedSchedule("n")
76  
77 Example:
78 Timex:DeleteNamedSchedule("MyAddOnSchedNameOne")
79  
80 ]]