Sfoglia il codice sorgente

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 anni fa
parent
commit
b823464fb4
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. +7
    -2
      src/client/js/components/spellbook.js

+ 7
- 2
src/client/js/components/spellbook.js Vedi File

@@ -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) {


Caricamento…
Annulla
Salva