commit
fe4d2e6e85
@ -163,7 +163,7 @@ editor.prototype.mapInit = function () {
|
|||||||
ec.clearRect(0, 0, core.bigmap.width*32, core.bigmap.height*32);
|
ec.clearRect(0, 0, core.bigmap.width*32, core.bigmap.height*32);
|
||||||
document.getElementById('event2').getContext('2d').clearRect(0, 0, core.bigmap.width*32, core.bigmap.height*32);
|
document.getElementById('event2').getContext('2d').clearRect(0, 0, core.bigmap.width*32, core.bigmap.height*32);
|
||||||
editor.map = [];
|
editor.map = [];
|
||||||
var sy=editor.currentFloorData.map.length,sy=editor.currentFloorData.map[0].length;
|
var sy=editor.currentFloorData.map.length,sx=editor.currentFloorData.map[0].length;
|
||||||
for (var y = 0; y < sy; y++) {
|
for (var y = 0; y < sy; y++) {
|
||||||
editor.map[y] = [];
|
editor.map[y] = [];
|
||||||
for (var x = 0; x < sx; x++) {
|
for (var x = 0; x < sx; x++) {
|
||||||
|
|||||||
@ -168,7 +168,7 @@ var editArea = new Vue({
|
|||||||
var formatArrStr = '';
|
var formatArrStr = '';
|
||||||
var that = this;
|
var that = this;
|
||||||
clearTimeout(that.formatTimer);
|
clearTimeout(that.formatTimer);
|
||||||
var si=this.mapArr.length,sk=this.mapArr[0].length;
|
var si=editor.map.length,sk=editor.map[0].length;
|
||||||
if (this.mapArr.split(/\D+/).join(' ').trim().split(' ').length != si*sk) return false;
|
if (this.mapArr.split(/\D+/).join(' ').trim().split(' ').length != si*sk) return false;
|
||||||
var arr = this.mapArr.replace(/\s+/g, '').split('],[');
|
var arr = this.mapArr.replace(/\s+/g, '').split('],[');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user