|
|
@ -516,7 +516,7 @@ function echo_chunkymap_table() { |
|
|
|
|
|
|
|
if (isset($chunk_assoc[$chunk_luid]["players_count"])) { |
|
|
|
echo "<!--CHUNK $chunk_luid: players_count=".$chunk_assoc[$chunk_luid]["players_count"]."-->"; |
|
|
|
$nonprivate_name_beginning_char_count = 2; |
|
|
|
$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"]; |
|
|
@ -541,10 +541,10 @@ function echo_chunkymap_table() { |
|
|
|
$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=""; |
|
|
|
$img_style="position:absolute; "; |
|
|
|
if (!$is_expired) { |
|
|
|
if ($is_idle) { |
|
|
|
$img_style="opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below |
|
|
|
$img_style.="opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below |
|
|
|
} |
|
|
|
echo_hold( "<div style=\"position:absolute; left:$rel_x; top:$rel_z; width: $zoomed_head_w; height: $zoomed_head_h; border: 1px solid white\"><img src=\"images/chunkymap_character-face.png\" style=\"$img_style\"/>$player_name</div>" ); |
|
|
|
} |
|
|
|