MV Change color of specific text in MrTs Simple Save Load Menu plugin

Hey all, I'm using MrTs_SimpleSaveLoadMenu and I'm looking to change the text color of the gold and time played that's displayed on the save file. Typically I would use, about drawText, this.textColor(3) or this.changeTextColor(this.textColor(3), depending on what worked, but in this case I can't figure it out as the code is streamlined well and uses data returned from an array or something like that. I've tried a few things out based on my limited knowledge and from what I've seen elsewhere in a trial-and-error kind of way, but far nada.

Help is appreciated! Thanks!
the plug in gives you options about what you want to display on the file select. Luckily you know on what line you've set "gold" and "time" to be displayed.

So on line 158 of the plug in, check if i+1 is whatever line you set gold or time to. then do your this.changeTextColor(this.textColor(3) before the this.drawLine(info, rect.x, y2, rect.width, i+1)

Does that help? If not I'll explicitly write the code you need but it sounds like you know what you are doing.
Thanks for the reply! That does help in getting me to understand what to check, but the syntax is a bit beyond my understanding.
I tried this, plus a few other attempts, but it returned ineffective:

Code:
for (var i = 0; i < paramLineIcons.length; i++) {
            if (i+1 = paramLine1) {
                this.changeTextColor(this.textColor(3))
            } else {
                this.normalColor();
            }
            this.drawLine(info, rect.x, y2, rect.width, i+1);
            y2 += lineHeight;
        }

This doesn't return any errors, but it's clearly not correct, haha.
you gotta use if (i+1 == paramLine1) { not if (i+1 = paramLine1) {
you gotta use if (i+1 == paramLine1) { not if (i+1 = paramLine1) {
Hmmm... that doesn't seem to work either. Using paramLine1 seems to make sense, but perhaps it's not the right reference? I'll keep working on it.

EDIT:
If there's a way to make the changes at this level, then that would be even better because then I can control the icon height according to the line. I have it set up so the font color affects what font is being used, and the font I use for numbers sits a little lower.

Code:
Window_SavefileList.prototype.drawLine = function(info, x, y, width, line) {
        var txt = info["line"+line];
        this.drawText(txt, x, y, width, 'right');
        this.drawIcon(paramLineIcons[line-1], x + width - this.textWidth(txt)-Window_Base._iconWidth-4, y); 
    };
I think if I can check if txt = specific info, like whether it's the gold or time info, then I can essentially apply the same textColor change as the other method we tried. I'm just not sure what to check specifically.
oh sorry no paramLine1 isn't in scope here so its undefined.

use the actual line number. like 3. You can check it in Window_SavefileList.prototype.drawLine instead if you want.

so like
JavaScript:
Window_SavefileList.prototype.drawLine = function(info, x, y, width, line) {
        var txt = info["line"+line];
        var yOffset = 0;
        if (line == 3) {
            this.changeTextColor(this.textColor(3));
            yOffset = 4;
        } else {
            this.normalColor();
            yOffset = 0;
        }
        this.drawText(txt, x, y, width, 'right');
        this.drawIcon(paramLineIcons[line-1], x + width - this.textWidth(txt)-Window_Base._iconWidth-4, y + yOffset);
    };
oh sorry no paramLine1 isn't in scope here so its undefined.

use the actual line number. like 3. You can check it in Window_SavefileList.prototype.drawLine instead if you want.

so like
JavaScript:
Window_SavefileList.prototype.drawLine = function(info, x, y, width, line) {
        var txt = info["line"+line];
        var yOffset = 0;
        if (line == 3) {
            this.changeTextColor(this.textColor(3));
            yOffset = 4;
        } else {
            this.normalColor();
            yOffset = 0;
        }
        this.drawText(txt, x, y, width, 'right');
        this.drawIcon(paramLineIcons[line-1], x + width - this.textWidth(txt)-Window_Base._iconWidth-4, y + yOffset);
    };
Right on! That works! I didn't know how to read txt =info["line"+line];. I assumed I'd have check txt = info["line"+line]; against itself but replacing either "line" or line with something, but not that I could just check line against the number of the line, haha.

Thanks for the assistance, @MechPen ! I appreciate it!
info["line"+line] turns into info["line3"], or whatever line is. It's a little odd; in JavaScript, info.line3 and info["line3"] are both ways to get a property on an object.

You can see here how the object property is set.

Glad you were able to get it working; keep learning and you'll be writing your own plugins soon enough.

Original thread: https://forums.rpgmakerweb.com/threads/change-color-of-specific-text-in-mrts-simple-save-load-menu-plugin.170560/