/* Created By EVWeb (Alex Wouters) Copyright 2011-2015 by Galactic Software LLC | All Rights Reserved */ // Display Main Menu var sd_make_main_menu = function() { sd_basic_clear(); sd_display_title(); var inner_list = document.createElement("ul"); inner_list.className = "menu_list"; inner_list.innerHTML = "
Search "; info += ""; info += " | Select " + str_type + " | " + page_buttons + " | - |
" + str_type + " | "; info += "Made By | "; info += "Updated | |
" + sd_g_vars.levels[j][1]; info += " | " + sd_g_vars.levels[j][4] + " | " + sd_g_vars.levels[j][5] + " | |
a | a | a | a |
"; info += " | " + page_buttons + " |
";
if( human_id !== -1 && (total_human === 1 || !next_level.local_shp) )
next_level.local_shp = human_id;
var h_name = "DEMO USER";
for( i = 0; i < p_shown.length; i++ ) {
info += " 4 && p_shown.length > 6) || (p_ships[i] > 8 && p_shown.length <= 6) )
info += "info='mini' ";
info += "color='c" + p_shown[i].color + "'>";
info += " ";
}
info += "" + (h_name && next_level.local_shp && next_level.ships[next_level.local_shp].player === p_shown[i] ? h_name : p_shown[i].name) + " ";
for( j = 0; j < p_shown[i].ships.length; j++ ) {
var temp_shp = p_shown[i].ships[j];
if( temp_shp.spawn === 0 && temp_shp.customizable ) {
info += "";
if( temp_shp.is_random )
info += " ";
}
}
if( p_ships[i] === 0 ) {
info += "You";
else
info += ">AI";
info += " ";
info += " ";
}
info += "UNKOWN | Level Options "; for( i = 0; i < next_level.options.length; i++ ) { info += " "; } info += " | ";
info += "
Max Velocity: " + (ship_hold.type.max_vel * 30) + " | Shields: " + ship_hold.type.max_shield + " | Armor: " + ship_hold.type.max_armor + " | "; info += "
Acceleration: " + (ship_hold.type.accel * 900) + " | Shield Recharge: " + (ship_hold.type.s_recharge * 30) + " | Armor Recharge: " + (ship_hold.type.a_recharge * 30) + " | "; info += "
Turn Rate: " + (~~((ship_hold.type.turn / Math.PI) * 30000) / 1000) + " | "; info += " |
Damages: " + (temp_weap.damages) + " | Fire Rate: " + (~~(((30 / temp_weap.fire_delay) * temp_weap.multi_fire) * 1000) / 1000) + " | "; info += "
Range: " + temp_weap.max_dist + " | Blast Radius: " + (temp_weap.blast_radius - 1) + " | "; info += "
Ammo Type: " + (temp_weap.ammo_type.a_name) + " | Ammo Usage: " + (temp_weap.ammo_usage) + " | "; if( temp_weap.turn > 0 ) info += "Tracking, "; if( temp_weap.point_defense ) info += "Point Defense, "; else if( temp_weap.automated ) info += "Automatic, "; if( temp_weap.armor > 0 ) info += "Hitable, "; if( info[info.length - 2] == "," ) info = info.substr(0, info.length - 2); info += " |
Ship: " + (temp_weap.ship_type.c_name) + " | Fire Rate: " + (~~(((30 / temp_weap.fire_delay) * temp_weap.multi_fire) * 1000) / 1000) + " | "; info += "
Ammo Type: " + (temp_weap.ammo_type.a_name) + " | Ammo Usage: " + (temp_weap.ammo_usage) + " | Fighter Bay"; info += " |