mota-js/libs/ui.min.js
2017-12-08 14:57:13 +08:00

1 line
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function ui(){}ui.prototype.init=function(){};main.instance.ui=new ui();ui.prototype.closePanel=function(a){core.status.boxAnimateObjs=[];core.setBoxAnimate();core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);if(core.isset(a)&&a){core.clearMap("data",0,0,416,416)}core.unLockControl();core.status.event.data=null;core.status.event.id=null};ui.prototype.drawTextBox=function(c){var m=null,q=null,n=null,l=null;if(c.indexOf("\t[")==0){var o=c.indexOf("]");if(o>=0){var t=c.substring(2,o);c=c.substring(o+1);var s=t.split(",");if(s.length==1){m=s[0];if(m!="hero"){var g=core.material.enemys[m];if(core.isset(g)){q=core.material.enemys[m].name;n=core.material.images.enemys;l=core.material.icons.enemys[m]}else{q=m;m="npc";n=null;l=null}}}else{m="npc";q=s[0];n=core.material.images.npcs;l=core.material.icons.npcs[s[1]]}}}c=core.replaceText(c);var a=core.canvas.ui.createPattern(core.material.ground,"repeat");var f=c.split("\n");core.clearMap("ui",0,0,416,416);var h=416-10-Math.min(416-24*(f.length+1)-65,250);var p=10,u=(416-h)/2,r=416-2*p,b=h;core.setAlpha("ui",0.85);core.fillRect("ui",p,u,r,b,"#000000");core.setAlpha("ui",1);core.strokeRect("ui",p-1,u-1,r+1,b+1,"#FFFFFF",2);core.status.boxAnimateObjs=[];core.setBoxAnimate();core.canvas.ui.textAlign="left";var d=p+25,e=u+35;if(core.isset(m)){e=u+57;if(m=="hero"||core.isset(l)){core.strokeRect("ui",p+15-1,u+40-1,34,34,"#FFD700",2);d=p+63}if(m=="hero"){core.fillText("ui",core.status.hero.name,d,u+30,"#FFD700","bold 22px Verdana");core.clearMap("ui",p+15,u+40,32,32);core.fillRect("ui",p+15,u+40,32,32,a);var j=core.material.icons.heros[core.status.hero.id]["down"];core.canvas.ui.drawImage(core.material.images.heros,j.stop*32,j.loc*32,32,32,p+15,u+40,32,32)}else{core.fillText("ui",q,d,u+30,"#FFD700","bold 22px Verdana");if(core.isset(l)){core.status.boxAnimateObjs=[];core.status.boxAnimateObjs.push({bgx:p+15,bgy:u+40,bgsize:32,image:n,x:p+15,y:u+40,icon:l});core.setBoxAnimate()}}}for(var k=0;k<f.length;k++){core.fillText("ui",f[k],d,e,"#FFFFFF","16px Verdana");e+=24}core.fillText("ui","<点击任意位置继续>",270,u+h-13,"#CCCCCC","13px Verdana")};ui.prototype.drawChoices=function(f,e){var a=core.canvas.ui.createPattern(core.material.ground,"repeat");core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",a);var t=e.length;var s=85,z=416-2*s;var l=32*(t+2),b=208+l/2;if(t%2==0){b+=16}var d=b-l+56;var p=null,u=null,q=null,o=null;if(core.isset(f)){if(f.indexOf("\t[")==0){var r=f.indexOf("]");if(r>=0){var w=f.substring(2,r);f=f.substring(r+1);var v=w.split(",");if(v.length==1){p=v[0];if(p!="hero"){var k=core.material.enemys[p];if(core.isset(k)){u=core.material.enemys[p].name;q=core.material.images.enemys;o=core.material.icons.enemys[p]}else{u=p;p="npc";q=null;o=null}}}else{p="npc";u=v[0];q=core.material.images.npcs;o=core.material.icons.npcs[v[1]]}}}f=core.replaceText(f);var c=0;if(u!=null){c+=25}c+=f.split("\n").length*20;l+=c}var y=b-l;core.fillRect("ui",s,y,z,l,a);core.strokeRect("ui",s-1,y-1,z+1,l+1,"#FFFFFF",2);if(core.isset(f)){var g=s+15,h=y+35;if(core.isset(p)){core.canvas.ui.textAlign="center";h=y+55;var x=s+z/2;if(p=="hero"||core.isset(o)){core.strokeRect("ui",s+15-1,y+30-1,34,34,"#DDDDDD",2);g=s+60;x+=22}if(p=="hero"){core.fillText("ui",core.status.hero.name,x,y+27,"#FFD700","bold 19px Verdana");core.clearMap("ui",s+15,y+30,32,32);core.fillRect("ui",s+15,y+30,32,32,a);var m=core.material.icons.heros[core.status.hero.id]["down"];core.canvas.ui.drawImage(core.material.images.heros,m.stop*32,m.loc*32,32,32,s+15,y+30,32,32)}else{core.fillText("ui",u,x,y+27,"#FFD700","bold 19px Verdana");if(core.isset(o)){core.status.boxAnimateObjs=[];core.status.boxAnimateObjs.push({bgx:s+15,bgy:y+30,bgsize:32,image:q,x:s+15,y:y+30,icon:o});core.setBoxAnimate()}}}core.canvas.ui.textAlign="left";var j=f.split("\n");for(var n=0;n<j.length;n++){core.fillText("ui",j[n],g,h,"#FFFFFF","bold 15px Verdana");h+=20}}core.canvas.ui.textAlign="center";for(var n=0;n<e.length;n++){core.fillText("ui",core.replaceText(e[n].text),208,d+32*n,"#FFFFFF","bold 17px Verdana")}return};ui.prototype.drawConfirmBox=function(k,m,h){core.status.event.id="confirmBox";core.status.event.data={yes:m,no:h};var a=core.canvas.ui.createPattern(core.material.ground,"repeat");core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",a);core.setFont("ui","bold 19px Verdana");var c=k.split("\n");var f=c.length;var g=0;for(var d in c){g=Math.max(g,core.canvas.ui.measureText(c[d]).width)}var e=Math.min(208-40-g/2,100);var l=140-(f-1)*30;var j=416-2*e,b=416-140-l;core.fillRect("ui",e,l,j,b,a);core.strokeRect("ui",e-1,l-1,j+1,b+1,"#FFFFFF",2);core.canvas.ui.textAlign="center";for(var d in c){core.fillText("ui",c[d],208,l+50+d*30,"#FFFFFF")}core.fillText("ui","确定",208-38,l+b-35,"#FFFFFF","bold 17px Verdana");core.fillText("ui","取消",208+38,l+b-35)};ui.prototype.drawSettings=function(d){if(!core.checkStatus("settings",d)){return}var a=core.canvas.ui.createPattern(core.material.ground,"repeat");core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",a);var c=97,f=64,e=416-2*c,b=416-2*f;core.fillRect("ui",c,f,e,b,a);core.strokeRect("ui",c-1,f-1,e+1,b+1,"#FFFFFF",2);core.canvas.ui.textAlign="center";core.fillText("ui","音乐: "+(core.musicStatus.soundStatus?"[ON]":"[OFF]"),208,f+56,"#FFFFFF","bold 17px Verdana");core.fillText("ui","快捷商店",208,f+88,"#FFFFFF","bold 17px Verdana");core.fillText("ui","同步存档",208,f+120,"#FFFFFF","bold 17px Verdana");core.fillText("ui","清空存档",208,f+152,"#FFFFFF","bold 17px Verdana");core.fillText("ui","重新开始",208,f+184,"#FFFFFF","bold 17px Verdana");core.fillText("ui","关于本塔",208,f+216,"#FFFFFF","bold 17px Verdana");core.fillText("ui","返回游戏",208,f+248,"#FFFFFF","bold 17px Verdana")};ui.prototype.drawQuickShop=function(g){if(core.isset(g)&&!core.checkStatus("selectShop",g)){return}core.status.event.id="selectShop";var a=core.canvas.ui.createPattern(core.material.ground,"repeat");core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",a);var j=core.status.shops,d=Object.keys(j);var f=d.length+1;if(f%2==0){f++}var e=97,k=208-32-16*f,h=416-2*e,b=416-2*k;core.fillRect("ui",e,k,h,b,a);core.strokeRect("ui",e-1,k-1,h+1,b+1,"#FFFFFF",2);core.canvas.ui.textAlign="center";for(var c=0;c<d.length;c++){core.fillText("ui",j[d[c]].textInList,208,k+56+32*c,"#FFFFFF","bold 17px Verdana")}core.fillText("ui","返回游戏",208,k+b-40)};ui.prototype.drawShop=function(id){var shop=core.status.shops[id];if(!core.status.heroStop){setTimeout(function(){core.ui.drawShop(id)},30);return}core.status.event.data=shop;core.status.event.id="shop";core.lockControl();shop.visited=true;var background=core.canvas.ui.createPattern(core.material.ground,"repeat");var times=shop.times,need=eval(shop.need);clearInterval(core.interval.tipAnimate);core.clearMap("data",0,0,416,416);core.setOpacity("data",1);core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",background);var left=97,top=64,right=416-2*left,bottom=416-2*top;core.fillRect("ui",left,top,right,bottom,background);core.strokeRect("ui",left-1,top-1,right+1,bottom+1,"#FFFFFF",2);core.canvas.ui.textAlign="center";core.fillText("ui",shop.title,left+135,top+34,"#FFFFFF","bold 19px Verdana");core.strokeRect("ui",left+15-1,top+30-1,34,34,"#DDDDDD",2);core.status.boxAnimateObjs=[];core.status.boxAnimateObjs.push({bgx:left+15,bgy:top+30,bgsize:32,image:core.material.images.npcs,x:left+15,y:top+30,icon:core.material.icons.npcs[shop.icon]});core.setBoxAnimate();core.canvas.ui.textAlign="left";if(need<0){need="若干"}var use=shop.use=="experience"?"经验":"金币";core.fillText("ui","勇敢的武士啊,给我"+need,left+60,top+65,"#FFFFFF","bold 14px Verdana");core.fillText("ui",use+"你就可以:",left+60,top+83);core.canvas.ui.textAlign="center";for(var i=0;i<shop.choices.length;i++){var choice=shop.choices[i];var text=choice.text;if(core.isset(choice.need)){text+=""+eval(choice.need)+use+""}core.fillText("ui",text,208,top+120+32*i,"#FFFFFF","bold 17px Verdana")}core.fillText("ui","退出商店",208,top+248)};ui.prototype.drawWaiting=function(e){core.lockControl();core.status.event.id="waiting";var a=core.canvas.ui.createPattern(core.material.ground,"repeat");core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",a);var c=97,f=208-32-16,d=416-2*c,b=416-2*f;core.fillRect("ui",c,f,d,b,a);core.strokeRect("ui",c-1,f-1,d+1,b+1,"#FFFFFF",2);core.canvas.ui.textAlign="center";core.fillText("ui",e,208,f+56,"#FFFFFF","bold 17px Verdana")};ui.prototype.drawSyncSave=function(){core.status.event.id="syncSave";var a=core.canvas.ui.createPattern(core.material.ground,"repeat");core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",a);var c=97,e=208-32-16*3,d=416-2*c,b=416-2*e;core.fillRect("ui",c,e,d,b,a);core.strokeRect("ui",c-1,e-1,d+1,b+1,"#FFFFFF",2);core.canvas.ui.textAlign="center";core.fillText("ui","同步存档到服务器",208,e+56,"#FFFFFF","bold 17px Verdana");core.fillText("ui","从服务器加载存档",208,e+56+32,"#FFFFFF","bold 17px Verdana");core.fillText("ui","返回游戏",208,e+b-40)};ui.prototype.drawPagination=function(b,c){core.setFont("ui","bold 15px Verdana");core.setFillStyle("ui","#DDDDDD");var a=core.canvas.ui.measureText(b+" / "+b).width;core.canvas.ui.textAlign="left";core.fillText("ui",b+" / "+c,(416-a)/2,403);core.canvas.ui.textAlign="center";if(b>1){core.fillText("ui","上一页",208-80,403)}if(b<c){core.fillText("ui","下一页",208+80,403)}core.fillText("ui","返回游戏",370,403)};ui.prototype.drawEnemyBook=function(k){var g=core.enemys.getCurrentEnemys();var a=core.canvas.ui.createPattern(core.material.ground,"repeat");clearInterval(core.interval.tipAnimate);core.clearMap("data",0,0,416,416);core.setOpacity("data",1);core.clearMap("ui",0,0,416,416);core.setAlpha("ui",1);core.setFillStyle("ui",a);core.fillRect("ui",0,0,416,416);core.setAlpha("ui",0.6);core.setFillStyle("ui","#000000");core.fillRect("ui",0,0,416,416);core.setAlpha("ui",1);core.canvas.ui.textAlign="left";core.setFont("ui","bold 15px Verdana");if(g.length==0){core.fillText("ui","本层无怪物",83,222,"#999999","bold 50px Verdana");core.canvas.ui.textAlign="center";core.fillText("ui","返回游戏",370,403,"#DDDDDD","bold 15px Verdana");return}var l=6;var n=parseInt((g.length-1)/l)+1;if(k<1){k=1}if(k>n){k=n}core.status.event.data=k;var m=(k-1)*l,e=Math.min(k*l,g.length);g=g.slice(m,e);core.status.boxAnimateObjs=[];for(var h=0;h<g.length;h++){var f=g[h];core.strokeRect("ui",22,62*h+22,42,42,"#DDDDDD",2);core.status.boxAnimateObjs.push({bgx:22,bgy:62*h+22,bgsize:42,image:core.material.images.enemys,x:27,y:62*h+27,icon:core.material.icons.enemys[f.id]});core.canvas.ui.textAlign="center";core.fillText("ui",f.name,115,62*h+47,"#DDDDDD","bold 17px Verdana");core.canvas.ui.textAlign="left";core.fillText("ui","生命",165,62*h+32,"#DDDDDD","13px Verdana");core.fillText("ui",f.hp,195,62*h+32,"#DDDDDD","bold 13px Verdana");core.fillText("ui","攻击",255,62*h+32,"#DDDDDD","13px Verdana");core.fillText("ui",f.atk,285,62*h+32,"#DDDDDD","bold 13px Verdana");core.fillText("ui","防御",335,62*h+32,"#DDDDDD","13px Verdana");core.fillText("ui",f.def,365,62*h+32,"#DDDDDD","bold 13px Verdana");core.fillText("ui","金币",165,62*h+50,"#DDDDDD","13px Verdana");core.fillText("ui",f.money,195,62*h+50,"#DDDDDD","bold 13px Verdana");var d=326;if(core.flags.enableExperience){core.canvas.ui.textAlign="left";core.fillText("ui","经验",255,62*h+50,"#DDDDDD","13px Verdana");core.fillText("ui",f.experience,285,62*h+50,"#DDDDDD","bold 13px Verdana");d=361}core.canvas.ui.textAlign="center";var c=f.damage;var b="#FFFF00";if(c>=core.status.hero.hp){b="#FF0000"}if(c==0){b="#00FF00"}if(c>=999999999){c="无法战斗"}var j=core.canvas.ui.measureText(c).width;core.fillText("ui",c,d,62*h+50,b,"bold 13px Verdana");core.canvas.ui.textAlign="left";if(f.special!=""){core.setFont("data","bold 12px Verdana");var j=core.canvas.data.measureText(f.special).width;core.setAlpha("data","0.4");core.fillRect("data",64-4-j,62*h+46,j+4,17,"#000000");core.setAlpha("data","1");core.fillText("data",f.special,64-2-j,62*h+59,"#FF6A6A","bold 12px Verdana")}core.fillText("ui","临界",165,62*h+68,"#DDDDDD","13px Verdana");core.fillText("ui",f.critical,195,62*h+68,"#DDDDDD","bold 13px Verdana");core.fillText("ui","减伤",255,62*h+68,"#DDDDDD","13px Verdana");core.fillText("ui",f.criticalDamage,285,62*h+68,"#DDDDDD","bold 13px Verdana");core.fillText("ui","1防",335,62*h+68,"#DDDDDD","13px Verdana");core.fillText("ui",f.defDamage,365,62*h+68,"#DDDDDD","bold 13px Verdana")}core.setBoxAnimate();this.drawPagination(k,n)};ui.prototype.drawFly=function(b){if(b<0){b=0}if(b>=core.status.hero.flyRange.length){b=core.status.hero.flyRange.length-1}core.status.event.data=b;var a=core.status.hero.flyRange[b];var c=core.status.maps[a].title;core.clearMap("ui",0,0,416,416);core.setAlpha("ui",0.85);core.fillRect("ui",0,0,416,416,"#000000");core.setAlpha("ui",1);core.canvas.ui.textAlign="center";core.fillText("ui","楼层跳跃",208,60,"#FFFFFF","bold 28px Verdana");core.fillText("ui","返回游戏",208,403,"#FFFFFF","bold 15px Verdana");core.fillText("ui",c,356,247,"#FFFFFF","bold 19px Verdana");if(b<core.status.hero.flyRange.length-1){core.fillText("ui","▲",356,247-64,"#FFFFFF","17px Verdana")}if(b>0){core.fillText("ui","▼",356,247+64,"#FFFFFF","17px Verdana")}core.strokeRect("ui",20,100,273,273,"#FFFFFF",2);this.drawThumbnail("ui",core.status.maps[a].blocks,20,100,273)};ui.prototype.drawToolbox=function(g){if(!core.hasItem(g)){g=null}core.status.event.data=g;core.clearMap("ui",0,0,416,416);core.setAlpha("ui",0.85);core.fillRect("ui",0,0,416,416,"#000000");core.setAlpha("ui",1);core.setFillStyle("ui","#DDDDDD");core.setStrokeStyle("ui","#DDDDDD");core.canvas.ui.lineWidth=2;core.canvas.ui.strokeWidth=2;core.canvas.ui.beginPath();core.canvas.ui.moveTo(0,130);core.canvas.ui.lineTo(416,130);core.canvas.ui.stroke();core.canvas.ui.beginPath();core.canvas.ui.moveTo(0,129);core.canvas.ui.lineTo(0,105);core.canvas.ui.lineTo(72,105);core.canvas.ui.lineTo(102,129);core.canvas.ui.fill();core.canvas.ui.beginPath();core.canvas.ui.moveTo(0,290);core.canvas.ui.lineTo(416,290);core.canvas.ui.stroke();core.canvas.ui.beginPath();core.canvas.ui.moveTo(0,289);core.canvas.ui.lineTo(0,265);core.canvas.ui.lineTo(72,265);core.canvas.ui.lineTo(102,289);core.canvas.ui.fill();core.canvas.ui.textAlign="left";core.fillText("ui","消耗道具",5,124,"#333333","bold 16px Verdana");core.fillText("ui","永久道具",5,284);if(core.isset(g)){var f=core.material.items[g];core.fillText("ui",f.name,10,32,"#FFD700","bold 20px Verdana");core.fillText("ui",f.text,10,62,"#FFFFFF","17px Verdana");core.fillText("ui","<继续点击该道具即可进行使用>",10,89,"#CCCCCC","14px Verdana")}core.canvas.ui.textAlign="right";var e=core.material.images.items;var j=Object.keys(core.status.hero.items.tools).sort();for(var c=0;c<j.length;c++){var h=j[c];var d=core.material.icons.items[h];if(c<6){core.canvas.ui.drawImage(e,0,d*32,32,32,16*(4*c+1)+5,144+5,32,32);core.fillText("ui",core.itemCount(h),16*(4*c+1)+40,144+38,"#FFFFFF","bold 14px Verdana");if(g==h){core.strokeRect("ui",16*(4*c+1)+1,144+1,40,40,"#FFD700")}}else{core.canvas.ui.drawImage(e,0,d*32,32,32,16*(4*(c-6)+1)+5,144+64+5,32,32);core.fillText("ui",core.itemCount(h),16*(4*(c-6)+1)+40,144+64+38,"#FFFFFF","bold 14px Verdana");if(g==h){core.strokeRect("ui",16*(4*(c-6)+1)+1,144+64+1,40,40,"#FFD700")}}}var b=Object.keys(core.status.hero.items.constants).sort();for(var c=0;c<b.length;c++){var a=b[c];var d=core.material.icons.items[a];if(c<6){core.canvas.ui.drawImage(e,0,d*32,32,32,16*(4*c+1)+5,304+5,32,32);if(g==a){core.strokeRect("ui",16*(4*c+1)+1,304+1,40,40,"#FFD700")}}else{core.canvas.ui.drawImage(e,0,d*32,32,32,16*(4*(c-6)+1)+5,304+64+5,32,32);if(g==a){core.strokeRect("ui",16*(4*(c-6)+1)+1,304+64+1,40,40,"#FFD700")}}}core.canvas.ui.textAlign="center";core.fillText("ui","返回游戏",370,403,"#DDDDDD","bold 15px Verdana")};ui.prototype.drawSLPanel=function(e){if(e<0){e=0}if(e>=30){e=29}core.status.event.data=e;core.status.savePage=e;core.clearMap("ui",0,0,416,416);core.setAlpha("ui",0.85);core.fillRect("ui",0,0,416,416,"#000000");core.setAlpha("ui",1);core.canvas.ui.textAlign="center";var g=416/6,f=117;var d=core.status.event.id=="save"?"存档":"读档";for(var b=0;b<6;b++){var c=6*e+b+1;var a=core.getLocalStorage("save"+c,null);if(b<3){core.fillText("ui",d+c,(2*b+1)*g,35,"#FFFFFF","bold 17px Verdana");core.strokeRect("ui",(2*b+1)*g-f/2,50,f,f,"#FFFFFF",2);if(core.isset(a)&&core.isset(a.floorId)){this.drawThumbnail("ui",core.maps.load(a.maps,a.floorId).blocks,(2*b+1)*g-f/2,50,f,a.hero.loc,a.hero.id);core.fillText("ui",core.formatDate(new Date(a.time)),(2*b+1)*g,65+f,"#FFFFFF","10px Verdana")}else{core.fillRect("ui",(2*b+1)*g-f/2,50,f,f,"#333333",2);core.fillText("ui","空",(2*b+1)*g,117,"#FFFFFF","bold 30px Verdana")}}else{core.fillText("ui",d+c,(2*b-5)*g,230,"#FFFFFF","bold 17px Verdana");core.strokeRect("ui",(2*b-5)*g-f/2,245,f,f,"#FFFFFF",2);if(core.isset(a)&&core.isset(a.floorId)){this.drawThumbnail("ui",core.maps.load(a.maps,a.floorId).blocks,(2*b-5)*g-f/2,245,f,a.hero.loc,a.hero.id);core.fillText("ui",core.formatDate(new Date(a.time)),(2*b-5)*g,260+f,"#FFFFFF","10px Verdana")}else{core.fillRect("ui",(2*b-5)*g-f/2,245,f,f,"#333333",2);core.fillText("ui","空",(2*b-5)*g,245+70,"#FFFFFF","bold 30px Verdana")}}}this.drawPagination(e+1,30)};ui.prototype.drawThumbnail=function(g,f,r,s,q,l,k){core.clearMap(g,r,s,q,q);var p=q/13;for(var m=0;m<13;m++){for(var o=0;o<13;o++){var d=core.material.icons.terrains.ground;var e=core.material.images.terrains;core.canvas[g].drawImage(e,0,d*32,32,32,r+m*p,s+o*p,p,p)}}for(var a in f){var c=f[a];if(core.isset(c.event)&&!(core.isset(c.enable)&&!c.enable)){var m=c.x,o=c.y;var d=core.material.icons[c.event.cls][c.event.id];var e=core.material.images[c.event.cls];core.canvas[g].drawImage(e,0,d*32,32,32,r+m*p,s+o*p,p,p)}}if(core.isset(l)){var n=core.isset(k)?k:core.status.hero.id;var h=core.material.icons.heros[n][l.direction];core.canvas[g].drawImage(core.material.images.heros,h.stop*32,h.loc*32,32,32,r+p*l.x,s+p*l.y,p,p)}};ui.prototype.drawAbout=function(){if(!core.isPlaying()){core.status.event={id:null,data:null};core.dom.startPanel.style.display="none"}core.lockControl();core.status.event.id="about";core.clearMap("ui",0,0,416,416);var b=48,f=36,d=416-2*b,a=416-2*f;core.setAlpha("ui",0.85);core.fillRect("ui",b,f,d,a,"#000000");core.setAlpha("ui",1);core.strokeRect("ui",b-1,f-1,d+1,a+1,"#FFFFFF",2);var e=b+24;core.canvas.ui.textAlign="left";core.fillText("ui","异空间",e,f+35,"#FFD700","bold 22px Verdana");core.fillText("ui","HTML5复刻版",e+75,f+37,"#DDDDDD","bold 15px Verdana");core.fillText("ui","作者: 艾之葵",e,f+80,"#FFFFFF","bold 17px Verdana");core.fillText("ui","原作: ss433_2",e,f+112,"#FFFFFF","bold 17px Verdana");core.fillText("ui","制作工具: WebStorm",e,f+144,"#FFFFFF","bold 17px Verdana");core.fillText("ui","测试平台: Chrome/微信/iOS",e,f+176,"#FFFFFF","bold 17px Verdana");core.fillText("ui","特别鸣谢: ss433_2",e,f+208);var c=core.canvas.ui.measureText("特别鸣谢: ").width;core.fillText("ui","iEcho",e+c,f+240);core.fillText("ui","打Dota的喵",e+c,f+272);core.fillText("ui","HTML5魔塔交流群539113091",e,f+304)};