diff --git a/_server/css/editor.css b/_server/css/editor.css index 92d5b9e4..f202050d 100644 --- a/_server/css/editor.css +++ b/_server/css/editor.css @@ -175,7 +175,16 @@ body{ font-size: 15px; line-height: 14px; } - +#bgSelect{ + width: 50%; + height: 100px; + margin-top: 10px; +} +#bgSelect span{ + display: block; + font-size: 14px; + line-height: 30px; +} #printOut{ margin-top: 10px; height: 20px; diff --git a/_server/vm.js b/_server/vm.js index 730352a6..19559607 100644 --- a/_server/vm.js +++ b/_server/vm.js @@ -184,6 +184,7 @@ var tip = new Vue({ hasId: true, isAutotile: false, isSelectedBlock: false, + isClearBlock: false, geneMapSuccess: false, timer: null, msgs: [ //分别编号1,2,3,4,5,6,7,8;奇数警告,偶数成功 @@ -202,15 +203,19 @@ var tip = new Vue({ watch: { infos: { handler: function(val, oldval){ + this.isClearBlock = false; if(typeof(val) != 'undefined'){ - this.infos = val; + if(val==0) { + this.isClearBlock = true; + return; + } if('id' in val){ this.hasId = true; }else{ this.hasId = false; } this.isAutotile = false; - if(this.infos.images == "autotile" && this.hasId) this.isAutotile = true; + if(val.images == "autotile" && this.hasId) this.isAutotile = true; } }, deep: true @@ -246,6 +251,20 @@ var selectBox = new Vue({ } }) +var bgSelect = new Vue({ + el: '#bgSelect', + data: { + bgs: {}, + selectedBg: 'ground' + }, + watch:{ + selectedBg: function(){ + editor.bgY = this.bgs.indexOf(this.selectedBg); + editor.drawMapBg(); + } + } +}) + var editFile4map = new Vue({ el: '#editFile4map', data: { @@ -257,8 +276,8 @@ var editFile4map = new Vue({ filelist: function(val){ if(val){ var oval = val.length ? JSON.parse(JSON.stringify(val)) : []; - for(var i=0; i
-

图块编号:{{ infos['idnum'] }}

-

图块ID:{{ infos['id'] }}

-

该图块无对应的数字或ID存在,请先前往icons.js和maps.js中进行定义!

-

图块所在素材:{{ infos['images'] + (isAutotile ? '( '+infos['id']+' )' : '') }}

-

图块索引:{{ infos['y'] }}

+

当前选择为清除块,可擦除地图上块

+
+

图块编号:{{ infos['idnum'] }}

+

图块ID:{{ infos['id'] }}

+

该图块无对应的数字或ID存在,请先前往icons.js和maps.js中进行定义!

+

图块所在素材:{{ infos['images'] + (isAutotile ? '( '+infos['id']+' )' : '') }}

+

图块索引:{{ infos['y'] }}

+

{{ mapMsg }}

@@ -77,7 +80,15 @@
- +
+ + 当前地板: {{ selectedBg }} +