Hi All, I've been tinkering with this all day, but what I am trying to do is keep the Name box to the left but have the text inside be centered in the window. I've gotten close. The text is currently acting centered but it is moved a little too the right in the message window and I can't quite figure out why. Probably because I am still pretty damn noob at directly working with code. Any advice would be very much appreciated. Let me know if you need any other additional information. I have attached a screen shot of how it is behaving and here is the current edit of the code function that I am using:
Code:
Window_NameBox.prototype.refresh = function(text, position) {
this.show();
this._lastNameText = text;
this._text = Yanfly.Param.MSGNameBoxText + text;
this._position = position;
this.width = 400;
this.createContents();
this.contents.clear();
this.resetFontSettings();
this.changeTextColor(this.textColor(Yanfly.Param.MSGNameBoxColor));
var bleep = this.textWidth(text) / 2;
var tx = this.width / 2 - bleep;
this.drawTextEx(this._text, tx, 0);
this._parentWindow.adjustWindowSettings();
this._parentWindow.updatePlacement();
this.adjustPositionX();
this.adjustPositionY();
this.open();
this.activate();
this._closeCounter = 4;
return '';
};