That looks better

This commit is contained in:
RedEnchilada 2016-05-10 20:06:42 -05:00
parent 01797330d8
commit dc0041da39

View file

@ -444,10 +444,13 @@ Level = function(levelName) {
level.edit = function() { level.edit = function() {
level.editor = true; level.editor = true;
LEVELEDITORBOX = document.createElement('div'); if (typeof LEVELEDITORBOX == 'undefined') {
LEVELEDITORBOX.style.backgroundColor = '#CCC'; LEVELEDITORBOX = document.createElement('div');
LEVELEDITORBOX.style.minHeight = '100px'; LEVELEDITORBOX.style.backgroundColor = '#CCC';
document.body.appendChild(LEVELEDITORBOX); LEVELEDITORBOX.style.minHeight = '100px';
LEVELEDITORBOX.style.whiteSpace = 'pre-wrap';
document.body.appendChild(LEVELEDITORBOX);
}
return level; return level;
} }
@ -542,7 +545,7 @@ Level = function(levelName) {
z: Math.round(dolphin.position.z) z: Math.round(dolphin.position.z)
}; };
LEVELEDITORBOX.innerText = JSON.stringify(level.map); LEVELEDITORBOX.innerText = JSON.stringify(level.map, null, "\t");
} }
function pressOrTurbo(key) { function pressOrTurbo(key) {