I've been trying to modify the faded box that shows behind all selectable items, but I can't figure out where it's made or called. I don't really want it to be a faded box like it is by default.
There was a script I found for RMMV that was meant to change text color if it's selected, and it's pretty broken so it just deletes the box, but I was trying to see if I could just modify the box. The script isn't mine.
I modified the changeTextColor and var rect to be the right values, so I know that was broken at first. But I found that this script also breaks and deletes the boxes behind text, but I don't know how it does that.
There was a script I found for RMMV that was meant to change text color if it's selected, and it's pretty broken so it just deletes the box, but I was trying to see if I could just modify the box. The script isn't mine.
Window_Command.prototype.drawItemColored = function(index) {
var rect = this.itemRectForText(index);
var align = this.itemTextAlign();
if(this.currentData()) {
this.changeTextColor(this.textColor(Gamefall.selectionColor));
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawText(this.commandName(index), rect.x, rect.y, rect.width, align);
}
};
Window_Command.prototype.update = function() {
Window_Selectable.prototype.update.call(this);
this.drawAllItems();
this.drawItemColored(this.index());
};
Window_Command.prototype.drawAllItems = function() {
var topIndex = this.topIndex();
for (var i = 0; i < this.maxPageItems(); i++) {
var index = topIndex + i;
if (index < this.maxItems()) {
this.drawItem(index);
}
}
};I modified the changeTextColor and var rect to be the right values, so I know that was broken at first. But I found that this script also breaks and deletes the boxes behind text, but I don't know how it does that.