10 floors fly
This commit is contained in:
1 parent
735545e0aa
commit
9c01d0fefb
4 files changed
+18
-6
No files matched your search
+6
-2
@@ -931,6 +931,8 @@ actions.prototype.clickBookDetail = function () {
|
||||
actions.prototype.clickFly = function(x,y) {
|
||||
if ((x==10 || x==11) && y==9) core.ui.drawFly(core.status.event.data-1);
|
||||
if ((x==10 || x==11) && y==5) core.ui.drawFly(core.status.event.data+1);
|
||||
if ((x==10 || x==11) && y==10) core.ui.drawFly(core.status.event.data-10);
|
||||
if ((x==10 || x==11) && y==4) core.ui.drawFly(core.status.event.data+10);
|
||||
if (x>=5 && x<=7 && y==12) core.ui.closePanel();
|
||||
if (x>=0 && x<=9 && y>=3 && y<=11) {
|
||||
var index=core.status.hero.flyRange.indexOf(core.status.floorId);
|
||||
@@ -948,8 +950,10 @@ actions.prototype.clickFly = function(x,y) {
|
||||
|
||||
////// 楼层传送器界面时,按下某个键的操作 //////
|
||||
actions.prototype.keyDownFly = function (keycode) {
|
||||
if (keycode==37 || keycode==38) core.ui.drawFly(core.status.event.data+1);
|
||||
else if (keycode==39 || keycode==40) core.ui.drawFly(core.status.event.data-1);
|
||||
if (keycode==37) core.ui.drawFly(core.status.event.data-10);
|
||||
else if ( keycode==38) core.ui.drawFly(core.status.event.data+1);
|
||||
else if (keycode==39) core.ui.drawFly(core.status.event.data+10);
|
||||
else if (keycode==40) core.ui.drawFly(core.status.event.data-1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+10
-4
@@ -1419,10 +1419,16 @@ ui.prototype.drawFly = function(page) {
|
||||
core.fillText('ui', '楼层跳跃', 208, 60, '#FFFFFF', "bold 28px Verdana");
|
||||
core.fillText('ui', '返回游戏', 208, 403, '#FFFFFF', "bold 15px Verdana")
|
||||
core.fillText('ui', title, 356, 247, '#FFFFFF', "bold 19px Verdana");
|
||||
if (page<core.status.hero.flyRange.length-1)
|
||||
core.fillText('ui', '▲', 356, 247-64, '#FFFFFF', "17px Verdana");
|
||||
if (page>0)
|
||||
core.fillText('ui', '▼', 356, 247+64, '#FFFFFF', "17px Verdana");
|
||||
if (page<core.status.hero.flyRange.length-1) {
|
||||
core.fillText('ui', '▲', 356, 247 - 64, '#FFFFFF', "17px Verdana");
|
||||
core.fillText('ui', '▲', 356, 247 - 96, '#FFFFFF', "17px Verdana");
|
||||
core.fillText('ui', '▲', 356, 247 - 96 - 7, '#FFFFFF', "17px Verdana");
|
||||
}
|
||||
if (page>0) {
|
||||
core.fillText('ui', '▼', 356, 247 + 64, '#FFFFFF', "17px Verdana");
|
||||
core.fillText('ui', '▼', 356, 247 + 96, '#FFFFFF', "17px Verdana");
|
||||
core.fillText('ui', '▼', 356, 247 + 96 + 7, '#FFFFFF', "17px Verdana");
|
||||
}
|
||||
core.strokeRect('ui', 20, 100, 273, 273, '#FFFFFF', 2);
|
||||
this.drawThumbnail(floorId, 'ui', core.status.maps[floorId].blocks, 20, 100, 273);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user