name tiles "roomname n" e.g. Bedroom 1 for easier searching
This commit is contained in:
parent
60f83416a7
commit
d18cec5c13
|
@ -521,13 +521,15 @@ $(document).ready(function() {
|
||||||
var newTiles = _.filter(bitsyData.tiles, 'new');
|
var newTiles = _.filter(bitsyData.tiles, 'new');
|
||||||
var tileText = "";
|
var tileText = "";
|
||||||
|
|
||||||
_.each(newTiles, function(tile) {
|
_.each(newTiles, function(tile, n) {
|
||||||
tileText += "TIL " + tile.name + "\n"; //again, rename tile name to id...
|
tileText += "TIL " + tile.name + "\n"; //again, rename tile name to id...
|
||||||
|
|
||||||
_.each(tile.bitmap, function(row) {
|
_.each(tile.bitmap, function(row) {
|
||||||
tileText += row.join('') + "\n";
|
tileText += row.join('') + "\n";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tileText += "NAME " + newRoomName + " " + (n + 1) + "\n";
|
||||||
|
|
||||||
// don't need to worry about animation right now
|
// don't need to worry about animation right now
|
||||||
|
|
||||||
tileText += "\n";
|
tileText += "\n";
|
||||||
|
|
|
@ -83,4 +83,3 @@ if (src.match(/^(file|https)?:\/\/|^\/\//)) {
|
||||||
* break up rendering into separate preview and output modes (would be good to have a throttled preview for brightness slider adjustments and then a debounced tile render)
|
* break up rendering into separate preview and output modes (would be good to have a throttled preview for brightness slider adjustments and then a debounced tile render)
|
||||||
* add 'invert' function
|
* add 'invert' function
|
||||||
* allow for image colour hack
|
* allow for image colour hack
|
||||||
* set tile names to "room-name x y" or similar (thanks, Von Bednar)
|
|
Loading…
Reference in New Issue