I know yanflys extended message plugin can do this but I dont want to use it.
In the rpg_windows js file under window message:
I can change the width of text windows at "var width."
However, I want to be able to control this (and later height/x/y positions) using game variables.
I've tried changing it to var width = $gameVariables.value(14); but it doesn't work (14 used as an example, 14 being variable 14 in-game).
Is it possible to reference to specific in-game variables in these js files?
Thank you.
In the rpg_windows js file under window message:
Code:
//-----------------------------------------------------------------------------
// Window_Message
//
// The window for displaying text messages.
function Window_Message() {
this.initialize.apply(this, arguments);
}
Window_Message.prototype = Object.create(Window_Base.prototype);
Window_Message.prototype.constructor = Window_Message;
Window_Message.prototype.initialize = function() {
var width = this.windowWidth();
var height = this.windowHeight();
var x = (Graphics.boxWidth - width) / 2;
Window_Base.prototype.initialize.call(this, x, 0, width, height);
this.openness = 0;
this.initMembers();
this.createSubWindows();
this.updatePlacement();
};
I can change the width of text windows at "var width."
However, I want to be able to control this (and later height/x/y positions) using game variables.
I've tried changing it to var width = $gameVariables.value(14); but it doesn't work (14 used as an example, 14 being variable 14 in-game).
Is it possible to reference to specific in-game variables in these js files?
Thank you.