Hi, i have a new challenge.
Here is the code that determines the vertical spacing off the items for sale in shop_scene? Can it be altered only in BuyWindow?
It can. Search for Window_ShopBuy in rpg_windows.js. And of course Scene_Shop in rpg_scenes.
Window_ShopBuy.prototype.drawItem = function(index) {
var item = this._data[index];
var rect = this.itemRect(index);
var priceWidth = 96;
rect.width -= this.textPadding();
this.changePaintOpacity(this.isEnabled(item));
this.drawItemName(item, rect.x+10000, rect.y, rect.width - priceWidth);
this.drawText(this.price(item), rect.x + rect.width - priceWidth,
rect.y, priceWidth, 'right');
this.changePaintOpacity(true);
};
sorry but i don't know what im doing... im i even closer whit this "+1000"
PS: in Scene_Shop i didn't notice any place to alter this value
you're one level too deep.
find the instruction that calls drawItem, which is called from inside a loop, which updates the origin point at every loop.
drawItem merely draws wherever the instruction that calls *it* tells it to draw.