Bläddra i källkod

removed dead code

tags/v0.1.10^2
Big Bad Waffle 6 år sedan
förälder
incheckning
97064369fa
2 ändrade filer med 0 tillägg och 55 borttagningar
  1. +0
    -39
      src/client/js/rendering/renderer.js
  2. +0
    -16
      src/client/ui/templates/messages/messages.js

+ 0
- 39
src/client/js/rendering/renderer.js Visa fil

@@ -687,45 +687,6 @@ define([
obj.sprite.position.y = obj.y;
obj.sprite.width = obj.w;
obj.sprite.height = obj.h;
return;

var points = obj.sprite.graphicsData[0].shape.points;
if (!points)
return;

graphics.clear();

graphics.beginFill(obj.color || '0x48edff', fillAlpha);

if (obj.strokeColor)
graphics.lineStyle(scaleMult, obj.strokeColor);

graphics.drawRect(0, 0, obj.w, obj.h);

/*graphics.moveTo(obj.x, obj.y);
graphics.lineTo(obj.x + obj.w, obj.y);
graphics.lineTo(obj.x + obj.w, obj.y + obj.h);
graphics.lineTo(obj.x, obj.y + obj.h);
graphics.lineTo(obj.x, obj.y);*/

graphics.endFill();

graphics.position.x = obj.x;
graphics.position.y = obj.y;

/*obj.sprite.dirty = true;
obj.sprite.clearDirty = true;

points[0] = obj.x;
points[1] = obj.y;
points[2] = obj.x + obj.w;
points[3] = obj.y;
points[4] = obj.x + obj.w;
points[5] = obj.y + obj.h;
points[6] = obj.x;
points[7] = obj.y + obj.h;
points[8] = obj.x;
points[9] = obj.y;*/
},

buildObject: function (obj) {


+ 0
- 16
src/client/ui/templates/messages/messages.js Visa fil

@@ -179,22 +179,6 @@ define([
events.emit('onShowItemTooltip', item, ttPos, null, true);
},

update: function () {
return;
var maxTtl = this.maxTtl;

for (var i = 0; i < this.messages.length; i++) {
var m = this.messages[i];

if (m.ttl > 0) {
m.ttl--;

var opacity = ~~(m.ttl / maxTtl * 10) / 10;
m.el[0].style.opacity = opacity;
}
}
},

toggle: function (show, isFake) {
if ((isFake) && (this.hoverFilter))
return;


Laddar…
Avbryt
Spara