Hi all, I've made a plugin that creates selectables from an array.
Everything works great until the refresh function is called more than once.
There is a visual bug where the selectables' background keeps getting darker every time the refresh function is called
The refresh code is this:
The text is cleaned but the background of the selectable seem to remain and every time drawAllItems is called a new background is stacked on the old one.
I tried to use clear in various functions but no success for now. Any idea?
Everything works great until the refresh function is called more than once.
There is a visual bug where the selectables' background keeps getting darker every time the refresh function is called
The refresh code is this:
JavaScript:
Window_StatSkill.prototype.refresh = function() {
this.contents.clear();
this.drawAllItems();
};
The text is cleaned but the background of the selectable seem to remain and every time drawAllItems is called a new background is stacked on the old one.
I tried to use clear in various functions but no success for now. Any idea?