Насчет Sprite не понял.
Нашел вот такой код в базовом классе
Я могу просто вызвать Window_Base.prototype.drawGauge(10, 10, 600, 0.5, 1, 2); ?Код:Window_Base.prototype.drawGauge = function(x, y, width, rate, color1, color2) { var fillW = Math.floor(width * rate); var gaugeY = y + this.lineHeight() - 8; this.contents.fillRect(x, gaugeY, width, 6, this.gaugeBackColor()); this.contents.gradientFillRect(x, gaugeY, fillW, 6, color1, color2); }
Социальные закладки