1 |
function __view_get(argument0, argument1) //gml_Script___view_get |
2 |
{ |
3 |
var __prop = argument0 |
4 |
var __index = argument1 |
5 |
var __res = -1 |
6 |
switch __prop |
7 |
{ |
8 |
case (0 << 0): |
9 |
var __cam = view_get_camera(__index) |
10 |
__res = camera_get_view_x(__cam) |
11 |
break |
12 |
case (1 << 0): |
13 |
__cam = view_get_camera(__index) |
14 |
__res = camera_get_view_y(__cam) |
15 |
break |
16 |
case (2 << 0): |
17 |
__cam = view_get_camera(__index) |
18 |
__res = camera_get_view_width(__cam) |
19 |
break |
20 |
case (3 << 0): |
21 |
__cam = view_get_camera(__index) |
22 |
__res = camera_get_view_height(__cam) |
23 |
break |
24 |
case (4 << 0): |
25 |
__cam = view_get_camera(__index) |
26 |
__res = camera_get_view_angle(__cam) |
27 |
break |
28 |
case (5 << 0): |
29 |
__cam = view_get_camera(__index) |
30 |
__res = camera_get_view_border_x(__cam) |
31 |
break |
32 |
case (6 << 0): |
33 |
__cam = view_get_camera(__index) |
34 |
__res = camera_get_view_border_y(__cam) |
35 |
break |
36 |
case (7 << 0): |
37 |
__cam = view_get_camera(__index) |
38 |
__res = camera_get_view_speed_x(__cam) |
39 |
break |
40 |
case (8 << 0): |
41 |
__cam = view_get_camera(__index) |
42 |
__res = camera_get_view_speed_y(__cam) |
43 |
break |
44 |
case (9 << 0): |
45 |
__cam = view_get_camera(__index) |
46 |
__res = camera_get_view_target(__cam) |
47 |
break |
48 |
case (10 << 0): |
49 |
__res = view_get_visible(__index) |
50 |
break |
51 |
case (11 << 0): |
52 |
__res = view_get_xport(__index) |
53 |
break |
54 |
case (12 << 0): |
55 |
__res = view_get_yport(__index) |
56 |
break |
57 |
case (13 << 0): |
58 |
__res = view_get_wport(__index) |
59 |
break |
60 |
case (14 << 0): |
61 |
__res = view_get_hport(__index) |
62 |
break |
63 |
case (15 << 0): |
64 |
__res = view_get_camera(__index) |
65 |
break |
66 |
case (16 << 0): |
67 |
__res = view_get_surface_id(__index) |
68 |
break |
69 |
default: |
70 |
break |
71 |
} |
72 |
|
73 |
return __res; |
74 |
} |