Hi, so i'm making a game in 960 x 720 resolution, and i want my text window to appear at the exact center. No plugin seems to help me, i tried some. So i made some scripting operating on the rpg_windows.js, and it doesn't seem to work:
Window_Message.prototype.updatePlacement = function() {
var width = this.windowWidth();
var height = this.windowHeight();
var x = (Graphics.boxWidth - width) / 2 + 72;
Window_Base.prototype.initialize.call(this, x, 0, width, height);
this.openness = 0;
this.initMembers();
this.createSubWindows();
this.updatePlacement();
};
Help me plz.
Window_Message.prototype.updatePlacement = function() {
var width = this.windowWidth();
var height = this.windowHeight();
var x = (Graphics.boxWidth - width) / 2 + 72;
Window_Base.prototype.initialize.call(this, x, 0, width, height);
this.openness = 0;
this.initMembers();
this.createSubWindows();
this.updatePlacement();
};
Help me plz.