Browse Source

turned off refresh_map_enable with WIP warning

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
16c197bdfd
  1. 10
      web/chunkymap.php

10
web/chunkymap.php

@ -274,6 +274,7 @@ function get_markers_from_dir($chunkymap_markers_path) {
global $show_expired_players_enable; global $show_expired_players_enable;
$markers=array(); $markers=array();
$markers_count=0; $markers_count=0;
if (is_dir($chunkymap_markers_path)) {
if ($handle = opendir($chunkymap_markers_path)) { if ($handle = opendir($chunkymap_markers_path)) {
while (false !== ($file_name = readdir($handle))) { while (false !== ($file_name = readdir($handle))) {
if (substr($file_name, 0, 1) != ".") { if (substr($file_name, 0, 1) != ".") {
@ -352,6 +353,10 @@ function get_markers_from_dir($chunkymap_markers_path) {
} }
} }
} }
}
else {
echo "<!--missing $chunkymap_markers_path-->";
}
return $markers; return $markers;
} }
@ -675,9 +680,10 @@ function echo_chunkymap_canvas($show_player_names_enable, $chunk_mode_enable, $v
var tmp_widget = {x:100,y:100,text:"Loading..."}; var tmp_widget = {x:100,y:100,text:"Loading..."};
draw_widget_recolored(tmp_widget, "rgb(128,128,128)"); draw_widget_recolored(tmp_widget, "rgb(128,128,128)");
var powered_by_label = create_bawidget(ctx.canvas.width/2, size_1em_pixel_count/4, 0, 0, null, "powered_by_label"); var powered_by_label_size_em = .75;
var powered_by_label = create_bawidget(ctx.canvas.width/2, size_1em_pixel_count*powered_by_label_size_em, 0, 0, null, "powered_by_label");
powered_by_label.text = "Chunkymap"; powered_by_label.text = "Chunkymap";
powered_by_label.size_em = .75; powered_by_label.size_em = powered_by_label_size_em;
//powered_by_label.color_string = "rgb(12,132,245)" //powered_by_label.color_string = "rgb(12,132,245)"
powered_by_label.color_string = "rgb(192,192,192)" powered_by_label.color_string = "rgb(192,192,192)"

Loading…
Cancel
Save