'."$td_placeholder_content".' | '."\r\n"; echo "".''.' | '."\r\n"; echo ''."$td_placeholder_content".' | '."\r\n"; echo '|||
".''.' | '."\r\n"; echo ''."\r\n";
echo '
| '."\r\n";
echo " ".''.' | '."\r\n"; echo '|||
'."$td_placeholder_content".' | '."\r\n"; echo "".''.' | '."\r\n"; echo ''."$td_placeholder_content".' | '."\r\n"; echo '
");
echo_hold(" "); //causes child's absolute position to be relative to this div's location, as per http://www.w3schools.com/css/tryit.asp?filename=trycss_position_absolute
$chunk_luid = "x".$x."z".$z;
$chunk_img_name = $x_opener.$x.$z_opener.$z."$dot_and_ext";
$chunk_img_path = get_chunk_folder_path_from_chunky_coords($x, $z).'/'.$chunk_img_name;
if (is_file($chunk_img_path)) {
echo_hold( "");
}
else {
//echo_hold( " ");
}
if (isset($chunk_assoc[$chunk_luid]["players_count"])) {
echo "";
$nonprivate_name_beginning_char_count = 20;
for ($player_count=0; $player_count<$chunk_assoc[$chunk_luid]["players_count"]; $player_count++) {
$rel_x = $chunk_assoc[$chunk_luid][ "players" ][ $player_count ]["rel_x"];
$rel_z = $chunk_assoc[$chunk_luid][ "players" ][ $player_count ]["rel_z"];
$is_expired=false;
$is_idle=false;
if (isset($chunk_assoc[$chunk_luid][ "players" ][ $player_count ]["file_path"])) {
$last_player_update_time=filemtime($chunk_assoc[$chunk_luid][ "players" ][ $player_count ]["file_path"]);
if (time()-$last_player_update_time > $player_file_age_expired_max_seconds) {
$is_expired=true;
}
elseif (time()-$last_player_update_time > $player_file_age_idle_max_seconds) {
$is_idle=true;
}
}
$text = $chunk_assoc[$chunk_luid]["players"][$player_count]["text"];
if (strlen($chunk_assoc[$chunk_luid]["players"][$player_count]["text"])>$nonprivate_name_beginning_char_count) {
$text = substr($text, 0, $nonprivate_name_beginning_char_count)."*";
}
//show head full size (not zoomed):
$zoomed_head_w=$character_icon_w;//(int)((float)$character_icon_w*$scale+.5);
$zoomed_head_h=$character_icon_h;//(int)((float)$character_icon_h*$scale+.5);
$rel_x -= (int)($zoomed_head_w/2);
$rel_z -= (int)($zoomed_head_h/2);
//$img_style="position:absolute; ";
$img_style="";
$img_border_style="border: 1px solid white;";
$text_style="color:white;";
if ($is_expired==false) {
if ($is_idle==true) {
$img_border_style="border: 1px solid rgba(128,128,128,.5);";
$img_style.="opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below
$text_style="color:white; opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below
}
echo_hold( " ");
echo_hold( "$text " );
}
//$position_offset_x+=$character_icon_w;
}
}
else echo "";
if (isset($chunk_assoc[$chunk_luid]["markers_count"])) {
echo "";
$nonprivate_name_beginning_char_count = 20;
for ($marker_count=0; $marker_count<$chunk_assoc[$chunk_luid]["markers_count"]; $marker_count++) {
$rel_x = $chunk_assoc[$chunk_luid][ "markers" ][ $marker_count ]["rel_x"];
$rel_z = $chunk_assoc[$chunk_luid][ "markers" ][ $marker_count ]["rel_z"];
$is_expired=false;
$is_idle=false;
// if (isset($chunk_assoc[$chunk_luid][ "markers" ][ $marker_count ]["file_path"])) {
// $last_marker_update_time=filemtime($chunk_assoc[$chunk_luid][ "markers" ][ $marker_count ]["file_path"]);
// if (time()-$last_marker_update_time > $marker_file_age_expired_max_seconds) {
// $is_expired=true;
// }
// elseif (time()-$last_marker_update_time > $marker_file_age_idle_max_seconds) {
// $is_idle=true;
// }
// }
$text = $chunk_assoc[$chunk_luid]["markers"][$marker_count]["text"];
$image_path = "";
if (isset($chunk_assoc[$chunk_luid]["markers"][$marker_count]["image"])) {
$image_path = $chunk_assoc[$chunk_luid]["markers"][$marker_count]["image"];
}
if (strlen($chunk_assoc[$chunk_luid]["markers"][$marker_count]["text"])>$nonprivate_name_beginning_char_count) {
$text = substr($text, 0, $nonprivate_name_beginning_char_count)."*";
}
//show head full size (not zoomed):
//$zoomed_head_w=$character_icon_w;//(int)((float)$character_icon_w*$scale+.5);
//$zoomed_head_h=$character_icon_h;//(int)((float)$character_icon_h*$scale+.5);
$zoomed_image_w=16;
$zoomed_image_h=16;
$rel_x -= (int)($zoomed_image_w/2);
$rel_z -= (int)($zoomed_image_h/2);
//$img_style="position:absolute; ";
$img_style="";
$img_border_style="";
//$img_border_style="border: 1px solid white;";
$text_style="color:white;";
if ($is_expired==false) {
if ($is_idle==true) {
$img_border_style="";
//$img_border_style="border: 1px solid rgba(128,128,128,.5);";
$img_style.="opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below
$text_style="color:white; opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below
}
echo_hold( "$text " );
}
//$position_offset_x+=$character_icon_w;
}
}
else echo "";
//echo " ".$x.",0,".$z; echo_hold($alignment_comment); echo_hold(" | \r\n");
$x++;
}
echo_hold( "