vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 -- verschiedene balken / setzt die variablen dem balken entsprechend
2 function wowon_balk ()
3 local x = wowon.game.balken.s
4  
5 if (x == 1) then
6 wowon.game.balken.t = "Interface\\AddOns\\WoWonid\\textur\\balken"
7 wowon.game.balken.vc = {};
8 wowon.game.balken.vc.r = 1
9 wowon.game.balken.vc.g = 1
10 wowon.game.balken.vc.b = 1
11 wowon.game.balken.vc.a = 1
12 end
13  
14 --[[
15 --breite des balken in pixel
16 wowon.game.balken.b = 8
17 -- balken-höhe
18 wowon.game.balken.h = 5
19 -- status des balken
20 -- 1 = standard balken
21 -- 1..9 = weitere stadien des balken (breiter/mit waffe/neuer ball/unsichtbar usw.)
22 wowon.game.balken.s = 1
23 -- textur
24 wowon.game.balken.t = "holz"
25 --]]
26  
27 end
28  
29 -- verschiedene bälle
30 function wowon_ball (b)
31 -- b = balnummer die geändert wird
32  
33 local x = wowon.game.ball[b].s
34 -- standardball
35 if (x == 1) then
36 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\b-normal"
37 wowon.game.ball[b].vc = {};
38 wowon.game.ball[b].vc.r = 1
39 wowon.game.ball[b].vc.g = 1
40 wowon.game.ball[b].vc.b = 1
41 wowon.game.ball[b].vc.a = 1
42 end
43  
44 -- feuerball
45 if (x == 2) then
46 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\b-feuer"
47 wowon.game.ball[b].vc = {};
48 wowon.game.ball[b].vc.r = 1
49 wowon.game.ball[b].vc.g = 1
50 wowon.game.ball[b].vc.b = 1
51 wowon.game.ball[b].vc.a = 1
52 end
53  
54 -- blauerball (randomwinkel)
55 if (x == 3) then
56 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\b-blau"
57 wowon.game.ball[b].vc = {};
58 wowon.game.ball[b].vc.r = 1
59 wowon.game.ball[b].vc.g = 1
60 wowon.game.ball[b].vc.b = 1
61 wowon.game.ball[b].vc.a = 1
62 end
63  
64 -- feldball (feuer)
65 if (x == 102) then
66 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\fb-feuer"
67 wowon.game.ball[b].vc = {};
68 wowon.game.ball[b].vc.r = 1
69 wowon.game.ball[b].vc.g = 1
70 wowon.game.ball[b].vc.b = 1
71 wowon.game.ball[b].vc.a = 1
72 end
73  
74 -- feldball (blau)
75 if (x == 103) then
76 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\fb-blau"
77 wowon.game.ball[b].vc = {};
78 wowon.game.ball[b].vc.r = 1
79 wowon.game.ball[b].vc.g = 1
80 wowon.game.ball[b].vc.b = 1
81 wowon.game.ball[b].vc.a = 1
82 end
83  
84 -- speed+
85 if (x == 150) then
86 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\speed+"
87 wowon.game.ball[b].vc = {};
88 wowon.game.ball[b].vc.r = 1
89 wowon.game.ball[b].vc.g = 1
90 wowon.game.ball[b].vc.b = 1
91 wowon.game.ball[b].vc.a = 1
92 end
93  
94 -- speed-
95 if (x == 151) then
96 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\speed-"
97 wowon.game.ball[b].vc = {};
98 wowon.game.ball[b].vc.r = 1
99 wowon.game.ball[b].vc.g = 1
100 wowon.game.ball[b].vc.b = 1
101 wowon.game.ball[b].vc.a = 1
102 end
103  
104 -- grösse+
105 if (x == 152) then
106 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\grosse+"
107 wowon.game.ball[b].vc = {};
108 wowon.game.ball[b].vc.r = 1
109 wowon.game.ball[b].vc.g = 1
110 wowon.game.ball[b].vc.b = 1
111 wowon.game.ball[b].vc.a = 1
112 end
113  
114 -- grösse-
115 if (x == 153) then
116 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\grosse-"
117 wowon.game.ball[b].vc = {};
118 wowon.game.ball[b].vc.r = 1
119 wowon.game.ball[b].vc.g = 1
120 wowon.game.ball[b].vc.b = 1
121 wowon.game.ball[b].vc.a = 1
122 end
123  
124 -- balken-
125 if (x == 200) then
126 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\fb-balken-"
127 wowon.game.ball[b].vc = {};
128 wowon.game.ball[b].vc.r = 1
129 wowon.game.ball[b].vc.g = 1
130 wowon.game.ball[b].vc.b = 1
131 wowon.game.ball[b].vc.a = 1
132 end
133  
134 -- balken+
135 if (x == 201) then
136 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\fb-balken+"
137 wowon.game.ball[b].vc = {};
138 wowon.game.ball[b].vc.r = 1
139 wowon.game.ball[b].vc.g = 1
140 wowon.game.ball[b].vc.b = 1
141 wowon.game.ball[b].vc.a = 1
142 end
143  
144 -- ball+1
145 if (x == 301) then
146 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\fb-ball+1"
147 wowon.game.ball[b].vc = {};
148 wowon.game.ball[b].vc.r = 1
149 wowon.game.ball[b].vc.g = 1
150 wowon.game.ball[b].vc.b = 1
151 wowon.game.ball[b].vc.a = 1
152 end
153  
154 -- ball+2
155 if (x == 302) then
156 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\fb-ball+2"
157 wowon.game.ball[b].vc = {};
158 wowon.game.ball[b].vc.r = 1
159 wowon.game.ball[b].vc.g = 1
160 wowon.game.ball[b].vc.b = 1
161 wowon.game.ball[b].vc.a = 1
162 end
163  
164 -- ball+3
165 if (x == 303) then
166 wowon.game.ball[b].t = "Interface\\AddOns\\WoWonid\\textur\\fb-ball+3"
167 wowon.game.ball[b].vc = {};
168 wowon.game.ball[b].vc.r = 1
169 wowon.game.ball[b].vc.g = 1
170 wowon.game.ball[b].vc.b = 1
171 wowon.game.ball[b].vc.a = 1
172 end
173  
174 --[[
175 -- ballnummer
176 wowon.game.ball[1] = {};
177 -- x/y pos des balles
178 wowon.game.ball[1].x = 111
179 wowon.game.ball[1].y = 111
180 -- geschwindigkeit des ball in pixel
181 wowon.game.ball[1].a = 2
182 -- status des balles
183 -- 0 = standard
184 -- 1..99 = weitere stadien des balles (unsichtbar/stark/farbe usw.)
185 wowon.game.ball[1].s = 1
186 -- flugwinkel des balles
187 -- 0 = 360 = senkrecht nach oben
188 -- 90 = waagrecht nach rechts
189 -- 180 = senkrecht nach unten
190 -- 270 = waagrecht nach links
191 wowon.game.ball[1].w = 0
192 -- radius des ball in pixel
193 wowon.game.ball[1].r = 4
194 -- balltextur
195 wowon.game.ball[1].t = "textur"
196 --]]
197  
198 end
199  
200 -- verschiedene felder
201 function wowon_feld (f)
202 -- f = feldnummer die geändert wird
203  
204 local x = wowon.game.feld[f].s
205 -- standard-feld
206 if (x == 1) then
207 wowon.game.feld[f].t = "Interface\\AddOns\\WoWonid\\textur\\rechteck"
208 end
209 -- stahl-feld
210 if (x == 2) then
211 wowon.game.feld[f].t = "Interface\\AddOns\\WoWonid\\textur\\rechteck-stahl"
212 end
213 -- blau-feld
214 if (x == 3) then
215 wowon.game.feld[f].t = "Interface\\AddOns\\WoWonid\\textur\\rechteck-blau"
216 end
217  
218 --[[
219 -- feldnummer
220 wowon.game.feld[1] = {};
221 -- x/y pos des feldes
222 wowon.game.feld[1].x = 111
223 wowon.game.feld[1].y = 111
224 -- b/h des feldes
225 wowon.game.feld[1].h = 111
226 wowon.game.feld[1].b = 111
227 -- feldtextur
228 wowon.game.feld[1].t = "textur"
229 --]]
230  
231 end