Working on adding a extra window in the Shop Scene so i can show of the currencies i use in YanFly's Extra currency plugin so i can actually see all currencies i have.
After couple of tutorials on how to do stuff and get everything in place i came to a point where it shows all i want it to.
However when i buy/sell stuff The Gold Window does get update butthis one does not.
This is what i currently got:
I asume this issue lise that i need to add a refresh option somewhere in the Shop Scene but even then im not sure where.
If someone can help me with that id be very grateful.
Edit: Removed all things that wernt needed.
Edit 2: Can be considered solved.
Didnt figure it out but came across a alternative solution that i am content with.
After couple of tutorials on how to do stuff and get everything in place i came to a point where it shows all i want it to.
However when i buy/sell stuff The Gold Window does get update butthis one does not.
This is what i currently got:
Scene_Shop.prototype.createShopVarWindow = function() {
this._Shop_Var = new Shop_Var(490, 464);
this.addWindow(this._Shop_Var);
}
function Shop_Var() {
this.initialize.apply(this, arguments);
};
Shop_Var.prototype = Object.create(Window_Base.prototype);
Shop_Var.prototype.constructor = Shop_Var;
Shop_Var.prototype.initialize = function(x, y) {
Window_Base.prototype.initialize.call(this, x , y, 326, 160);
this.refresh();
};
Shop_Var.prototype.refresh = function() {
this.contents.clear();
this.drawIcon(914, 252, 0);
this.drawIcon(925, 252, 30);
this.drawIcon(912, 252, 60);
this.drawIcon(313, 252, 90);
this.drawText($gameVariables.value(1), Window_Base._iconWidth + 8, 0, 246 - (Window_Base._iconWidth + 8), 'right')
this.drawText($gameVariables.value(2), Window_Base._iconWidth + 8, 30, 246 - (Window_Base._iconWidth + 8), 'right')
this.drawText($gameVariables.value(3), Window_Base._iconWidth + 8, 60, 246 - (Window_Base._iconWidth + 8), 'right')
this.drawText($gameVariables.value(4), Window_Base._iconWidth + 8, 90, 246 - (Window_Base._iconWidth + 8), 'right')
};
Shop_Var.prototype.windowWidth = function() {
return 100;
this._Shop_Var = new Shop_Var(490, 464);
this.addWindow(this._Shop_Var);
}
function Shop_Var() {
this.initialize.apply(this, arguments);
};
Shop_Var.prototype = Object.create(Window_Base.prototype);
Shop_Var.prototype.constructor = Shop_Var;
Shop_Var.prototype.initialize = function(x, y) {
Window_Base.prototype.initialize.call(this, x , y, 326, 160);
this.refresh();
};
Shop_Var.prototype.refresh = function() {
this.contents.clear();
this.drawIcon(914, 252, 0);
this.drawIcon(925, 252, 30);
this.drawIcon(912, 252, 60);
this.drawIcon(313, 252, 90);
this.drawText($gameVariables.value(1), Window_Base._iconWidth + 8, 0, 246 - (Window_Base._iconWidth + 8), 'right')
this.drawText($gameVariables.value(2), Window_Base._iconWidth + 8, 30, 246 - (Window_Base._iconWidth + 8), 'right')
this.drawText($gameVariables.value(3), Window_Base._iconWidth + 8, 60, 246 - (Window_Base._iconWidth + 8), 'right')
this.drawText($gameVariables.value(4), Window_Base._iconWidth + 8, 90, 246 - (Window_Base._iconWidth + 8), 'right')
};
Shop_Var.prototype.windowWidth = function() {
return 100;
I asume this issue lise that i need to add a refresh option somewhere in the Shop Scene but even then im not sure where.
If someone can help me with that id be very grateful.
Edit: Removed all things that wernt needed.
Edit 2: Can be considered solved.
Didnt figure it out but came across a alternative solution that i am content with.