まずアイテム名に制御文字を使えるようにしたのはアイコンを並べることでアイテム名を横長の絵にしたかったからなのですが、現状アイコンとアイコンの間に隙間ができてしまっていて一枚の絵になってくれていません。
そこで制御文字の\I[n]が並んでいるときのみ文字間隔を0にする方法などありましたら教えていただきたいです。
コード: 全て選択
(function() {
Window_Base.prototype.drawItemName = function(item, x, y, width) {
width = width || 312;
if (item) {
var iconBoxWidth = Window_Base._iconWidth + 4;
this.resetTextColor();
this.drawIcon(item.iconIndex, x + 2, y + 2);
this.drawTextEx(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
}
};
})();
コード: 全て選択
(function() {
var pluginName = 'BB_GoldIcon';
Window_Base.prototype.drawCurrencyValue = function(value, unit, x, y, width) {
var unitWidth = Math.min(80, this.textWidth(unit));
this.resetTextColor();
this.drawText(value, x, y, width - 36 - 6, 'right');
this.changeTextColor(this.systemColor());
this.drawTextEx(unit, x + width - 36, y, unitWidth, 'right');
};
})();
そしてこれら以外にも、もっとこうした方がいいというような場所があれば教えてください。
よろしくお願いします。