'; mFleetSelectable ++; mFleetSelected += (fleet.selected ? 1 : 0); fDisp.push(fleet); sc = ' onclick="with (document.getElementById(\'fsel'+fleet.id+'\')) { checked = !checked; };' + 'selectFleet('+fleet.id+');return true" '; } str += ' | '; } else { str += sc + '>'; } str += players.get(fleet.owner); if (myself.id != fleet.owner) str += ''; str += ' | ' + fleet.name + ' | '; var used = fleet.ships[0] * o.gSpace + fleet.ships[1] * o.fSpace; var haul = fleet.ships[2] * o.cHaul + fleet.ships[3] * o.bHaul; if (haul == 0) str += 'N/A'; else { var hp = Math.round(used * 100 / haul); str += (hp > 200) ? '>200%' : (hp + '%'); } str += ' | '; for (i=0;i<4;i++) str += ''+formatNumber(fleet.ships[i])+' | '; str += ''+formatNumber(fleet.power)+' | '; str += '' + (fleet.mode == 1 ? statusText[0] : statusText[1]) + ' |
' + fleet.orders.cur.name + ''; if (fleet.orders.cur.details && fleet.orders.cur.details.tag != '') { str += ' [' + fleet.orders.cur.details.tag + ']'; } str += ' | ' + fleet.orders.to.name + ''; if (fleet.orders.to.details && fleet.orders.to.details.tag != '') { str += ' [' + fleet.orders.to.details.tag + ']'; } str += ' | ' + fleet.orders.eta + ' min | '; if (fleet.orders.wait) { str += fleet.orders.wait.left + 'h ('; if (fleet.orders.wait.maxLoss == 0) str += '0%'; else str += fleet.orders.wait.minLoss + '% - ' + fleet.orders.wait.maxLoss + '%'; str += ')'; } else str += 'N/A'; str += ' |
'; wFleetSelectable ++; wFleetSelected += (fleet.selected ? 1 : 0); fDisp.push(fleet); sc = ' onclick="with (document.getElementById(\'fsel'+fleet.id+'\')) { checked = !checked; };' + 'selectFleet('+fleet.id+');return true" '; } str += ' | '; } else { str += sc + '>'; } str += players.get(fleet.owner); if (myself.id != fleet.owner) str += ''; str += ' | ' + fleet.name + ' | '; var used = fleet.ships[0] * o.gSpace + fleet.ships[1] * o.fSpace; var haul = fleet.ships[2] * o.cHaul + fleet.ships[3] * o.bHaul; if (haul == 0) str += 'N/A'; else { var hp = Math.round(used * 100 / haul); str += (hp > 200) ? '>200%' : (hp + '%'); } str += ' | '; for (i=0;i<4;i++) str += ''+formatNumber(fleet.ships[i])+' | '; str += ''+formatNumber(fleet.power)+' | '; str += '' + (fleet.mode == 1 ? statusText[0] : statusText[1]) + ' |
' + fleet.orders.loc.name + ''; if (fleet.orders.loc.details && fleet.orders.loc.details.tag != '') { str += ' [' + fleet.orders.loc.details.tag + ']'; } str += ' | ' + fleet.orders.spent + 'h | ' + fleet.orders.left + 'h | '; if (fleet.orders.maxLoss == 0) str += '0%'; else str += fleet.orders.minLoss + '% - ' + fleet.orders.maxLoss + '%'; str += ' |
' + drawMovingHeader(true) + ' |
' + drawWaitingHeader(true) + ' |
' + players.get(f.owner) + ' | ' + f.name + ' | '; if (haul == 0) str += 'N/A'; else { var hp = Math.round(used * 100 / haul); str += (hp > 200) ? '>200%' : (hp + '%'); } str += ' | ' + formatNumber(f.ships[0]) + ' / ' + formatNumber(f.ships[1]) + ' / '; str += formatNumber(f.ships[2]) + ' / ' + formatNumber(f.ships[3]) + ' | '; str += formatNumber(f.power) + ' |
' + noFleetsFound + '
'; var i,str = ''; str += players.get(f.owner) + ' | ' + f.name + ' | '; if (haul == 0) str += 'N/A'; else { var hp = Math.round(used * 100 / haul); str += (hp > 200) ? '>200%' : (hp + '%'); } str += ' | ' + formatNumber(f.ships[0]) + ' / ' + formatNumber(f.ships[1]) + ' / '; str += formatNumber(f.ships[2]) + ' / ' + formatNumber(f.ships[3]) + ' | '; str += formatNumber(f.power) + ' | '; var m = parseInt(f.mode, 10); if (f.orders.oType == 0) str += curOrdersTxt[m] + f.orders.loc.name + curOrdersTxt[2 + m]; else if (f.orders.oType == 1) str += curOrdersTxt[m+4] + f.orders.to.name + curOrdersTxt[m+6]; else str += curOrdersTxt[m+8] + f.orders.loc.name + curOrdersTxt[m+10]; str += ' | '; } str += '
"; var i; for (i = 0; i < 6; i ++) { var loc = sys.locations[i]; if (sys.opacity == 0) { var img = (loc.color == 4) ? "prem_s" : ("pl/s/"+loc.id); str += " | |
" + loc.name + ' | |
" + loc.name + " |
' + smapCoordTxt + '' + dMapX + ' , ' + dMapY + '
'; if (sys.protection) { str = '' + str + ''; } document.getElementById('sdmap').innerHTML = str; } function drawGalacticMap() { var sys = map.get(dMapX + ";" + dMapY); var op = sys.opacity == -1 ? 0 : sys.opacity; var str = "" + " | " + "||||||
" + " | " + "" + (sys.protection ? '' : '')
+ "
| |||||
" +" |