From 60fa55b49e8f4cf8570882b5eb6ad3f9bbb7885b Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 28 Feb 2013 23:08:28 -0800 Subject: Labeled checkpoints and etc in the mapDisplay --- js/mapspecs.js | 18 ++++++++++++------ pages/scores.php | 11 ----------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/js/mapspecs.js b/js/mapspecs.js index 0ea99db..2387a00 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -826,6 +826,17 @@ function displayMap(mapid, divID, goalSize, solution, moves, challengeMap, isThu }); } +var Tile = { +"o" : "Open", +"s" : "Start", +"f" : "Finish", +"c" : "Checkpoint", +"r" : "Rock", +"t" : "Teleport In", +"u" : "Teleport Out", +"p" : "Unbuildable", +"x" : "Single-Path-Rock"}; + //Map as object. If target width is NULL or False, default width is used. function mapAsHTML(map, targetWidth, demo) { @@ -867,7 +878,7 @@ function mapAsHTML(map, targetWidth, demo) { mapgrid += "
"; mapgrid += "
"; } else { - mapgrid += "
"; + mapgrid += "
"; mapgrid += "
"; } } @@ -931,10 +942,7 @@ function mapThumbnailHTML(map, targetWidth, isActive) { height = tileWidth * map.height; var mapgrid = ''; - - var r = ''; - //r += "
"; r += map.name; mapgrid += '
'; @@ -949,9 +957,7 @@ function mapThumbnailHTML(map, targetWidth, isActive) { } } mapgrid += '
'; - r += mapgrid; - //r += '
'; return r; } diff --git a/pages/scores.php b/pages/scores.php index 8797c36..37ef45c 100644 --- a/pages/scores.php +++ b/pages/scores.php @@ -261,17 +261,6 @@ function removeMapFromNav(mapID) { $("#thumb_"+mapID).hide('fast', function(){ $("#thumb_"+mapID).remove(); }); } -var Tile = {"Wall" : "w", -"Empty" : "o", -"Start" : "o", -"Finish" : "o", -"Checkpoint" : "o", -"TileRock" : "o", -"TeleportIn" : "o", -"TeleportOut" : "o", -"Unbuildable" : "o", -"SinglePath" : "o"}; - -- cgit v1.2.3