Manipulated Game Menu Text

I did manipulate the game menu a bit. I changed the Window_MenuStatus and other stuff too.
After doing so suddenly a problem came out. The picture im gonna show explains it best:

testjd9xnlizo6.png


The number and name on the MenuStatus looks different then on the CommandWindow or GoldWindow.
I tried different things out but nothing did work.
Here is my code:

Code:
(function() {   

    //Status Fenster Gesamt Position
    Window_MenuStatus.prototype.windowWidth = function() {
    return Graphics.boxWidth - 725;
    };
    Window_MenuStatus.prototype.windowHeight = function() {
    return Graphics.boxHeight - 250;
    };
        
    //Status Fenster einzel Position
    Window_MenuStatus.prototype.drawItemStatus = function(index) {
    
    var rect = this.itemRect(0);
    var x = rect.x;
    var y = rect.y;
    var width = rect.width - x - this.textPadding();
;
        
    this.drawActorName($gameParty.members()[0], 60, 10);

    if ($gameParty.members()[0]._name == "Amelia") {
    
    this.drawText($gameVariables.value(1), x, y, width, 'center');
        
    } else if ($gameParty.members()[1]._name == "Amelia") {
    
    this.drawText($gameVariables.value(1), x, y + 150, width, 'center');

    }
};

})();

Anyone gotn idea?
Are you getting any errors in the console window?
No it works perfectly fine.
And this might sound like a silly question, but if you are using any, have you disabled any plugins like yanflys message core or anything that redraws message boxes?

this.drawActorName($gameParty.members()[0], 60, 10);

if ($gameParty.members()[0]._name == "Amelia") {

this.drawText($gameVariables.value(1), x, y, width, 'center');

} else if ($gameParty.members()[1]._name == "Amelia") {

this.drawText($gameVariables.value(1), x, y + 150, width, 'center');

This looks a bit off to me
The only plugin i installed beside of mine is YEP_CoreEngine. The plugins i wrote are one for the custom cursor and another one for a custom item menu and to adjust windows in menu. Something in the code is missing but i cant figure out what. Also when im change the formation of the members the number and name displays back normal aggain.
see how your branches are both the same?
== "Amelia") {

shouldnt one be different than the other to draw the scene properly
($gameParty.members()[0]._name == "Amelia") , check here if Amelia is in the first slot of the array.
($gameParty.members()[1]._name == "Amelia") , check here if Amelia is in the second slot of the array.

Since im using my own variables in the StatusMenu i couldnt find a better way to connect them to the members.
What I would do is compare your code to the original js file and see what they did to draw the scene.
Its so weird using object based coding in MV lol
This is the original code:

Code:
Window_MenuStatus.prototype.drawItemStatus = function(index) {
    var actor = $gameParty.members()[index];
    var rect = this.itemRect(index);
    var x = rect.x + 162;
    var y = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
    var width = rect.width - x - this.textPadding();
    this.drawActorSimpleStatus(actor, x, y, width);
};

Code:
Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
    var lineHeight = this.lineHeight();
    var x2 = x + 180;
    var width2 = Math.min(200, width - 180 - this.textPadding());
    this.drawActorName(actor, x, y);
    this.drawActorLevel(actor, x, y + lineHeight * 1);
    this.drawActorIcons(actor, x, y + lineHeight * 2);
    this.drawActorClass(actor, x2, y);
    this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
    this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
};

I dont let him "drawActorSimpleStatus" because i wanna use my own variables i declared in the game.
Insead i draw directly the variables on the Stat Menu with the command drawText.
But something on the mother classes of this classes is missing in my manipulated class.
My brain says prototype width but im trying to compare.
Even if i dont use the declared variables for the position and width it doesnt got any effect.
Like this:
this.drawText($gameVariables.value(1), 200, 200, 300, 'center');
Nothing changes.
If you're talking about the font; the way numbers and characters look. You can change the font Settings by accessing the contents property. Contents fontSize, fontFace, etc.
Yes thats exactly what im talking about. After reading ur reply i tried a few things:

Code:
(function() {   

    //MenuStatusWindow Width and Height
    Window_MenuStatus.prototype.windowWidth = function() {
    return Graphics.boxWidth - 725;
    };
    Window_MenuStatus.prototype.windowHeight = function() {
    return Graphics.boxHeight - 250;
    };
        
    //MenuStatusWindow Draw my own variables
    Window_MenuStatus.prototype.drawItemStatus = function(index) {

    this.drawActorName($gameParty.members()[0], 200, 10);
    this.drawText($gameVariables.value(1), 150, 50, 300, 'center');
        
    this.contents.fontFace = 'GameFont';
    this.contents.fontSize = 35;     
};
    
})();

I also shortend the script for a better view. The result here is that the number 250 on the top right corner and the name Amelia got a larger size. But it doesnt change anything else. It still looks ugly.
GameFont is the default font for the game; what font are you using on the left?

Also you need to change the font before you draw the text. The game checks what the font settings are before drawing text.
The font im using is called "Timeless" i replaced GameFont with it. Also i change the font now before drawing the text.
But still nothing. It uses the front i defined as default (Timeless). It also accepts the fontSize change to 35 from 28.
Okay that means somewhere in the Window it's calling resetFontSettings
Actually it doesnt reset the font setting. It still uses the font and size i defined. The only thing is that its just a bit
pixelated, dunno how else i could descripe it. The funny thing is when i use the command "formatian" and swap the places of the
actors it redraws it normal aggain. Like the values on the gold window. Im helpless lol. Looking for a solution since yesterday night.
Yea; I'm thinking the refresh method resets The fontSetting . There may be a lot of methods that use the resetFontSetting method within the window. It can get complicated.
Do you got any idea where i can try to change things?

Or other question do you know how to show a picture in the menu or
draw a Actor potrait in the gold window.
That would be solve my problem too.

Original thread: https://forums.rpgmakerweb.com/threads/manipulated-game-menu-text.81658/