1 |
function __background_get_internal(argument0, argument1, argument2) //gml_Script___background_get_internal |
2 |
{ |
3 |
var __prop = argument0 |
4 |
var __bind = argument1 |
5 |
var __backinfo = argument2 |
6 |
if (__backinfo[0] == -1 || layer_background_exists(__backinfo[1], __backinfo[0]) == false) |
7 |
{ |
8 |
__backinfo = __background_get_element(__bind) |
9 |
if (__backinfo[0] == -1) |
10 |
return -1; |
11 |
} |
12 |
var __res = -1 |
13 |
var __backid = __backinfo[0] |
14 |
var __layerid = __backinfo[1] |
15 |
var __isfore = __backinfo[2] |
16 |
switch __prop |
17 |
{ |
18 |
case (0 << 0): |
19 |
__res = layer_get_visible(__layerid) |
20 |
break |
21 |
case (1 << 0): |
22 |
__res = __isfore |
23 |
break |
24 |
case (2 << 0): |
25 |
__res = layer_background_get_sprite(__backid) |
26 |
break |
27 |
case (3 << 0): |
28 |
__res = layer_get_x(__layerid) |
29 |
break |
30 |
case (4 << 0): |
31 |
__res = layer_get_y(__layerid) |
32 |
break |
33 |
case (5 << 0): |
34 |
__res = sprite_get_width(layer_background_get_index(__backid)) |
35 |
break |
36 |
case (6 << 0): |
37 |
__res = sprite_get_height(layer_background_get_index(__backid)) |
38 |
break |
39 |
case (7 << 0): |
40 |
__res = layer_background_get_htiled(__backid) |
41 |
break |
42 |
case (8 << 0): |
43 |
__res = layer_background_get_vtiled(__backid) |
44 |
break |
45 |
case (9 << 0): |
46 |
__res = layer_background_get_xscale(__backid) |
47 |
break |
48 |
case (10 << 0): |
49 |
__res = layer_background_get_yscale(__backid) |
50 |
break |
51 |
case (11 << 0): |
52 |
__res = layer_get_hspeed(__layerid) |
53 |
break |
54 |
case (12 << 0): |
55 |
__res = layer_get_vspeed(__layerid) |
56 |
break |
57 |
case (13 << 0): |
58 |
__res = layer_background_get_blend(__backid) |
59 |
break |
60 |
case (14 << 0): |
61 |
__res = layer_background_get_alpha(__backid) |
62 |
break |
63 |
default: |
64 |
break |
65 |
} |
66 |
|
67 |
return __res; |
68 |
} |