219 sprite:= sprFireButton; |
219 sprite:= sprFireButton; |
220 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
220 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
221 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
221 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
222 frame.x:= (cScreenWidth shr 1) - frame.w; |
222 frame.x:= (cScreenWidth shr 1) - frame.w; |
223 frame.y:= cScreenHeight - frame.h; |
223 frame.y:= cScreenHeight - frame.h; |
224 active:= frame; |
224 active.x:= frame.x; |
|
225 active.y:= frame.y; |
|
226 active.w:= frame.w; |
|
227 active.h:= frame.h; |
225 end; |
228 end; |
226 |
229 |
227 with backjump do |
230 with backjump do |
228 begin |
231 begin |
229 show:= true; |
232 show:= true; |
230 sprite:= sprbackjump; |
233 sprite:= sprbackjump; |
231 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
234 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
232 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
235 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
233 frame.x:= (cScreenWidth shr 1) - frame.w * 2; |
236 frame.x:= (cScreenWidth shr 1) - frame.w * 2; |
234 frame.y:= cScreenHeight - Round(frame.h * 1.2); |
237 frame.y:= cScreenHeight - Round(frame.h * 1.2); |
235 active:= frame; |
238 active.x:= frame.x; |
|
239 active.y:= frame.y; |
|
240 active.w:= frame.w; |
|
241 active.h:= frame.h; |
236 end; |
242 end; |
237 |
243 |
238 with forwardjump do |
244 with forwardjump do |
239 begin |
245 begin |
240 show:= true; |
246 show:= true; |
241 sprite:= sprforwardjump; |
247 sprite:= sprforwardjump; |
242 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
248 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
243 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
249 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
244 frame.x:= (cScreenWidth shr 1) - Round(frame.w * 1.2); |
250 frame.x:= (cScreenWidth shr 1) - Round(frame.w * 1.2); |
245 frame.y:= cScreenHeight - frame.h * 2; |
251 frame.y:= cScreenHeight - frame.h * 2; |
246 active:= frame; |
252 active.x:= frame.x; |
|
253 active.y:= frame.y; |
|
254 active.w:= frame.w; |
|
255 active.h:= frame.h; |
247 end; |
256 end; |
248 |
257 |
249 with arrowLeft do |
258 with arrowLeft do |
250 begin |
259 begin |
251 show:= true; |
260 show:= true; |
252 sprite:= sprArrowLeft; |
261 sprite:= sprArrowLeft; |
253 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
262 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
254 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
263 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
255 frame.x:= -(cScreenWidth shr 1) + Round(frame.w * 0.25); |
264 frame.x:= -(cScreenWidth shr 1) + Round(frame.w * 0.25); |
256 frame.y:= cScreenHeight - Round(frame.h * 1.5); |
265 frame.y:= cScreenHeight - Round(frame.h * 1.5); |
257 active:= frame; |
266 active.x:= frame.x; |
|
267 active.y:= frame.y; |
|
268 active.w:= frame.w; |
|
269 active.h:= frame.h; |
258 end; |
270 end; |
259 |
271 |
260 with arrowRight do |
272 with arrowRight do |
261 begin |
273 begin |
262 show:= true; |
274 show:= true; |
263 sprite:= sprArrowRight; |
275 sprite:= sprArrowRight; |
264 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
276 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
265 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
277 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
266 frame.x:= -(cScreenWidth shr 1) + Round(frame.w * 1.5); |
278 frame.x:= -(cScreenWidth shr 1) + Round(frame.w * 1.5); |
267 frame.y:= cScreenHeight - Round(frame.h * 1.5); |
279 frame.y:= cScreenHeight - Round(frame.h * 1.5); |
268 active:= frame; |
280 active.x:= frame.x; |
|
281 active.y:= frame.y; |
|
282 active.w:= frame.w; |
|
283 active.h:= frame.h; |
269 end; |
284 end; |
270 |
285 |
271 with arrowUp do |
286 with arrowUp do |
272 begin |
287 begin |
273 show:= false; |
288 show:= false; |
274 sprite:= sprArrowUp; |
289 sprite:= sprArrowUp; |
275 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
290 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
276 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
291 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
277 frame.x:= (cScreenWidth shr 1) - frame.w * 2; |
292 frame.x:= (cScreenWidth shr 1) - frame.w * 2; |
278 frame.y:= backjump.frame.y - Round(frame.h * 2.25); |
293 frame.y:= backjump.frame.y - Round(frame.h * 2.25); |
279 active:= frame; |
294 active.x:= frame.x; |
|
295 active.y:= frame.y; |
|
296 active.w:= frame.w; |
|
297 active.h:= frame.h; |
280 with moveAnim do |
298 with moveAnim do |
281 begin |
299 begin |
282 target.x:= frame.x; |
300 target.x:= frame.x; |
283 target.y:= frame.y; |
301 target.y:= frame.y; |
284 source.x:= frame.x - Round(frame.w * 0.75); |
302 source.x:= frame.x - Round(frame.w * 0.75); |
292 sprite:= sprArrowDown; |
310 sprite:= sprArrowDown; |
293 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
311 frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale); |
294 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
312 frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale); |
295 frame.x:= (cScreenWidth shr 1) - frame.w * 2; |
313 frame.x:= (cScreenWidth shr 1) - frame.w * 2; |
296 frame.y:= backjump.frame.y - Round(frame.h * 2.25); |
314 frame.y:= backjump.frame.y - Round(frame.h * 2.25); |
297 active:= frame; |
315 active.x:= frame.x; |
|
316 active.y:= frame.y; |
|
317 active.w:= frame.w; |
|
318 active.h:= frame.h; |
298 with moveAnim do |
319 with moveAnim do |
299 begin |
320 begin |
300 target.x:= frame.x; |
321 target.x:= frame.x; |
301 target.y:= frame.y; |
322 target.y:= frame.y; |
302 source.x:= frame.x + Round(frame.w * 0.75); |
323 source.x:= frame.x + Round(frame.w * 0.75); |