|
1
|
if (tough == 0)
|
|
2
|
{
|
|
3
|
draw_set_color(c_orange);
|
|
4
|
for (i = 0; i < 7; i += 1)
|
|
5
|
draw_line_width((x + (i * 10)) - off, y + point[i], (x + (i * 10) + 10) - off, y + point[i + 1], 2);
|
|
6
|
off += 1;
|
|
7
|
if (off > 9)
|
|
8
|
{
|
|
9
|
for (i = 0; i < 7; i += 1)
|
|
10
|
point[i] = point[i + 1];
|
|
11
|
point[7] = random(50);
|
|
12
|
off = 0;
|
|
13
|
}
|
|
14
|
draw_set_color(c_white);
|
|
15
|
draw_rectangle(x - 10, y - 20, x + 70, y + 60, true);
|
|
16
|
scr_setfontscr_setfont
var newfont = argument0;
if (global.language == "ja")
{
if (newfont == fnt_main)
newfont = fnt_ja_main;
if (newfont == fnt_maintext)
newfont = fnt_ja_maintext;
if (newfont == fnt_plain)
newfont = fnt_ja_plain;
}
draw_set_font(newfont); (fnt_main);
|
|
17
|
draw_text(x - 20, y - 54, POPULATIONscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_populationgraph_81") );
|
|
18
|
}
|
|
19
|
if (tough == 1)
|
|
20
|
{
|
|
21
|
draw_set_color(c_red);
|
|
22
|
for (i = 0; i < 7; i += 1)
|
|
23
|
draw_line_width((x + (i * 10)) - off, y + point[i], (x + (i * 10) + 10) - off, y + point[i + 1], 2);
|
|
24
|
off += 3;
|
|
25
|
if (off > 9)
|
|
26
|
{
|
|
27
|
for (i = 0; i < 7; i += 1)
|
|
28
|
point[i] = point[i + 1];
|
|
29
|
point[7] = random(80);
|
|
30
|
off = 0;
|
|
31
|
}
|
|
32
|
draw_set_color(c_white);
|
|
33
|
draw_rectangle(x - 10, y - 20, x + 70, y + 100, true);
|
|
34
|
var texty = y - 54;
|
|
35
|
if (global.language == "ja")
|
|
36
|
texty -= 36;
|
|
37
|
scr_setfontscr_setfont
var newfont = argument0;
if (global.language == "ja")
{
if (newfont == fnt_main)
newfont = fnt_ja_main;
if (newfont == fnt_maintext)
newfont = fnt_ja_maintext;
if (newfont == fnt_plain)
newfont = fnt_ja_plain;
}
draw_set_font(newfont); (fnt_main);
|
|
38
|
draw_text(x - 20, texty, TENSIONscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_populationgraph_106") );
|
|
39
|
}
|