depends on whether you're editing a 3rd party plugin or the base objects.
windowWidth is a property of base window objects, but "width" is a property of sprites and containers which sometimes windows tap into to get their measurements.
use a program like pspad or notepad++ to make batch searches in groups of files.
usually you want to look into rpg_windows or rpg_scenes.
for example:
Spoiler
Code:
Scene_Skill.prototype.create = function() {
Scene_ItemBase.prototype.create.call(this);
this.createHelpWindow();
this.createSkillTypeWindow();
this.createStatusWindow();
this.createItemWindow();
this.createActorWindow();
this.refreshActor();
};
Scene_Skill.prototype.createItemWindow = function() {
var wx = 0;
var wy = this._statusWindow.y + this._statusWindow.height;
var ww = Graphics.boxWidth;
var wh = Graphics.boxHeight - wy;
this._itemWindow = new Window_SkillList(wx, wy, ww, wh);
this._itemWindow.setHelpWindow(this._helpWindow);
this._itemWindow.setHandler('ok', this.onItemOk.bind(this));
this._itemWindow.setHandler('cancel', this.onItemCancel.bind(this));
this._skillTypeWindow.setSkillWindow(this._itemWindow);
this.addWindow(this._itemWindow);
};
Code:
Scene_Skill.prototype.create = function() {} /// start the scene
Scene_ItemBase.prototype.create.call(this); /// call the base template and bring it's properties
this.createItemWindow(); // create the window
Scene_Skill.prototype.createItemWindow = function() {} //declaration of the "create the window" procedure
this._itemWindow = new Window_SkillList(wx, wy, ww, wh); /// call the base object, and pass it the new properties, overriding the defaults.
// further modify properties after creation
this._itemWindow.setHelpWindow(this._helpWindow);
this._itemWindow.setHandler('ok', this.onItemOk.bind(this));
this._itemWindow.setHandler('cancel', this.onItemCancel.bind(this));
this._skillTypeWindow.setSkillWindow(this._itemWindow);
if you were to create a window_skillList manually, you'd have to look into the window_skillList *window* itself (the object, at the file), and see if it requires the x, y, width and height passed to it before creation.
if it doesn't, or if it has it's own values, you can either go into the file and change them, or create the object first and then override those parameters manually.
read the documentation to learn what are properties, methods and functions.