소스 검색

Merge branch '129-tab-target-movement-pause' into 'v0.1.4'

Fixes #129

See merge request !122
tags/v0.1.4^2
Big Bad Waffle 7 년 전
부모
커밋
b823464fb4
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. +7
    -2
      src/client/js/components/spellbook.js

+ 7
- 2
src/client/js/components/spellbook.js 파일 보기

@@ -28,7 +28,7 @@ define([
renderRange: null,

reticleSprite: null,
tarpSprite: null,
targetSprite: null,

shiftDown: false,

@@ -141,7 +141,12 @@ define([
},

tabTarget: function() {
this.onMouseDown(null, objects.getClosest(window.player.x, window.player.y, 10, this.shiftDown, this.target));
var closest = objects.getClosest(window.player.x, window.player.y, 10, this.shiftDown, this.target);

this.target = closest;
this.targetSprite.visible = !!this.target;

events.emit('onSetTarget', this.target, null);
},

build: function(destroy) {


불러오는 중...
취소
저장