vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | -- löschanimation eines feldes |
2 | function wowon_UI_GXF_sf (art, n) |
||
3 | -- art = ball/feld/balken |
||
4 | -- n = nummer des ball/feld |
||
5 | |||
6 | |||
7 | if (art == "felddelet") then |
||
8 | -- anfangsstatus |
||
9 | if (wowon.game.gfx[art..n] == nil) then |
||
10 | wowon.game.gfx[art..n] = { } |
||
11 | |||
12 | wowon.game.gfx[art..n].b = wowon.game.feld[n].b/20 |
||
13 | wowon.game.gfx[art..n].h = wowon.game.feld[n].h/20 |
||
14 | wowon.game.gfx[art..n].a = wowon.game.feld[n].vc.a/20 |
||
15 | wowon.game.gfx[art..n].timer = 1 |
||
16 | |||
17 | -- timer starten |
||
18 | wowon_timer_gxf (true, art, n) |
||
19 | |||
20 | -- der gxf |
||
21 | elseif (wowon.game.gfx[art..n].timer>0 and wowon.game.gfx[art..n].timer<18) then |
||
22 | |||
23 | wowon.game.feld[n].vc.a = wowon.game.feld[n].vc.a - wowon.game.gfx[art..n].a |
||
24 | wowon.game.feld[n].b = wowon.game.feld[n].b - wowon.game.gfx[art..n].b |
||
25 | wowon.game.feld[n].h = wowon.game.feld[n].h - wowon.game.gfx[art..n].h |
||
26 | |||
27 | wowon.game.feld[n].x = wowon.game.feld[n].x + wowon.game.gfx[art..n].b/2 |
||
28 | wowon.game.feld[n].y = wowon.game.feld[n].y + wowon.game.gfx[art..n].h/2 |
||
29 | |||
30 | wowon.game.gfx[art..n].timer = wowon.game.gfx[art..n].timer + 1 |
||
31 | |||
32 | wowon_UI_sf_feld_update (n) |
||
33 | wowon_UI_sf_feld_start (n) |
||
34 | |||
35 | -- ende |
||
36 | else |
||
37 | wowon_timer_gxf (false, art, n) |
||
38 | wowon.game.gfx[art..n] = nil |
||
39 | wowon_UI_sf_feld_hide (n) |
||
40 | end |
||
41 | end |
||
42 | |||
43 | if (art == "balken+") then |
||
44 | -- anfangsstatus |
||
45 | if (wowon.game.gfx[art..n] == nil) then |
||
46 | wowon.game.gfx[art..n] = { } |
||
47 | wowon.game.gfx[art..n].b = wowon.game.balken.b |
||
48 | wowon.game.gfx[art..n].h = wowon.game.balken.h |
||
49 | wowon.game.gfx[art..n].timer = 1 |
||
50 | |||
51 | -- timer starten |
||
52 | wowon_timer_gxf (true, art, n) |
||
53 | |||
54 | -- der gxf |
||
55 | elseif (wowon.game.gfx[art..n].timer>0 and wowon.game.gfx[art..n].timer<18) then |
||
56 | |||
57 | wowon.game.balken.b = wowon.game.balken.b+wowon.game.gfx[art..n].b*0.01 |
||
58 | wowon.game.balken.h = wowon.game.balken.h-wowon.game.gfx[art..n].h*0.01 |
||
59 | |||
60 | wowon.game.gfx[art..n].timer = wowon.game.gfx[art..n].timer + 1 |
||
61 | |||
62 | wowon_UI_sf_balken_update () |
||
63 | |||
64 | -- ende |
||
65 | else |
||
66 | wowon_timer_gxf (false, art, n) |
||
67 | wowon.game.gfx[art..n] = nil |
||
68 | end |
||
69 | end |
||
70 | |||
71 | if (art == "balken-") then |
||
72 | -- anfangsstatus |
||
73 | if (wowon.game.gfx[art..n] == nil) then |
||
74 | wowon.game.gfx[art..n] = { } |
||
75 | wowon.game.gfx[art..n].b = wowon.game.balken.b |
||
76 | wowon.game.gfx[art..n].h = wowon.game.balken.h |
||
77 | wowon.game.gfx[art..n].timer = 1 |
||
78 | |||
79 | -- timer starten |
||
80 | wowon_timer_gxf (true, art, n) |
||
81 | |||
82 | -- der gxf |
||
83 | elseif (wowon.game.gfx[art..n].timer>0 and wowon.game.gfx[art..n].timer<18) then |
||
84 | |||
85 | wowon.game.balken.b = wowon.game.balken.b-wowon.game.gfx[art..n].b*0.01 |
||
86 | wowon.game.balken.h = wowon.game.balken.h+wowon.game.gfx[art..n].h*0.01 |
||
87 | |||
88 | wowon.game.gfx[art..n].timer = wowon.game.gfx[art..n].timer + 1 |
||
89 | |||
90 | wowon_UI_sf_balken_update () |
||
91 | |||
92 | -- ende |
||
93 | else |
||
94 | wowon_timer_gxf (false, art, n) |
||
95 | wowon.game.gfx[art..n] = nil |
||
96 | end |
||
97 | end |
||
98 | |||
99 | |||
100 | end |
||
101 | |||
102 | |||
103 | |||
104 | -- stopt alle timer über table.foreach |
||
105 | function wowon_UI_GXF_sf_stop_all (x) |
||
106 | -- x = name des table |
||
107 | if not (wowon.game.gfx[x] == nil) then |
||
108 | wowon_timer_gxf (false, "", x) |
||
109 | end |
||
110 | end |