vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | --<< ================================================= >>-- |
2 | -- Section I: Timex deprecated methods. -- |
||
3 | --<< ================================================= >>-- |
||
4 | function Timex:AddNamedSchedule(n, t, r, c, f, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) |
||
5 | return self:AddSchedule(n, t, r, c, f, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20); |
||
6 | end |
||
7 | |||
8 | function Timex:NamedScheduleCheck(n, r) |
||
9 | return self:ScheduleCheck(n, r); |
||
10 | end |
||
11 | |||
12 | function Timex:ScheduleCheck(n, r) |
||
13 | return self:CheckSchedule(n, r); |
||
14 | end |
||
15 | |||
16 | function Timex:DeleteNamedSchedule(n) |
||
17 | return self:DeleteSchedule(n); |
||
18 | end |
||
19 | |||
20 | function Timex:ChangeDuration(id, t) |
||
21 | self:ChangeScheduleDuration(id, t); |
||
22 | end |
||
23 | |||
24 | --<< ================================================= >>-- |
||
25 | -- Section II: TimexBar deprecated methods -- |
||
26 | --<< ================================================= >>-- |
||
27 | |||
28 | -- legacy support: |
||
29 | -- R21: TimexBar:StartBar(i , c , tc, a, s , f, tex) |
||
30 | -- R22: TimexBar:StartBar(txt, tmr, r , g, blu, x, y , pr, a1, a2, re, tex) |
||
31 | function TimexBar:StartBar(i , c , tc, a, s , f, tex, pr, a1, a2, re, tex21) |
||
32 | if i then |
||
33 | -- R21 support |
||
34 | if type(i) == "string" or type(i) == "number" then |
||
35 | if not c or i == "" then return end |
||
36 | self:Get(i); |
||
37 | self:SetText(i, i); |
||
38 | self:SetTexture(i, tex21); |
||
39 | self:SetColor(i, tc, a, s); |
||
40 | self:SetPoint(i, a1, pr, a2, f, tex); |
||
41 | return self:Start(i, c, re); |
||
42 | -- R22 support |
||
43 | elseif type(i) == "table" then |
||
44 | local id = i[1]; |
||
45 | self:Get(id); |
||
46 | self:SetText(id, i[2]); |
||
47 | self:SetTexture(id, tex); |
||
48 | if c then |
||
49 | self:SetColor(id, c[1], c[2], c[3], c[4]); |
||
50 | end |
||
51 | if a then |
||
52 | self:SetPoint(id, a[4], a[3], a[5], a[1], a[2]); |
||
53 | end |
||
54 | if tc then |
||
55 | self:SetTextColor(id, tc[1], tc[2], tc[3], tc[4]); |
||
56 | end |
||
57 | if s then |
||
58 | self:SetScale(id, s[1]); |
||
59 | self:SetWidth(id, s[2]); |
||
60 | self:SetHeight(id, s[3]); |
||
61 | self:SetTimeWidth(id, s[4]); |
||
62 | end |
||
63 | if f then |
||
64 | self:SetFunction(id, f[1], unpack(f[2] or EMPTY_TABLE)); |
||
65 | end |
||
66 | return self:Start(id, i[3], i[4]); |
||
67 | else |
||
68 | -- if you see this error you should be updating to the new methods |
||
69 | error("Illegal arguments passed to deprecated TimexBar:StartBar method."); |
||
70 | end |
||
71 | end |
||
72 | end |
||
73 | |||
74 | function TimexBar:StopBar(id) |
||
75 | self:Stop(id); |
||
76 | end |
||
77 | |||
78 | function TimexBar:CheckBar(id, r) |
||
79 | return self:Check(id, r); |
||
80 | end |