|
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 (menuno == 0)
|
|
9
|
{
|
|
10
|
if (d == 1)
|
|
11
|
{
|
|
12
|
draw_set_color(c_white);
|
|
13
|
draw_rectangle(50 + xx, 49 + yy, 269 + xx, 135 + yy, false);
|
|
14
|
draw_set_color(c_black);
|
|
15
|
draw_rectangle((53 * d) + xx, (52 * d) + yy, (266 * d) + xx, (132 * 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) - 16, (49 * d) + yy, (265 * d) + xx + 16, (135 * d) + yy + (type * 45));
|
|
20
|
draw_set_color(c_black);
|
|
21
|
draw_rectangle(((64 * d) + xx) - 16, (59 * d) + yy, (255 * d) + xx + 16, (125 * d) + yy + (type * 45), false);
|
|
22
|
}
|
|
23
|
draw_set_color(c_white);
|
|
24
|
if (xcoord == 2)
|
|
25
|
draw_set_color(c_yellow);
|
|
26
|
draw_set_halign(fa_left);
|
|
27
|
if (!scr_kana_checkscr_kana_check
function scr_kana_check(arg0)
{
var kanafound = 0;
var ___stringlength = string_length(arg0);
for (var ___i = 1; ___i <= ___stringlength; ___i++)
{
if (ord(string_char_at(arg0, ___i)) >= 12352)
{
kanafound = 1;
break;
}
}
return kanafound;
} (name_current))
|
|
28
|
{
|
|
29
|
draw_text((60 * d) + xx, (60 * d) + yy, string_hash_to_newline(name_current));
|
|
30
|
}
|
|
31
|
else
|
|
32
|
{
|
|
33
|
draw_set_font(fnt_ja_mainbig);
|
|
34
|
draw_text((60 * d) + xx, (60 * d) + yy, string_hash_to_newline(name_current));
|
|
35
|
if (global.lang != "ja")
|
|
36
|
draw_set_font(fnt_mainbig);
|
|
37
|
}
|
|
38
|
draw_set_halign(fa_right);
|
|
39
|
draw_text((200 * d) + xx, (60 * d) + yy, string_hash_to_newline(stringsetsubloc("LV ~1", global.chapter, "obj_savemenu_slash_Draw_0_gml_34_0")));
|
|
40
|
draw_text((261 * 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));
|
|
41
|
draw_set_halign(fa_center);
|
|
42
|
draw_text_width((160 * d) + xx, (85 * d) + yy, string_hash_to_newline(scr_roomnamescr_roomname
function scr_roomname(arg0)
{
roomname = stringsetloc(Dark World?"Dark World?", "scr_roomname_slash_scr_roomname_gml_1_0" );
if (arg0 == 0)
roomname = stringsetloc(---"---", "scr_roomname_slash_scr_roomname_gml_2_0" );
if (arg0 == 98)
roomname = stringsetloc(Dark World"Dark World", "scr_roomname_slash_scr_roomname_gml_4_0" );
if (arg0 == 135)
roomname = stringsetloc(Green Room"Green Room", "scr_roomname_slash_scr_roomname_gml_6_0_b" );
if (arg0 == 194)
roomname = stringsetloc(TV World - Before the Show"TV World - Before the Show", "scr_roomname_slash_scr_roomname_gml_7_0" );
if (arg0 == 109)
roomname = stringsetloc(Cold Place"Cold Place", "scr_roomname_slash_scr_roomname_gml_8_0" );
if (arg0 == 195)
roomname = stringsetloc(TV World - Entrance"TV World - Entrance", "scr_roomname_slash_scr_roomname_gml_8_0_b" );
if (arg0 == 177)
roomname = stringsetloc(TV World - Goulden Sam"TV World - Goulden Sam", "scr_roomname_slash_scr_roomname_gml_9_0_b" );
if (arg0 == 208)
roomname = stringsetloc(TV World - Concert"TV World - Concert", "scr_roomname_slash_scr_roomname_gml_9_0" );
if (arg0 == 213)
roomname = stringsetloc(TV World - Cooking Show"TV World - Cooking Show", "scr_roomname_slash_scr_roomname_gml_11_0" );
return roomname;
} (room)), 360);
|
|
43
|
draw_set_halign(fa_left);
|
|
44
|
if (xcoord < 2)
|
|
45
|
draw_sprite(heartsprite, 0, xx + (71 * d) + (xcoord * 90 * d), yy + (114 * d) + (ycoord * 42));
|
|
46
|
if (xcoord < 2)
|
|
47
|
{
|
|
48
|
draw_text(xx + (85 * d), yy + (110 * d), string_hash_to_newline(stringsetloc(Save"Save", "obj_savemenu_slash_Draw_0_gml_47_0" )));
|
|
49
|
draw_text(xx + (175 * d), yy + (110 * d), string_hash_to_newline(stringsetloc(Return"Return", "obj_savemenu_slash_Draw_0_gml_48_0" )));
|
|
50
|
if (type == 1)
|
|
51
|
{
|
|
52
|
draw_text(xx + (85 * d), yy + (130 * d), stringsetloc(Storage"Storage", "obj_savemenu_slash_Draw_0_gml_52_0_b" ));
|
|
53
|
if (!haverecruited)
|
|
54
|
draw_set_color(c_gray);
|
|
55
|
draw_text(xx + (175 * d), yy + (130 * d), stringsetloc(Recruits"Recruits", "obj_savemenu_slash_Draw_0_gml_54_0" ));
|
|
56
|
}
|
|
57
|
}
|
|
58
|
else
|
|
59
|
{
|
|
60
|
draw_text(xx + (85 * d), yy + (110 * d), string_hash_to_newline(stringsetloc(File saved."File saved.", "obj_savemenu_slash_Draw_0_gml_52_0" )));
|
|
61
|
}
|
|
62
|
}
|
|
63
|
else if (menuno == 1)
|
|
64
|
{
|
|
65
|
if (overwrite == 0)
|
|
66
|
{
|
|
67
|
draw_set_color(c_black);
|
|
68
|
draw_set_alpha(0.8);
|
|
69
|
draw_rectangle(xx - 10, yy - 10, xx + 640 + 10, yy + 480 + 10, 0);
|
|
70
|
draw_set_alpha(1);
|
|
71
|
}
|
|
72
|
var yoff = 0;
|
|
73
|
var wmod = 28;
|
|
74
|
var mwidth = 520;
|
|
75
|
var mheight = 105;
|
|
76
|
var mx = 60;
|
|
77
|
var my = 12 + yoff;
|
|
78
|
scr_darkbox_blackscr_darkbox_black
function scr_darkbox_black(arg0, arg1, arg2, arg3)
{
draw_set_color(c_black);
draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
} (camerax() + mx, cameray() + my, camerax() + mx + mwidth, cameray() + my + mheight);
|
|
79
|
mwidth = 520;
|
|
80
|
mheight = 321;
|
|
81
|
mx = 60;
|
|
82
|
my = 124 + yoff;
|
|
83
|
scr_darkbox_blackscr_darkbox_black
function scr_darkbox_black(arg0, arg1, arg2, arg3)
{
draw_set_color(c_black);
draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
} (camerax() + mx, cameray() + my, camerax() + mx + mwidth, cameray() + my + mheight);
|
|
84
|
for (var i = 0; i < 3; i++)
|
|
85
|
draw_sprite_ext(spr_textbox_top, 0, camerax() + mx + 14, cameray() + 208 + (84 * i) + yoff, mwidth * 0.948, 2, 0, c_white, 1);
|
|
86
|
draw_set_color(c_white);
|
|
87
|
draw_set_halign(fa_center);
|
|
88
|
draw_text(camerax() + 320, cameray() + 32 + yoff, global.truename);
|
|
89
|
draw_set_halign(fa_left);
|
|
90
|
draw_text(camerax() + mx + 40, cameray() + 32 + yoff, string_hash_to_newline(stringsetsubloc("LV ~1", global.chapter, "obj_savemenu_slash_Draw_0_gml_34_0")));
|
|
91
|
draw_set_halign(fa_right);
|
|
92
|
draw_text(camerax() + mx + 483, cameray() + 32 + yoff, 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));
|
|
93
|
draw_set_halign(fa_center);
|
|
94
|
draw_text(camerax() + 320, cameray() + 64 + yoff, room_current);
|
|
95
|
draw_set_halign(fa_left);
|
|
96
|
newfile = stringsetloc(New File"New File", "obj_savemenu_slash_Draw_0_gml_115_0" );
|
|
97
|
var mspace = 84;
|
|
98
|
for (var i = 0; i < 3; i++)
|
|
99
|
{
|
|
100
|
draw_set_color(c_white);
|
|
101
|
if (mpos == i)
|
|
102
|
draw_set_color(c_yellow);
|
|
103
|
if (level_file[i] != 0)
|
|
104
|
{
|
|
105
|
draw_set_halign(fa_left);
|
|
106
|
draw_text(camerax() + mx + 40 + 24, cameray() + my + 20 + (i * mspace), string_hash_to_newline(stringsetsubloc("LV ~1", global.chapter, "obj_savemenu_slash_Draw_0_gml_34_0")));
|
|
107
|
draw_set_halign(fa_right);
|
|
108
|
draw_text(camerax() + mx + 483, cameray() + my + 20 + (i * mspace), 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_file[i]));
|
|
109
|
draw_set_halign(fa_center);
|
|
110
|
draw_text(camerax() + 320, cameray() + my + 52 + (i * mspace), scr_roomnamescr_roomname
function scr_roomname(arg0)
{
roomname = stringsetloc(Dark World?"Dark World?", "scr_roomname_slash_scr_roomname_gml_1_0" );
if (arg0 == 0)
roomname = stringsetloc(---"---", "scr_roomname_slash_scr_roomname_gml_2_0" );
if (arg0 == 98)
roomname = stringsetloc(Dark World"Dark World", "scr_roomname_slash_scr_roomname_gml_4_0" );
if (arg0 == 135)
roomname = stringsetloc(Green Room"Green Room", "scr_roomname_slash_scr_roomname_gml_6_0_b" );
if (arg0 == 194)
roomname = stringsetloc(TV World - Before the Show"TV World - Before the Show", "scr_roomname_slash_scr_roomname_gml_7_0" );
if (arg0 == 109)
roomname = stringsetloc(Cold Place"Cold Place", "scr_roomname_slash_scr_roomname_gml_8_0" );
if (arg0 == 195)
roomname = stringsetloc(TV World - Entrance"TV World - Entrance", "scr_roomname_slash_scr_roomname_gml_8_0_b" );
if (arg0 == 177)
roomname = stringsetloc(TV World - Goulden Sam"TV World - Goulden Sam", "scr_roomname_slash_scr_roomname_gml_9_0_b" );
if (arg0 == 208)
roomname = stringsetloc(TV World - Concert"TV World - Concert", "scr_roomname_slash_scr_roomname_gml_9_0" );
if (arg0 == 213)
roomname = stringsetloc(TV World - Cooking Show"TV World - Cooking Show", "scr_roomname_slash_scr_roomname_gml_11_0" );
return roomname;
} (roome_file[i]));
|
|
111
|
if (!scr_kana_checkscr_kana_check
function scr_kana_check(arg0)
{
var kanafound = 0;
var ___stringlength = string_length(arg0);
for (var ___i = 1; ___i <= ___stringlength; ___i++)
{
if (ord(string_char_at(arg0, ___i)) >= 12352)
{
kanafound = 1;
break;
}
}
return kanafound;
} (name_file[i]))
|
|
112
|
{
|
|
113
|
draw_text(camerax() + 320, cameray() + my + 20 + (i * mspace), name_file[i]);
|
|
114
|
}
|
|
115
|
else
|
|
116
|
{
|
|
117
|
draw_set_font(fnt_ja_mainbig);
|
|
118
|
draw_text(camerax() + 320, cameray() + my + 20 + (i * mspace), name_file[i]);
|
|
119
|
if (global.lang != "ja")
|
|
120
|
draw_set_font(fnt_mainbig);
|
|
121
|
}
|
|
122
|
draw_set_halign(fa_left);
|
|
123
|
draw_set_color(c_white);
|
|
124
|
}
|
|
125
|
else
|
|
126
|
{
|
|
127
|
draw_set_halign(fa_center);
|
|
128
|
draw_text(camerax() + 320, cameray() + my + 36 + (i * mspace), newfile);
|
|
129
|
draw_set_halign(fa_left);
|
|
130
|
draw_set_color(c_white);
|
|
131
|
}
|
|
132
|
}
|
|
133
|
draw_set_halign(fa_center);
|
|
134
|
if (mpos == 3)
|
|
135
|
draw_set_color(c_yellow);
|
|
136
|
returntxt = stringsetloc(Return"Return", "obj_savemenu_slash_Draw_0_gml_48_0" );
|
|
137
|
draw_text(camerax() + 320, cameray() + my + 270, string_hash_to_newline(returntxt));
|
|
138
|
draw_set_halign(fa_left);
|
|
139
|
draw_set_color(c_white);
|
|
140
|
if (overwrite == 0)
|
|
141
|
{
|
|
142
|
if (mpos < 3)
|
|
143
|
{
|
|
144
|
if (level_file[mpos] != 0)
|
|
145
|
draw_sprite(heartsprite, 0, camerax() + mx + 32, (cameray() + my + (mspace * mpos) + 62) - 34);
|
|
146
|
else
|
|
147
|
draw_sprite(heartsprite, 0, (camerax() + 320) - (string_width(newfile) / 2) - 32, cameray() + my + 36 + (mpos * mspace) + (string_height(newfile) / 4));
|
|
148
|
}
|
|
149
|
else
|
|
150
|
{
|
|
151
|
draw_sprite(heartsprite, 0, (camerax() + 320) - string_width(returntxt), cameray() + my + 270 + (string_height(returntxt) / 4));
|
|
152
|
}
|
|
153
|
}
|
|
154
|
if (overwrite == 0)
|
|
155
|
{
|
|
156
|
if (down_p())
|
|
157
|
mpos++;
|
|
158
|
if (up_p())
|
|
159
|
mpos--;
|
|
160
|
mpos = clamp(mpos, 0, 3);
|
|
161
|
if (button1_p() && buffer < 0)
|
|
162
|
{
|
|
163
|
if (mpos == 3)
|
|
164
|
{
|
|
165
|
menuno = 0;
|
|
166
|
buffer = 3;
|
|
167
|
mpos = global.filechoice;
|
|
168
|
snd_play(snd_select);
|
|
169
|
}
|
|
170
|
else if (level_file[mpos] != 0 && mpos != global.filechoice)
|
|
171
|
{
|
|
172
|
overwrite = 0.5;
|
|
173
|
buffer = 3;
|
|
174
|
overcoord = 0;
|
|
175
|
}
|
|
176
|
else
|
|
177
|
{
|
|
178
|
menuno = 2;
|
|
179
|
global.filechoice = mpos;
|
|
180
|
snd_play(snd_save);
|
|
181
|
scr_savescr_save
function scr_save()
{
scr_saveprocess(global.filechoice);
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(9);
global.filechoice = filechoicebk2;
iniwrite = ossafe_ini_open("dr.ini");
ini_write_string(scr_ini_chapter(global.chapter, global.filechoice), "Name", global.truename);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Level", global.lv);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Love", global.llv);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Time", global.time);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Date", date_current_datetime());
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Room", scr_get_id_by_room_index(room));
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "InitLang", global.flag[912 language]);
var uraboss = 0;
if (global.chapter == 1)
{
if (global.flag[241 JEVIL_plot] == 6)
uraboss = 1;
else if (global.flag[241 JEVIL_plot] == 7)
uraboss = 2;
}
else
{
uraboss = scr_get_secret_boss_result(global.chapter);
}
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "UraBoss", uraboss);
ini_write_string(scr_ini_chapter(global.chapter, global.filechoice), "Version", string(global.versionno));
ossafe_ini_close();
scr_store_ura_result(global.chapter, global.filechoice, uraboss);
ossafe_ini_open("keyconfig_" + string(global.filechoice) + ".ini");
for (i = 0; i < 10; i += 1)
ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]);
for (i = 0; i < 10; i += 1)
ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]);
ini_write_real("SHOULDERLB_REASSIGN", "SHOULDERLB_REASSIGN", obj_gamecontroller.gamepad_shoulderlb_reassign);
ossafe_ini_close();
ossafe_savedata_save();
} ();
|
|
182
|
saved = 1;
|
|
183
|
xcoord = 2;
|
|
184
|
buffer = 3;
|
|
185
|
if (d == 2)
|
|
186
|
{
|
|
187
|
name = global.truename;
|
|
188
|
love = global.llv;
|
|
189
|
}
|
|
190
|
scr_roomnamescr_roomname
function scr_roomname(arg0)
{
roomname = stringsetloc(Dark World?"Dark World?", "scr_roomname_slash_scr_roomname_gml_1_0" );
if (arg0 == 0)
roomname = stringsetloc(---"---", "scr_roomname_slash_scr_roomname_gml_2_0" );
if (arg0 == 98)
roomname = stringsetloc(Dark World"Dark World", "scr_roomname_slash_scr_roomname_gml_4_0" );
if (arg0 == 135)
roomname = stringsetloc(Green Room"Green Room", "scr_roomname_slash_scr_roomname_gml_6_0_b" );
if (arg0 == 194)
roomname = stringsetloc(TV World - Before the Show"TV World - Before the Show", "scr_roomname_slash_scr_roomname_gml_7_0" );
if (arg0 == 109)
roomname = stringsetloc(Cold Place"Cold Place", "scr_roomname_slash_scr_roomname_gml_8_0" );
if (arg0 == 195)
roomname = stringsetloc(TV World - Entrance"TV World - Entrance", "scr_roomname_slash_scr_roomname_gml_8_0_b" );
if (arg0 == 177)
roomname = stringsetloc(TV World - Goulden Sam"TV World - Goulden Sam", "scr_roomname_slash_scr_roomname_gml_9_0_b" );
if (arg0 == 208)
roomname = stringsetloc(TV World - Concert"TV World - Concert", "scr_roomname_slash_scr_roomname_gml_9_0" );
if (arg0 == 213)
roomname = stringsetloc(TV World - Cooking Show"TV World - Cooking Show", "scr_roomname_slash_scr_roomname_gml_11_0" );
return roomname;
} (room);
|
|
191
|
level = global.lv;
|
|
192
|
time = global.time;
|
|
193
|
minutes = floor(time / 1800);
|
|
194
|
seconds = round(((time / 1800) - minutes) * 60);
|
|
195
|
if (seconds == 60)
|
|
196
|
seconds = 59;
|
|
197
|
if (seconds < 10)
|
|
198
|
seconds = "0" + string(seconds);
|
|
199
|
}
|
|
200
|
}
|
|
201
|
if (button2_p() && buffer < 0)
|
|
202
|
{
|
|
203
|
menuno = 0;
|
|
204
|
buffer = 3;
|
|
205
|
mpos = global.filechoice;
|
|
206
|
snd_play(snd_select);
|
|
207
|
}
|
|
208
|
}
|
|
209
|
if (overwrite == 1)
|
|
210
|
{
|
|
211
|
draw_set_color(c_black);
|
|
212
|
draw_set_alpha(0.8);
|
|
213
|
draw_rectangle(xx - 10, yy - 10, xx + 640 + 10, yy + 480 + 10, 0);
|
|
214
|
draw_set_alpha(1);
|
|
215
|
saved = 2;
|
|
216
|
scr_darkbox_blackscr_darkbox_black
function scr_darkbox_black(arg0, arg1, arg2, arg3)
{
draw_set_color(c_black);
draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
} (camerax() + 10, cameray() + 100, (camerax() + 640) - 10, (cameray() + 480) - 100);
|
|
217
|
overwritetext = stringsetsubloc("Overwrite Slot ~1?", mpos + 1, "obj_savemenu_slash_Draw_0_gml_215_0");
|
|
218
|
draw_set_color(c_white);
|
|
219
|
draw_set_halign(fa_center);
|
|
220
|
draw_text(camerax() + 320, (((cameray() + 120) - 4) + 19) - 12, string_hash_to_newline(overwritetext));
|
|
221
|
draw_set_color(c_yellow);
|
|
222
|
var currentSpace = 70;
|
|
223
|
var horzspace = 80;
|
|
224
|
draw_set_halign(fa_left);
|
|
225
|
draw_text(camerax() + horzspace, ((15 + cameray() + 180) - 30) + currentSpace, string_hash_to_newline(stringsetsubloc("LV ~1", global.chapter, "obj_savemenu_slash_Draw_0_gml_34_0")));
|
|
226
|
draw_set_halign(fa_right);
|
|
227
|
draw_text((camerax() + 640) - horzspace, ((15 + cameray() + 180) - 30) + currentSpace, 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));
|
|
228
|
draw_set_halign(fa_center);
|
|
229
|
draw_text(camerax() + 320, 15 + cameray() + 180 + currentSpace, room_current);
|
|
230
|
if (scr_kana_checkscr_kana_check
function scr_kana_check(arg0)
{
var kanafound = 0;
var ___stringlength = string_length(arg0);
for (var ___i = 1; ___i <= ___stringlength; ___i++)
{
if (ord(string_char_at(arg0, ___i)) >= 12352)
{
kanafound = 1;
break;
}
}
return kanafound;
} (name_current))
|
|
231
|
draw_set_font(fnt_ja_mainbig);
|
|
232
|
draw_text(camerax() + 320, ((15 + cameray() + 180) - 30) + currentSpace, name_current);
|
|
233
|
if (global.lang == "en")
|
|
234
|
draw_set_font(fnt_mainbig);
|
|
235
|
draw_set_halign(fa_left);
|
|
236
|
draw_set_color(c_white);
|
|
237
|
draw_set_color(c_white);
|
|
238
|
draw_set_halign(fa_left);
|
|
239
|
draw_text(camerax() + horzspace, (15 + cameray() + 180) - 30, string_hash_to_newline(stringsetsubloc("LV ~1", global.chapter, "obj_savemenu_slash_Draw_0_gml_34_0")));
|
|
240
|
draw_set_halign(fa_right);
|
|
241
|
draw_text((camerax() + 640) - horzspace, (15 + cameray() + 180) - 30, 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_file[mpos]));
|
|
242
|
draw_set_halign(fa_center);
|
|
243
|
draw_text(camerax() + 320, 15 + cameray() + 180, scr_roomnamescr_roomname
function scr_roomname(arg0)
{
roomname = stringsetloc(Dark World?"Dark World?", "scr_roomname_slash_scr_roomname_gml_1_0" );
if (arg0 == 0)
roomname = stringsetloc(---"---", "scr_roomname_slash_scr_roomname_gml_2_0" );
if (arg0 == 98)
roomname = stringsetloc(Dark World"Dark World", "scr_roomname_slash_scr_roomname_gml_4_0" );
if (arg0 == 135)
roomname = stringsetloc(Green Room"Green Room", "scr_roomname_slash_scr_roomname_gml_6_0_b" );
if (arg0 == 194)
roomname = stringsetloc(TV World - Before the Show"TV World - Before the Show", "scr_roomname_slash_scr_roomname_gml_7_0" );
if (arg0 == 109)
roomname = stringsetloc(Cold Place"Cold Place", "scr_roomname_slash_scr_roomname_gml_8_0" );
if (arg0 == 195)
roomname = stringsetloc(TV World - Entrance"TV World - Entrance", "scr_roomname_slash_scr_roomname_gml_8_0_b" );
if (arg0 == 177)
roomname = stringsetloc(TV World - Goulden Sam"TV World - Goulden Sam", "scr_roomname_slash_scr_roomname_gml_9_0_b" );
if (arg0 == 208)
roomname = stringsetloc(TV World - Concert"TV World - Concert", "scr_roomname_slash_scr_roomname_gml_9_0" );
if (arg0 == 213)
roomname = stringsetloc(TV World - Cooking Show"TV World - Cooking Show", "scr_roomname_slash_scr_roomname_gml_11_0" );
return roomname;
} (roome_file[mpos]));
|
|
244
|
if (scr_kana_checkscr_kana_check
function scr_kana_check(arg0)
{
var kanafound = 0;
var ___stringlength = string_length(arg0);
for (var ___i = 1; ___i <= ___stringlength; ___i++)
{
if (ord(string_char_at(arg0, ___i)) >= 12352)
{
kanafound = 1;
break;
}
}
return kanafound;
} (name_file[mpos]))
|
|
245
|
draw_set_font(fnt_ja_mainbig);
|
|
246
|
draw_text(camerax() + 320, (15 + cameray() + 180) - 30, name_file[mpos]);
|
|
247
|
if (global.lang == "en")
|
|
248
|
draw_set_font(fnt_mainbig);
|
|
249
|
draw_set_halign(fa_left);
|
|
250
|
draw_set_color(c_white);
|
|
251
|
savetxt = stringsetloc(Save"Save", "obj_savemenu_slash_Draw_0_gml_47_0" );
|
|
252
|
returntxt = stringsetloc(Return"Return", "obj_savemenu_slash_Draw_0_gml_48_0" );
|
|
253
|
if (left_p() || right_p())
|
|
254
|
overcoord = 1 - overcoord;
|
|
255
|
if (overcoord == 0)
|
|
256
|
draw_set_color(c_yellow);
|
|
257
|
else
|
|
258
|
draw_set_color(c_white);
|
|
259
|
draw_text(xx + 170, yy + 300 + 12 + 12, string_hash_to_newline(savetxt));
|
|
260
|
if (overcoord == 1)
|
|
261
|
draw_set_color(c_yellow);
|
|
262
|
else
|
|
263
|
draw_set_color(c_white);
|
|
264
|
draw_text(xx + 350, yy + 300 + 12 + 12, string_hash_to_newline(returntxt));
|
|
265
|
if (overcoord == 0)
|
|
266
|
draw_sprite(heartsprite, 0, ((xx + 170) - 32) + 4, yy + 300 + 24 + (string_height(savetxt) / 4));
|
|
267
|
else
|
|
268
|
draw_sprite(heartsprite, 0, ((xx + 350) - 32) + 4, yy + 300 + 24 + (string_height(returntxt) / 4));
|
|
269
|
if (button1_p() && buffer < 0)
|
|
270
|
{
|
|
271
|
if (overcoord == 0)
|
|
272
|
{
|
|
273
|
menuno = 2;
|
|
274
|
global.filechoice = mpos;
|
|
275
|
snd_play(snd_save);
|
|
276
|
script_execute(scr_save);
|
|
277
|
saved = 1;
|
|
278
|
xcoord = 2;
|
|
279
|
buffer = 3;
|
|
280
|
if (d == 2)
|
|
281
|
{
|
|
282
|
name = global.truename;
|
|
283
|
love = global.llv;
|
|
284
|
}
|
|
285
|
scr_roomnamescr_roomname
function scr_roomname(arg0)
{
roomname = stringsetloc(Dark World?"Dark World?", "scr_roomname_slash_scr_roomname_gml_1_0" );
if (arg0 == 0)
roomname = stringsetloc(---"---", "scr_roomname_slash_scr_roomname_gml_2_0" );
if (arg0 == 98)
roomname = stringsetloc(Dark World"Dark World", "scr_roomname_slash_scr_roomname_gml_4_0" );
if (arg0 == 135)
roomname = stringsetloc(Green Room"Green Room", "scr_roomname_slash_scr_roomname_gml_6_0_b" );
if (arg0 == 194)
roomname = stringsetloc(TV World - Before the Show"TV World - Before the Show", "scr_roomname_slash_scr_roomname_gml_7_0" );
if (arg0 == 109)
roomname = stringsetloc(Cold Place"Cold Place", "scr_roomname_slash_scr_roomname_gml_8_0" );
if (arg0 == 195)
roomname = stringsetloc(TV World - Entrance"TV World - Entrance", "scr_roomname_slash_scr_roomname_gml_8_0_b" );
if (arg0 == 177)
roomname = stringsetloc(TV World - Goulden Sam"TV World - Goulden Sam", "scr_roomname_slash_scr_roomname_gml_9_0_b" );
if (arg0 == 208)
roomname = stringsetloc(TV World - Concert"TV World - Concert", "scr_roomname_slash_scr_roomname_gml_9_0" );
if (arg0 == 213)
roomname = stringsetloc(TV World - Cooking Show"TV World - Cooking Show", "scr_roomname_slash_scr_roomname_gml_11_0" );
return roomname;
} (room);
|
|
286
|
level = global.lv;
|
|
287
|
time = global.time;
|
|
288
|
minutes = floor(time / 1800);
|
|
289
|
seconds = round(((time / 1800) - minutes) * 60);
|
|
290
|
if (seconds == 60)
|
|
291
|
seconds = 59;
|
|
292
|
if (seconds < 10)
|
|
293
|
seconds = "0" + string(seconds);
|
|
294
|
}
|
|
295
|
else
|
|
296
|
{
|
|
297
|
overwrite = 0;
|
|
298
|
buffer = 3;
|
|
299
|
saved = 0;
|
|
300
|
}
|
|
301
|
}
|
|
302
|
if (button2_p() && buffer < 0)
|
|
303
|
{
|
|
304
|
overwrite = 0;
|
|
305
|
buffer = 3;
|
|
306
|
saved = 0;
|
|
307
|
}
|
|
308
|
}
|
|
309
|
if (overwrite == 0.5)
|
|
310
|
overwrite = 1;
|
|
311
|
}
|
|
312
|
else if (menuno == 2)
|
|
313
|
{
|
|
314
|
draw_set_color(c_black);
|
|
315
|
draw_set_alpha(0.8);
|
|
316
|
draw_rectangle(xx - 10, yy - 10, xx + 640 + 10, yy + 480 + 10, 0);
|
|
317
|
draw_set_alpha(1);
|
|
318
|
var yoff = 0;
|
|
319
|
var wmod = 28;
|
|
320
|
var mwidth = 520;
|
|
321
|
var mheight = 105;
|
|
322
|
var mx = 60;
|
|
323
|
var my = 12 + yoff;
|
|
324
|
scr_darkbox_blackscr_darkbox_black
function scr_darkbox_black(arg0, arg1, arg2, arg3)
{
draw_set_color(c_black);
draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
} (camerax() + mx, cameray() + my, camerax() + mx + mwidth, cameray() + my + mheight);
|
|
325
|
mwidth = 520;
|
|
326
|
mheight = 273;
|
|
327
|
mx = 60;
|
|
328
|
my = 124 + yoff;
|
|
329
|
scr_darkbox_blackscr_darkbox_black
function scr_darkbox_black(arg0, arg1, arg2, arg3)
{
draw_set_color(c_black);
draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
} (camerax() + mx, cameray() + my, camerax() + mx + mwidth, cameray() + my + mheight);
|
|
330
|
for (var i = 0; i < 2; i++)
|
|
331
|
draw_sprite_ext(spr_textbox_top, 0, camerax() + mx + 14, cameray() + 208 + (84 * i) + yoff, mwidth * 0.948, 2, 0, c_white, 1);
|
|
332
|
draw_set_color(c_yellow);
|
|
333
|
draw_set_halign(fa_center);
|
|
334
|
draw_text(camerax() + 320, cameray() + 32 + yoff, global.truename);
|
|
335
|
draw_set_halign(fa_left);
|
|
336
|
draw_text(camerax() + mx + 40, cameray() + 32 + yoff, string_hash_to_newline(stringsetsubloc("LV ~1", global.chapter, "obj_savemenu_slash_Draw_0_gml_34_0")));
|
|
337
|
draw_set_halign(fa_right);
|
|
338
|
draw_text(camerax() + mx + 483, cameray() + 32 + yoff, 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));
|
|
339
|
draw_set_halign(fa_center);
|
|
340
|
draw_text(camerax() + 320, cameray() + 64 + yoff, room_current);
|
|
341
|
draw_set_halign(fa_left);
|
|
342
|
draw_set_color(c_white);
|
|
343
|
newfile = stringsetloc(New File"New File", "obj_savemenu_slash_Draw_0_gml_115_0" );
|
|
344
|
var mspace = 84;
|
|
345
|
for (var i = 0; i < 3; i++)
|
|
346
|
{
|
|
347
|
draw_set_color(c_white);
|
|
348
|
if (mpos == i)
|
|
349
|
draw_set_color(c_yellow);
|
|
350
|
if (mpos != i)
|
|
351
|
{
|
|
352
|
draw_set_color(#444444);
|
|
353
|
if (level_file[i] != 0)
|
|
354
|
{
|
|
355
|
draw_set_halign(fa_left);
|
|
356
|
draw_text(camerax() + mx + 40 + 24, cameray() + my + 20 + (i * mspace), string_hash_to_newline(stringsetsubloc("LV ~1", global.chapter, "obj_savemenu_slash_Draw_0_gml_34_0")));
|
|
357
|
draw_set_halign(fa_right);
|
|
358
|
draw_text(camerax() + mx + 483, cameray() + my + 20 + (i * mspace), 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_file[i]));
|
|
359
|
draw_set_halign(fa_center);
|
|
360
|
draw_text(camerax() + 320, cameray() + my + 52 + (i * mspace), scr_roomnamescr_roomname
function scr_roomname(arg0)
{
roomname = stringsetloc(Dark World?"Dark World?", "scr_roomname_slash_scr_roomname_gml_1_0" );
if (arg0 == 0)
roomname = stringsetloc(---"---", "scr_roomname_slash_scr_roomname_gml_2_0" );
if (arg0 == 98)
roomname = stringsetloc(Dark World"Dark World", "scr_roomname_slash_scr_roomname_gml_4_0" );
if (arg0 == 135)
roomname = stringsetloc(Green Room"Green Room", "scr_roomname_slash_scr_roomname_gml_6_0_b" );
if (arg0 == 194)
roomname = stringsetloc(TV World - Before the Show"TV World - Before the Show", "scr_roomname_slash_scr_roomname_gml_7_0" );
if (arg0 == 109)
roomname = stringsetloc(Cold Place"Cold Place", "scr_roomname_slash_scr_roomname_gml_8_0" );
if (arg0 == 195)
roomname = stringsetloc(TV World - Entrance"TV World - Entrance", "scr_roomname_slash_scr_roomname_gml_8_0_b" );
if (arg0 == 177)
roomname = stringsetloc(TV World - Goulden Sam"TV World - Goulden Sam", "scr_roomname_slash_scr_roomname_gml_9_0_b" );
if (arg0 == 208)
roomname = stringsetloc(TV World - Concert"TV World - Concert", "scr_roomname_slash_scr_roomname_gml_9_0" );
if (arg0 == 213)
roomname = stringsetloc(TV World - Cooking Show"TV World - Cooking Show", "scr_roomname_slash_scr_roomname_gml_11_0" );
return roomname;
} (roome_file[i]));
|
|
361
|
if (scr_kana_checkscr_kana_check
function scr_kana_check(arg0)
{
var kanafound = 0;
var ___stringlength = string_length(arg0);
for (var ___i = 1; ___i <= ___stringlength; ___i++)
{
if (ord(string_char_at(arg0, ___i)) >= 12352)
{
kanafound = 1;
break;
}
}
return kanafound;
} (name_file[i]))
|
|
362
|
draw_set_font(fnt_ja_mainbig);
|
|
363
|
draw_text(camerax() + 320, cameray() + my + 20 + (i * mspace), name_file[i]);
|
|
364
|
if (global.lang == "en")
|
|
365
|
draw_set_font(fnt_mainbig);
|
|
366
|
draw_set_halign(fa_left);
|
|
367
|
draw_set_color(c_white);
|
|
368
|
}
|
|
369
|
else
|
|
370
|
{
|
|
371
|
draw_set_halign(fa_center);
|
|
372
|
draw_text(camerax() + 320, cameray() + my + 36 + (i * mspace), newfile);
|
|
373
|
draw_set_halign(fa_left);
|
|
374
|
draw_set_color(c_white);
|
|
375
|
}
|
|
376
|
}
|
|
377
|
else
|
|
378
|
{
|
|
379
|
filesaved = stringsetloc(File Saved"File Saved", "obj_savemenu_slash_Draw_0_gml_371_0" );
|
|
380
|
draw_set_halign(fa_center);
|
|
381
|
draw_text(camerax() + 320, cameray() + my + 36 + (i * mspace), filesaved);
|
|
382
|
draw_set_halign(fa_left);
|
|
383
|
draw_set_color(c_white);
|
|
384
|
}
|
|
385
|
}
|
|
386
|
draw_set_halign(fa_center);
|
|
387
|
draw_set_halign(fa_left);
|
|
388
|
draw_set_color(c_white);
|
|
389
|
if (button1_p() || button2_p())
|
|
390
|
{
|
|
391
|
if (buffer < 0)
|
|
392
|
{
|
|
393
|
global.interact = 0;
|
|
394
|
with (obj_mainchara)
|
|
395
|
onebuffer = 3;
|
|
396
|
instance_destroy();
|
|
397
|
}
|
|
398
|
}
|
|
399
|
}
|
|
400
|
|
|
401
|
enum e__VW
|
|
402
|
{
|
|
403
|
XView,
|
|
404
|
YView,
|
|
405
|
WView,
|
|
406
|
HView,
|
|
407
|
Angle,
|
|
408
|
HBorder,
|
|
409
|
VBorder,
|
|
410
|
HSpeed,
|
|
411
|
VSpeed,
|
|
412
|
Object,
|
|
413
|
Visible,
|
|
414
|
XPort,
|
|
415
|
YPort,
|
|
416
|
WPort,
|
|
417
|
HPort,
|
|
418
|
Camera,
|
|
419
|
SurfaceID
|
|
420
|
}
|