|
1
|
xx = __view_get(e__VW.XView, 0);
|
|
2
|
yy = __view_get(e__VW.YView, 0);
|
|
3
|
if (saved == 0)
|
|
4
|
time_current = global.time;
|
|
5
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("main");
|
|
6
|
if (d == 2)
|
|
7
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
8
|
if (global.lang == "ja")
|
|
9
|
{
|
|
10
|
if (d == 1)
|
|
11
|
{
|
|
12
|
draw_set_color(c_white);
|
|
13
|
draw_rectangle(54 + xx, 49 + yy, 265 + xx, 157 + yy, false);
|
|
14
|
draw_set_color(c_black);
|
|
15
|
draw_rectangle((57 * d) + xx, (52 * d) + yy, (262 * d) + xx, (154 * d) + yy, false);
|
|
16
|
}
|
|
17
|
else
|
|
18
|
{
|
|
19
|
scr_darkboxscr_darkbox
function scr_darkbox(arg0, arg1, arg2, arg3)
{
cur_jewel += 1;
textbox_width = arg2 - arg0 - 63;
if (textbox_width < 0)
textbox_width = 0;
textbox_height = arg3 - arg1 - 63;
if (textbox_height < 0)
textbox_height = 0;
if (textbox_width > 0)
{
draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32);
draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1);
}
if (textbox_height > 0)
{
draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1);
draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1);
}
if (global.flag[8 simplify_vfx] == 0)
{
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1);
}
else
{
draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1);
}
} ((54 * d) + xx, (49 * d) + yy, (265 * d) + xx, (157 * d) + yy);
|
|
20
|
draw_set_color(c_black);
|
|
21
|
draw_rectangle((64 * d) + xx, (59 * d) + yy, (255 * d) + xx, (147 * d) + yy, false);
|
|
22
|
}
|
|
23
|
draw_set_color(c_white);
|
|
24
|
if (coord == 2)
|
|
25
|
draw_set_color(c_yellow);
|
|
26
|
draw_set_halign(fa_center);
|
|
27
|
draw_text((160 * d) + xx, (60 * d) + yy, string_hash_to_newline(name));
|
|
28
|
draw_set_halign(fa_left);
|
|
29
|
if (d == 1)
|
|
30
|
draw_text(76 + xx, 80 + yy, string_hash_to_newline( + string(love)));
|
|
31
|
if (d == 2)
|
|
32
|
draw_text((78 * d) + xx, (80 * d) + yy, string_hash_to_newline( + string(level)));
|
|
33
|
draw_text((196 * d) + xx, (80 * d) + yy, scr_timedispscr_timedisp
function scr_timedisp(arg0)
{
var minutes = floor(arg0 / 1800);
var remmins = minutes % 60;
var hours = (minutes - remmins) / 60;
var seconds = floor((arg0 / 30) - (minutes * 60));
var hourstring = string(hours) + ":";
var minstring = string(remmins) + ":";
if (remmins < 10)
minstring = "0" + minstring;
var secstring = string(floor(seconds));
if (seconds < 10)
secstring = "0" + secstring;
var timedisp = hourstring + minstring + secstring;
return timedisp;
} (time_current));
|
|
34
|
draw_set_halign(fa_center);
|
|
35
|
draw_text((160 * d) + xx, (100 * d) + yy, string_hash_to_newline(roomname));
|
|
36
|
draw_set_halign(fa_left);
|
|
37
|
if (coord == 0)
|
|
38
|
draw_sprite(heartsprite, 0, xx + (83 * d), yy + (135 * d));
|
|
39
|
if (coord == 1)
|
|
40
|
draw_sprite(heartsprite, 0, xx + (173 * d), yy + (135 * d));
|
|
41
|
if (coord < 2)
|
|
42
|
{
|
|
43
|
draw_text(xx + (95 * d), yy + (130 * d), string_hash_to_newline());
|
|
44
|
draw_text(xx + (185 * d), yy + (130 * d), string_hash_to_newline());
|
|
45
|
}
|
|
46
|
else
|
|
47
|
{
|
|
48
|
draw_set_halign(fa_center);
|
|
49
|
draw_text(xx + (160 * d), yy + (130 * d), string_hash_to_newline());
|
|
50
|
draw_set_halign(fa_left);
|
|
51
|
}
|
|
52
|
}
|
|
53
|
else
|
|
54
|
{
|
|
55
|
if (d == 1)
|
|
56
|
{
|
|
57
|
draw_set_color(c_white);
|
|
58
|
draw_rectangle(54 + xx, 49 + yy, 265 + xx, 135 + yy, false);
|
|
59
|
draw_set_color(c_black);
|
|
60
|
draw_rectangle((57 * d) + xx, (52 * d) + yy, (262 * d) + xx, (132 * d) + yy, false);
|
|
61
|
}
|
|
62
|
else
|
|
63
|
{
|
|
64
|
scr_darkboxscr_darkbox
function scr_darkbox(arg0, arg1, arg2, arg3)
{
cur_jewel += 1;
textbox_width = arg2 - arg0 - 63;
if (textbox_width < 0)
textbox_width = 0;
textbox_height = arg3 - arg1 - 63;
if (textbox_height < 0)
textbox_height = 0;
if (textbox_width > 0)
{
draw_sprite_stretched(spr_textbox_top, 0, arg0 + 32, arg1, textbox_width, 32);
draw_sprite_ext(spr_textbox_top, 0, arg0 + 32, arg3 + 1, textbox_width, -2, 0, c_white, 1);
}
if (textbox_height > 0)
{
draw_sprite_ext(spr_textbox_left, 0, arg2 + 1, arg1 + 32, -2, textbox_height, 0, c_white, 1);
draw_sprite_ext(spr_textbox_left, 0, arg0, arg1 + 32, 2, textbox_height, 0, c_white, 1);
}
if (global.flag[8 simplify_vfx] == 0)
{
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg1, 2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg1, -2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg0, arg3 + 1, 2, -2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, cur_jewel / 10, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1);
}
else
{
draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg1, 2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg1, -2, 2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, 0, arg0, arg3 + 1, 2, -2, 0, c_white, 1);
draw_sprite_ext(spr_textbox_topleft, 0, arg2 + 1, arg3 + 1, -2, -2, 0, c_white, 1);
}
} ((54 * d) + xx, (49 * d) + yy, (265 * d) + xx, (135 * d) + yy);
|
|
65
|
draw_set_color(c_black);
|
|
66
|
draw_rectangle((64 * d) + xx, (59 * d) + yy, (255 * d) + xx, (125 * d) + yy, false);
|
|
67
|
}
|
|
68
|
draw_set_color(c_white);
|
|
69
|
if (coord == 2)
|
|
70
|
draw_set_color(c_yellow);
|
|
71
|
if (global.flag[912 language] == 0)
|
|
72
|
{
|
|
73
|
draw_text((70 * d) + xx, (60 * d) + yy, string_hash_to_newline(name));
|
|
74
|
}
|
|
75
|
else
|
|
76
|
{
|
|
77
|
draw_set_font(fnt_ja_main);
|
|
78
|
if (d == 2)
|
|
79
|
draw_set_font(fnt_ja_mainbig);
|
|
80
|
draw_text((70 * d) + xx, (60 * d) + yy, string_hash_to_newline(name));
|
|
81
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("main");
|
|
82
|
if (d == 2)
|
|
83
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("mainbig");
|
|
84
|
}
|
|
85
|
if (d == 1)
|
|
86
|
draw_text(140 + xx, 60 + yy, string_hash_to_newline( + string(love)));
|
|
87
|
if (d == 2)
|
|
88
|
draw_text((175 * d) + xx, (60 * d) + yy, string_hash_to_newline( + string(level)));
|
|
89
|
draw_text((210 * d) + xx, (60 * d) + yy, scr_timedispscr_timedisp
function scr_timedisp(arg0)
{
var minutes = floor(arg0 / 1800);
var remmins = minutes % 60;
var hours = (minutes - remmins) / 60;
var seconds = floor((arg0 / 30) - (minutes * 60));
var hourstring = string(hours) + ":";
var minstring = string(remmins) + ":";
if (remmins < 10)
minstring = "0" + minstring;
var secstring = string(floor(seconds));
if (seconds < 10)
secstring = "0" + secstring;
var timedisp = hourstring + minstring + secstring;
return timedisp;
} (time_current));
|
|
90
|
draw_text((70 * d) + xx, (80 * d) + yy, string_hash_to_newline(roomname));
|
|
91
|
if (coord == 0)
|
|
92
|
draw_sprite(heartsprite, 0, xx + (71 * d), yy + (113 * d));
|
|
93
|
if (coord == 1)
|
|
94
|
draw_sprite(heartsprite, 0, xx + (161 * d), yy + (113 * d));
|
|
95
|
if (coord < 2)
|
|
96
|
{
|
|
97
|
draw_text(xx + (85 * d), yy + (110 * d), string_hash_to_newline());
|
|
98
|
draw_text(xx + (175 * d), yy + (110 * d), string_hash_to_newline());
|
|
99
|
}
|
|
100
|
else
|
|
101
|
{
|
|
102
|
draw_text(xx + (85 * d), yy + (110 * d), string_hash_to_newline());
|
|
103
|
}
|
|
104
|
}
|
|
105
|
|
|
106
|
enum e__VW
|
|
107
|
{
|
|
108
|
XView,
|
|
109
|
YView,
|
|
110
|
WView,
|
|
111
|
HView,
|
|
112
|
Angle,
|
|
113
|
HBorder,
|
|
114
|
VBorder,
|
|
115
|
HSpeed,
|
|
116
|
VSpeed,
|
|
117
|
Object,
|
|
118
|
Visible,
|
|
119
|
XPort,
|
|
120
|
YPort,
|
|
121
|
WPort,
|
|
122
|
HPort,
|
|
123
|
Camera,
|
|
124
|
SurfaceID
|
|
125
|
}
|