|
|
|
@ -38,6 +38,7 @@ num_port = tempnumcounter++;
|
|
|
|
num_name = tempnumcounter++;
|
|
|
|
num_name = tempnumcounter++;
|
|
|
|
num_sequence = tempnumcounter++;
|
|
|
|
num_sequence = tempnumcounter++;
|
|
|
|
num_color = tempnumcounter++;
|
|
|
|
num_color = tempnumcounter++;
|
|
|
|
|
|
|
|
num_palette = tempnumcounter++;
|
|
|
|
num_showname = tempnumcounter++;
|
|
|
|
num_showname = tempnumcounter++;
|
|
|
|
num_difficulty = tempnumcounter++;
|
|
|
|
num_difficulty = tempnumcounter++;
|
|
|
|
num_elm = tempnumcounter++;
|
|
|
|
num_elm = tempnumcounter++;
|
|
|
|
@ -109,6 +110,7 @@ tip[num_port] = "Set the port of the server";
|
|
|
|
tip[num_name] = "Set your display name";
|
|
|
|
tip[num_name] = "Set your display name";
|
|
|
|
tip[num_sequence] = "Toggle whether the reactor sequence is synced";
|
|
|
|
tip[num_sequence] = "Toggle whether the reactor sequence is synced";
|
|
|
|
tip[num_color] = "Pick your preferred player color";
|
|
|
|
tip[num_color] = "Pick your preferred player color";
|
|
|
|
|
|
|
|
tip[num_palette] = "Choose Default/Color/Custom Palette";
|
|
|
|
tip[num_showname] = "Enable/disable showing player names";
|
|
|
|
tip[num_showname] = "Enable/disable showing player names";
|
|
|
|
tip[num_difficulty] = "Choose the shared Multitroid difficulty";
|
|
|
|
tip[num_difficulty] = "Choose the shared Multitroid difficulty";
|
|
|
|
tip[num_elm] = "Choose the shared ELM difficulty";
|
|
|
|
tip[num_elm] = "Choose the shared ELM difficulty";
|
|
|
|
@ -248,6 +250,16 @@ if (active) {
|
|
|
|
sfx_play(sndMenuMove);
|
|
|
|
sfx_play(sndMenuMove);
|
|
|
|
event_user(2);
|
|
|
|
event_user(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (global.curropt == num_palette)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
oControl.palette--;
|
|
|
|
|
|
|
|
if(oControl.palette < 0){
|
|
|
|
|
|
|
|
oControl.palette = 2;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sfx_play(sndMenuMove);
|
|
|
|
|
|
|
|
event_user(2);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (global.curropt == num_difficulty && instance_exists(oClient))
|
|
|
|
if (global.curropt == num_difficulty && instance_exists(oClient))
|
|
|
|
@ -277,6 +289,16 @@ if (active) {
|
|
|
|
sfx_play(sndMenuMove);
|
|
|
|
sfx_play(sndMenuMove);
|
|
|
|
event_user(2);
|
|
|
|
event_user(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (global.curropt == num_palette)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
oControl.palette++;
|
|
|
|
|
|
|
|
if(oControl.palette > 2){
|
|
|
|
|
|
|
|
oControl.palette = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sfx_play(sndMenuMove);
|
|
|
|
|
|
|
|
event_user(2);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (global.curropt == num_difficulty && instance_exists(oClient))
|
|
|
|
if (global.curropt == num_difficulty && instance_exists(oClient))
|
|
|
|
@ -313,14 +335,15 @@ if (active) {
|
|
|
|
event_user(2);
|
|
|
|
event_user(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var key;
|
|
|
|
var key, keyBegin;
|
|
|
|
|
|
|
|
var keyBegin = (oControl.kMenu1 > 0);
|
|
|
|
if(os_type != os_android){
|
|
|
|
if(os_type != os_android){
|
|
|
|
key = keyboard_check_pressed(vk_enter);
|
|
|
|
key = keyboard_check_pressed(vk_enter);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
key = (oControl.kMenu1 > 0);
|
|
|
|
key = (oControl.kMenu1 > 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (key && oControl.kMenu1PushedSteps == 0) {
|
|
|
|
if (key && oControl.kMenu1PushedSteps == 0 || (os_type != os_android && keyBegin && oControl.kMenu1PushedSteps == 0 && !editing)) {
|
|
|
|
if (global.curropt == num_ip && os_type != os_android) {
|
|
|
|
if (global.curropt == num_ip && os_type != os_android) {
|
|
|
|
editing = !editing;
|
|
|
|
editing = !editing;
|
|
|
|
op[num_ip].editing = editing;
|
|
|
|
op[num_ip].editing = editing;
|
|
|
|
@ -541,7 +564,7 @@ if(ID == msg && global.curropt == num_ip){
|
|
|
|
if(ds_map_find_value(async_load, "status")){
|
|
|
|
if(ds_map_find_value(async_load, "status")){
|
|
|
|
var input = ds_map_find_value(async_load, "result");
|
|
|
|
var input = ds_map_find_value(async_load, "result");
|
|
|
|
if(is_string(input)){
|
|
|
|
if(is_string(input)){
|
|
|
|
ini_open(working_directory + "\Multitroid\settings.ini");
|
|
|
|
ini_open(working_directory + "\multitroid\settings.ini");
|
|
|
|
ini_write_string("Settings", "ipaddress", input);
|
|
|
|
ini_write_string("Settings", "ipaddress", input);
|
|
|
|
ini_close();
|
|
|
|
ini_close();
|
|
|
|
ip = input;
|
|
|
|
ip = input;
|
|
|
|
@ -558,7 +581,7 @@ if(ID == msg && global.curropt == num_port){
|
|
|
|
if(ds_map_find_value(async_load, "status")){
|
|
|
|
if(ds_map_find_value(async_load, "status")){
|
|
|
|
var input = ds_map_find_value(async_load, "value");
|
|
|
|
var input = ds_map_find_value(async_load, "value");
|
|
|
|
if(is_real(input)){
|
|
|
|
if(is_real(input)){
|
|
|
|
ini_open(working_directory + "\Multitroid\settings.ini");
|
|
|
|
ini_open(working_directory + "\multitroid\settings.ini");
|
|
|
|
ini_write_real("Settings", "port", input);
|
|
|
|
ini_write_real("Settings", "port", input);
|
|
|
|
ini_close();
|
|
|
|
ini_close();
|
|
|
|
port = string(input);
|
|
|
|
port = string(input);
|
|
|
|
@ -574,7 +597,7 @@ if(ID == msg && global.curropt == num_name){
|
|
|
|
if(ds_map_find_value(async_load, "status")){
|
|
|
|
if(ds_map_find_value(async_load, "status")){
|
|
|
|
var input = ds_map_find_value(async_load, "result");
|
|
|
|
var input = ds_map_find_value(async_load, "result");
|
|
|
|
if(is_string(input)){
|
|
|
|
if(is_string(input)){
|
|
|
|
ini_open(working_directory + "\Multitroid\settings.ini");
|
|
|
|
ini_open(working_directory + "\multitroid\settings.ini");
|
|
|
|
ini_write_string("Settings", "name", input);
|
|
|
|
ini_write_string("Settings", "name", input);
|
|
|
|
ini_close();
|
|
|
|
ini_close();
|
|
|
|
name = input;
|
|
|
|
name = input;
|
|
|
|
@ -764,13 +787,26 @@ switch(showname){
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ini_open(working_directory + "\Multitroid\mod_settings.ini");
|
|
|
|
switch(oControl.palette){
|
|
|
|
|
|
|
|
case 0:
|
|
|
|
|
|
|
|
op[num_palette].optext = "Default";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
op[num_palette].optext = "Color";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
op[num_palette].optext = "Custom";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ini_open(working_directory + "\multitroid\mod_settings.ini");
|
|
|
|
ini_write_string("ModSettings", "ipaddress", ip);
|
|
|
|
ini_write_string("ModSettings", "ipaddress", ip);
|
|
|
|
ini_write_real("ModSettings", "port", real(port));
|
|
|
|
ini_write_real("ModSettings", "port", real(port));
|
|
|
|
ini_write_string("ModSettings", "displayname", name);
|
|
|
|
ini_write_string("ModSettings", "displayname", name);
|
|
|
|
ini_write_string("ModSettings", "reactorsequence", _sequence);
|
|
|
|
ini_write_string("ModSettings", "reactorsequence", _sequence);
|
|
|
|
ini_write_string("ModSettings", "preferredcolor", color);
|
|
|
|
ini_write_string("ModSettings", "preferredcolor", color);
|
|
|
|
ini_write_string("ModSettings", "showname", _showname);
|
|
|
|
ini_write_string("ModSettings", "showname", _showname);
|
|
|
|
|
|
|
|
ini_write_real("ModSettings", "palette", oControl.palette);
|
|
|
|
ini_close();
|
|
|
|
ini_close();
|
|
|
|
|
|
|
|
|
|
|
|
oControl.ipaddress = ip;
|
|
|
|
oControl.ipaddress = ip;
|
|
|
|
@ -859,6 +895,14 @@ if(!global.shaders_compiled){
|
|
|
|
canedit[num_color] = 0;
|
|
|
|
canedit[num_color] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
op[num_palette] = instance_create(x, y + sep * tempcount++, oOptionLR);
|
|
|
|
|
|
|
|
op[num_palette].label = "Palette";
|
|
|
|
|
|
|
|
op[num_palette].optionid = num_palette;
|
|
|
|
|
|
|
|
if(!global.shaders_compiled){
|
|
|
|
|
|
|
|
op[num_palette].enabled = 0;
|
|
|
|
|
|
|
|
canedit[num_palette] = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
op[num_showname] = instance_create(x, y + sep * tempcount++, oOptionLR);
|
|
|
|
op[num_showname] = instance_create(x, y + sep * tempcount++, oOptionLR);
|
|
|
|
op[num_showname].label = "Show names";
|
|
|
|
op[num_showname].label = "Show names";
|
|
|
|
op[num_showname].optionid = num_showname;
|
|
|
|
op[num_showname].optionid = num_showname;
|
|
|
|
|