That looks better
This commit is contained in:
parent
01797330d8
commit
dc0041da39
1 changed files with 8 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue