|
1
|
buffer -= 1;
|
|
2
|
if (fun == 1 && harp == 0)
|
|
3
|
{
|
|
4
|
harp = caster_load("music/harpnoise.ogg");
|
|
5
|
if (weather == 1)
|
|
6
|
weathermusic = caster_load("music/options_winter.ogg");
|
|
7
|
if (weather == 2 || weather == 4)
|
|
8
|
weathermusic = caster_load("music/options_fall.ogg");
|
|
9
|
if (weather == 3)
|
|
10
|
weathermusic = caster_load("music/options_summer.ogg");
|
|
11
|
}
|
|
12
|
if (menu_engage == 0)
|
|
13
|
{
|
|
14
|
if (keyboard_check_pressed(vk_down))
|
|
15
|
menu += 1;
|
|
16
|
if (menu == 4)
|
|
17
|
menu = 5;
|
|
18
|
if (fun == 0)
|
|
19
|
{
|
|
20
|
if (menu == 6)
|
|
21
|
menu = 7;
|
|
22
|
}
|
|
23
|
if (keyboard_check_pressed(vk_up))
|
|
24
|
menu -= 1;
|
|
25
|
if (menu == 4)
|
|
26
|
menu = 3;
|
|
27
|
if (fun == 0)
|
|
28
|
{
|
|
29
|
if (menu == 6)
|
|
30
|
menu = 5;
|
|
31
|
}
|
|
32
|
if (menu <= 0)
|
|
33
|
menu = 0;
|
|
34
|
if (menu >= 9)
|
|
35
|
menu = 9;
|
|
36
|
if (buffer < 0)
|
|
37
|
{
|
|
38
|
if (control_check_pressed(0))
|
|
39
|
{
|
|
40
|
menu_engage = 1;
|
|
41
|
js_buffer = 1;
|
|
42
|
buffer = 4;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
}
|
|
46
|
if (menu == 0 && menu_engage == 1)
|
|
47
|
{
|
|
48
|
ossafe_ini_open("config.ini");
|
|
49
|
ini_write_real("joypad1", "b0", global.button0);
|
|
50
|
ini_write_real("joypad1", "b1", global.button1);
|
|
51
|
ini_write_real("joypad1", "b2", global.button2);
|
|
52
|
ini_write_real("joypad1", "as", global.analog_sense);
|
|
53
|
ini_write_real("joypad1", "jd", global.joy_dir);
|
|
54
|
ossafe_ini_close();
|
|
55
|
sm = instance_create(0, 0, obj_settingsmenu);
|
|
56
|
sm.menu_engage = 0;
|
|
57
|
sm.buffer = buffer;
|
|
58
|
sm.intro = intro;
|
|
59
|
sm.rectile = rectile;
|
|
60
|
sm.buffer = buffer;
|
|
61
|
sm.weather = weather;
|
|
62
|
sm.extreme = extreme;
|
|
63
|
sm.extreme2 = extreme2;
|
|
64
|
sm.harp = harp;
|
|
65
|
sm.weathermusic = weathermusic;
|
|
66
|
instance_destroy();
|
|
67
|
}
|
|
68
|
draw_set_color(c_white);
|
|
69
|
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_maintext);
|
|
70
|
if (weather != 3)
|
|
71
|
{
|
|
72
|
draw_set_halign(fa_right);
|
|
73
|
draw_text_transformed(300, 10, JOYSTICK CONFIGscr_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; ("joyconfig_title") , 2, 2, 0);
|
|
74
|
draw_set_halign(fa_left);
|
|
75
|
}
|
|
76
|
else
|
|
77
|
{
|
|
78
|
draw_text_transformed(10, 10, JOYSTICK CONFIGscr_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; ("joyconfig_title") , 2, 2, 0);
|
|
79
|
}
|
|
80
|
if (menu != 0)
|
|
81
|
draw_set_color(c_white);
|
|
82
|
else
|
|
83
|
draw_set_color(c_yellow);
|
|
84
|
draw_text(20, 40, EXITscr_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; ("joyconfig_exit") );
|
|
85
|
var vspacing = 15;
|
|
86
|
if (global.language == "ja")
|
|
87
|
vspacing = 16;
|
|
88
|
var button_x = 0;
|
|
89
|
for (i = 1; i < 4; i += 1)
|
|
90
|
{
|
|
91
|
if (menu != i)
|
|
92
|
draw_set_color(c_white);
|
|
93
|
else
|
|
94
|
draw_set_color(c_yellow);
|
|
95
|
if (i == 1)
|
|
96
|
itext = CONFIRMscr_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; ("joyconfig_button_confirm") ;
|
|
97
|
if (i == 2)
|
|
98
|
itext = CANCELscr_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; ("joyconfig_button_cancel") ;
|
|
99
|
if (i == 3)
|
|
100
|
itext = MENUscr_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; ("joyconfig_button_menu") ;
|
|
101
|
draw_text(20, 75 + ((i - 1) * vspacing), itext);
|
|
102
|
var xx = 20 + string_width(itext) + 10;
|
|
103
|
if (xx > button_x)
|
|
104
|
button_x = xx;
|
|
105
|
draw_set_color(c_white);
|
|
106
|
}
|
|
107
|
var stext = :: scr_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; ("settings_button_separator") ;
|
|
108
|
for (i = 1; i < 4; i += 1)
|
|
109
|
{
|
|
110
|
if (menu != i)
|
|
111
|
draw_set_color(c_white);
|
|
112
|
else
|
|
113
|
draw_set_color(c_yellow);
|
|
114
|
draw_text(button_x, 75 + ((i - 1) * vspacing), stext);
|
|
115
|
draw_set_color(c_white);
|
|
116
|
}
|
|
117
|
button_x += string_width(stext);
|
|
118
|
if (menu == 1 && menu_engage == 1)
|
|
119
|
{
|
|
120
|
draw_set_color(c_blue);
|
|
121
|
ossafe_fill_rectangle(button_x, 75, button_x + string_width((PUSH BUTTON)scr_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; ("joyconfig_prompt_button") ), 90);
|
|
122
|
draw_set_color(c_white);
|
|
123
|
o_o += 1;
|
|
124
|
if (o_o >= 16)
|
|
125
|
o_o = 0;
|
|
126
|
if (o_o <= 8)
|
|
127
|
draw_text(button_x, 75, (PUSH BUTTON)scr_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; ("joyconfig_prompt_button") );
|
|
128
|
if (obj_time.j_ch > 0 && js_buffer == 0)
|
|
129
|
{
|
|
130
|
for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1)
|
|
131
|
{
|
|
132
|
if (joystick_check_button(obj_time.j_ch, i))
|
|
133
|
{
|
|
134
|
global.button0 = i;
|
|
135
|
menu_engage = 0;
|
|
136
|
buffer = 4;
|
|
137
|
break;
|
|
138
|
}
|
|
139
|
}
|
|
140
|
}
|
|
141
|
if (js_buffer == 1)
|
|
142
|
{
|
|
143
|
bt = 0;
|
|
144
|
for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1)
|
|
145
|
{
|
|
146
|
if (!joystick_check_button(obj_time.j_ch, i))
|
|
147
|
bt += 1;
|
|
148
|
}
|
|
149
|
if (bt >= joystick_buttons(obj_time.j_ch))
|
|
150
|
js_buffer = 0;
|
|
151
|
}
|
|
152
|
if (buffer < 0)
|
|
153
|
{
|
|
154
|
if (control_check_pressed(0) || control_check_pressed(1))
|
|
155
|
menu_engage = 0;
|
|
156
|
}
|
|
157
|
}
|
|
158
|
else
|
|
159
|
{
|
|
160
|
draw_set_color(c_aqua);
|
|
161
|
draw_text(button_x + 10, 75, global.button0);
|
|
162
|
}
|
|
163
|
if (menu == 2 && menu_engage == 1)
|
|
164
|
{
|
|
165
|
draw_set_color(c_blue);
|
|
166
|
ossafe_fill_rectangle(button_x, 75 + (1 * vspacing), button_x + string_width((PUSH BUTTON)scr_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; ("joyconfig_prompt_button") ), 90 + (1 * vspacing));
|
|
167
|
draw_set_color(c_white);
|
|
168
|
o_o += 1;
|
|
169
|
if (o_o >= 16)
|
|
170
|
o_o = 0;
|
|
171
|
if (o_o <= 8)
|
|
172
|
draw_text(button_x, 75 + (1 * vspacing), (PUSH BUTTON)scr_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; ("joyconfig_prompt_button") );
|
|
173
|
if (js_buffer == 0)
|
|
174
|
{
|
|
175
|
if (obj_time.j_ch > 0)
|
|
176
|
{
|
|
177
|
for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1)
|
|
178
|
{
|
|
179
|
if (joystick_check_button(obj_time.j_ch, i))
|
|
180
|
{
|
|
181
|
global.button1 = i;
|
|
182
|
menu_engage = 0;
|
|
183
|
break;
|
|
184
|
}
|
|
185
|
}
|
|
186
|
}
|
|
187
|
}
|
|
188
|
if (js_buffer == 1)
|
|
189
|
{
|
|
190
|
bt = 0;
|
|
191
|
for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1)
|
|
192
|
{
|
|
193
|
if (!joystick_check_button(obj_time.j_ch, i))
|
|
194
|
bt += 1;
|
|
195
|
}
|
|
196
|
if (bt >= joystick_buttons(obj_time.j_ch))
|
|
197
|
js_buffer = 0;
|
|
198
|
}
|
|
199
|
if (buffer < 0)
|
|
200
|
{
|
|
201
|
if (control_check_pressed(0) || control_check_pressed(1))
|
|
202
|
menu_engage = 0;
|
|
203
|
}
|
|
204
|
}
|
|
205
|
else
|
|
206
|
{
|
|
207
|
draw_set_color(c_aqua);
|
|
208
|
draw_text(button_x + 10, 75 + (1 * vspacing), global.button1);
|
|
209
|
}
|
|
210
|
if (menu == 3 && menu_engage == 1)
|
|
211
|
{
|
|
212
|
draw_set_color(c_blue);
|
|
213
|
ossafe_fill_rectangle(button_x, 75 + (2 * vspacing), button_x + string_width((PUSH BUTTON)scr_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; ("joyconfig_prompt_button") ), 90 + (2 * vspacing));
|
|
214
|
draw_set_color(c_white);
|
|
215
|
o_o += 1;
|
|
216
|
if (o_o >= 16)
|
|
217
|
o_o = 0;
|
|
218
|
if (o_o <= 8)
|
|
219
|
draw_text(button_x, 75 + (2 * vspacing), (PUSH BUTTON)scr_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; ("joyconfig_prompt_button") );
|
|
220
|
if (obj_time.j_ch > 0 && js_buffer == 0)
|
|
221
|
{
|
|
222
|
for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1)
|
|
223
|
{
|
|
224
|
if (joystick_check_button(obj_time.j_ch, i))
|
|
225
|
{
|
|
226
|
global.button2 = i;
|
|
227
|
menu_engage = 0;
|
|
228
|
break;
|
|
229
|
}
|
|
230
|
}
|
|
231
|
}
|
|
232
|
if (js_buffer == 1)
|
|
233
|
{
|
|
234
|
bt = 0;
|
|
235
|
for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1)
|
|
236
|
{
|
|
237
|
if (!joystick_check_button(obj_time.j_ch, i))
|
|
238
|
bt += 1;
|
|
239
|
}
|
|
240
|
if (bt >= joystick_buttons(obj_time.j_ch))
|
|
241
|
js_buffer = 0;
|
|
242
|
}
|
|
243
|
if (buffer < 0)
|
|
244
|
{
|
|
245
|
if (control_check_pressed(0) || control_check_pressed(1))
|
|
246
|
menu_engage = 0;
|
|
247
|
}
|
|
248
|
}
|
|
249
|
else
|
|
250
|
{
|
|
251
|
draw_set_color(c_aqua);
|
|
252
|
draw_text(button_x + 10, 75 + (2 * vspacing), global.button2);
|
|
253
|
}
|
|
254
|
if (menu == 5)
|
|
255
|
draw_set_color(c_yellow);
|
|
256
|
else
|
|
257
|
draw_set_color(c_white);
|
|
258
|
draw_text(20, 135, ANALOG SENSITIVITY:scr_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; ("joyconfig_analog_sens") );
|
|
259
|
var analog_text_width = string_width(ANALOG SENSITIVITY:scr_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; ("joyconfig_analog_sens") );
|
|
260
|
var sensebar_x = 20 + analog_text_width + 10;
|
|
261
|
if (menu == 5 && menu_engage == 1)
|
|
262
|
{
|
|
263
|
draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1);
|
|
264
|
draw_sprite_ext(spr_sensebar, 0, (sensebar_x + 40) - (global.analog_sense * 100), 138, 1, 1, 0, c_yellow, 1);
|
|
265
|
if (buffer < 0)
|
|
266
|
{
|
|
267
|
if (obj_time.right)
|
|
268
|
global.analog_sense -= global.analog_sense_sense;
|
|
269
|
if (obj_time.left)
|
|
270
|
global.analog_sense += global.analog_sense_sense;
|
|
271
|
if (global.analog_sense >= 0.4)
|
|
272
|
global.analog_sense = 0.4;
|
|
273
|
if (global.analog_sense <= 0.02)
|
|
274
|
global.analog_sense = 0.02;
|
|
275
|
if (control_check_pressed(0) || control_check_pressed(1))
|
|
276
|
menu_engage = 0;
|
|
277
|
}
|
|
278
|
}
|
|
279
|
else
|
|
280
|
{
|
|
281
|
draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6);
|
|
282
|
draw_sprite_ext(spr_sensebar, 0, (sensebar_x + 40) - (global.analog_sense * 100), 138, 1, 1, 0, c_yellow, 0.6);
|
|
283
|
}
|
|
284
|
if (fun == 1)
|
|
285
|
{
|
|
286
|
if (menu == 6)
|
|
287
|
draw_set_color(c_yellow);
|
|
288
|
else
|
|
289
|
draw_set_color(c_white);
|
|
290
|
scale = analog_text_width / string_width(ANALOG SENSITIVITY SENSITIVITY:scr_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; ("joyconfig_analog_sens_sq") );
|
|
291
|
draw_text_transformed(20, 135 + vspacing, ANALOG SENSITIVITY SENSITIVITY:scr_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; ("joyconfig_analog_sens_sq") , scale, 1, 0);
|
|
292
|
if (menu == 6 && menu_engage == 1)
|
|
293
|
{
|
|
294
|
draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135 + vspacing, 1, 1, 0, c_green, 1);
|
|
295
|
draw_sprite_ext(spr_sensebar, 0, (sensebar_x + 40) - (global.analog_sense_sense * 200), 138 + vspacing, 1, 1, 0, c_yellow, 1);
|
|
296
|
if (buffer < 0)
|
|
297
|
{
|
|
298
|
if (obj_time.right)
|
|
299
|
global.analog_sense_sense -= 0.01;
|
|
300
|
if (obj_time.left)
|
|
301
|
global.analog_sense_sense += 0.01;
|
|
302
|
if (global.analog_sense_sense >= 0.2)
|
|
303
|
global.analog_sense_sense = 0.2;
|
|
304
|
if (global.analog_sense_sense <= 0.01)
|
|
305
|
global.analog_sense_sense = 0.01;
|
|
306
|
if (control_check_pressed(0) || control_check_pressed(1))
|
|
307
|
menu_engage = 0;
|
|
308
|
}
|
|
309
|
}
|
|
310
|
else
|
|
311
|
{
|
|
312
|
draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135 + vspacing, 1, 1, 0, c_green, 0.6);
|
|
313
|
draw_sprite_ext(spr_sensebar, 0, (sensebar_x + 40) - (global.analog_sense_sense * 200), 138 + vspacing, 1, 1, 0, c_yellow, 0.6);
|
|
314
|
}
|
|
315
|
}
|
|
316
|
if (menu == 7)
|
|
317
|
draw_set_color(c_yellow);
|
|
318
|
else
|
|
319
|
draw_set_color(c_white);
|
|
320
|
draw_text(20, 170, DIR CHOICE:scr_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; ("joyconfig_dir_choice") );
|
|
321
|
if (global.joy_dir == 0)
|
|
322
|
draw_text(100, 170, NORMALscr_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; ("joyconfig_dir_normal") );
|
|
323
|
if (global.joy_dir == 1)
|
|
324
|
draw_text(100, 170, ANALOG ONLYscr_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; ("joyconfig_dir_analog") );
|
|
325
|
if (global.joy_dir == 2)
|
|
326
|
draw_text(100, 170, POV ONLYscr_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; ("joyconfig_dir_pov") );
|
|
327
|
if (menu == 7 && menu_engage == 1)
|
|
328
|
{
|
|
329
|
global.joy_dir += 1;
|
|
330
|
if (global.joy_dir >= 3)
|
|
331
|
global.joy_dir = 0;
|
|
332
|
menu_engage = 0;
|
|
333
|
}
|
|
334
|
if (r_buffer > 0)
|
|
335
|
{
|
|
336
|
r_buffer -= 1;
|
|
337
|
draw_set_color(c_red);
|
|
338
|
draw_text_transformed_color(20, 170 + vspacing, r_line, 1, 1, 0, c_red, c_red, c_red, c_red, 1 - ((10 - r_buffer) / 10));
|
|
339
|
}
|
|
340
|
else
|
|
341
|
{
|
|
342
|
if (menu == 8)
|
|
343
|
draw_set_color(c_yellow);
|
|
344
|
else
|
|
345
|
draw_set_color(c_white);
|
|
346
|
draw_text(20, 170 + vspacing, RESET TO DEFAULTscr_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; ("joyconfig_reset") );
|
|
347
|
}
|
|
348
|
if (menu == 8 && menu_engage == 1)
|
|
349
|
{
|
|
350
|
r_buffer = 15;
|
|
351
|
rrr = floor(random(50));
|
|
352
|
if (fun == 1)
|
|
353
|
{
|
|
354
|
if (rrr == 1)
|
|
355
|
r_line = SPAGHETTI...scr_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; ("joyconfig_spaghetted") ;
|
|
356
|
else
|
|
357
|
r_line = RESETTED...scr_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; ("joyconfig_resetted") ;
|
|
358
|
}
|
|
359
|
global.button0 = 2;
|
|
360
|
global.button1 = 1;
|
|
361
|
global.button2 = 4;
|
|
362
|
global.analog_sense = 0.2;
|
|
363
|
global.analog_sense_sense = 0.01;
|
|
364
|
global.joy_dir = 0;
|
|
365
|
if (obj_time.j_ch > 0)
|
|
366
|
{
|
|
367
|
if (!joystick_has_pov(obj_time.j_ch))
|
|
368
|
global.joypad_dir = 1;
|
|
369
|
}
|
|
370
|
menu_engage = 0;
|
|
371
|
}
|
|
372
|
if (menu == 9)
|
|
373
|
draw_set_color(c_yellow);
|
|
374
|
else
|
|
375
|
draw_set_color(c_white);
|
|
376
|
draw_text(20, 170 + (2 * vspacing), CONTROL TESTscr_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; ("joyconfig_test") );
|
|
377
|
if (menu == 9 && menu_engage == 1)
|
|
378
|
{
|
|
379
|
caster_free(all);
|
|
380
|
room_goto(room_controltest Control test room [Dogchecked]);
|
|
381
|
}
|
|
382
|
if (weather == 1)
|
|
383
|
{
|
|
384
|
c = instance_create(0, 0, obj_ct_fallobj);
|
|
385
|
c.sprite_index = spr_christmasflake;
|
|
386
|
siner += 1;
|
|
387
|
draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1);
|
|
388
|
draw_set_color(c_gray);
|
|
389
|
draw_text_transformed(220 + sin(siner / 12), 120 + cos(siner / 12), joyconfig_test_winterscr_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; ("joyconfig_test_winter") , 1, 1, -20);
|
|
390
|
}
|
|
391
|
if (weather == 2)
|
|
392
|
{
|
|
393
|
c = instance_create(0, 0, obj_ct_fallobj);
|
|
394
|
c.sprite_index = spr_fallleaf;
|
|
395
|
c.image_blend = choose(merge_color(c_red, c_white, 0.5));
|
|
396
|
siner += 1;
|
|
397
|
draw_sprite_ext(spr_tobdog_spring, floor(siner / 15), 250, 218, 1, 1, 0, c_white, 1);
|
|
398
|
draw_set_color(c_gray);
|
|
399
|
draw_text_transformed(220 + sin(siner / 12), 120 + cos(siner / 12), joyconfig_test_springscr_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; ("joyconfig_test_spring") , 1, 1, -20);
|
|
400
|
}
|
|
401
|
if (weather == 3)
|
|
402
|
{
|
|
403
|
extreme2 += 1;
|
|
404
|
if (extreme2 >= 240)
|
|
405
|
{
|
|
406
|
extreme += 1;
|
|
407
|
if (extreme >= 1100 && abs(sin(siner / 15)) < 0.1)
|
|
408
|
{
|
|
409
|
extreme = 0;
|
|
410
|
extreme2 = 0;
|
|
411
|
}
|
|
412
|
}
|
|
413
|
siner += 1;
|
|
414
|
draw_sprite_ext(spr_tobdog_summer, floor(siner / 15), 250, 225, 2 + (sin(siner / 15) * (0.2 + (extreme / 900))), 2 - (sin(siner / 15) * (0.2 + (extreme / 900))), 0, c_white, 1);
|
|
415
|
draw_set_color(c_yellow);
|
|
416
|
draw_circle(258 + (cos(siner / 18) * 6), 40 + (sin(siner / 18) * 6), 28 + (sin(siner / 6) * 4), 0);
|
|
417
|
draw_set_color(c_gray);
|
|
418
|
draw_text_transformed(220 + sin(siner / 12), 120 + cos(siner / 12), joyconfig_test_summerscr_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; ("joyconfig_test_summer") , 1, 1, -20);
|
|
419
|
}
|
|
420
|
if (weather == 4)
|
|
421
|
{
|
|
422
|
c = instance_create(0, 0, obj_ct_fallobj);
|
|
423
|
c.sprite_index = spr_fallleaf;
|
|
424
|
c.image_blend = choose(c_yellow, c_orange, c_red);
|
|
425
|
siner += 1;
|
|
426
|
draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1);
|
|
427
|
draw_set_color(c_gray);
|
|
428
|
draw_text_transformed(220 + sin(siner / 12), 120 + cos(siner / 12), joyconfig_test_fallscr_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; ("joyconfig_test_fall") , 1, 1, -20);
|
|
429
|
}
|
|
430
|
if (intro == 1)
|
|
431
|
{
|
|
432
|
if (rectile == 16)
|
|
433
|
caster_play(harp, 1, 1);
|
|
434
|
rectile += 4;
|
|
435
|
draw_set_color(c_black);
|
|
436
|
ossafe_fill_rectangle(168 - rectile, -10, -1, 250);
|
|
437
|
draw_set_color(c_black);
|
|
438
|
ossafe_fill_rectangle(152 + rectile, -10, 330, 250);
|
|
439
|
if (rectile >= 170)
|
|
440
|
{
|
|
441
|
caster_loop(weathermusic, 0.8, 1);
|
|
442
|
menu_engage = 0;
|
|
443
|
buffer = 5;
|
|
444
|
intro = -1;
|
|
445
|
}
|
|
446
|
}
|