//=============================================================================
// Witch's House Menu Basic.js
//=============================================================================
/*:
* @plugindesc Witch's House Menu for default resolution of RPG Maker MV
* @author tale & Sasuke KANNAZUKI (I modified KeyItemAlone to ItemAlone)
*
* @help
* Basic menu of Witch's House for default resolution of RPG Maker MV
*
* ===
*
*/

Window_Base.prototype.drawActorMp = function(actor, x, y, width) {};

Scene_Menu.prototype.createGoldWindow = function() {
this._goldWindow = new Window_Gold(0, 0);
this._goldWindow.y = Graphics.boxHeight - this._goldWindow.height;
this.addWindow(this._goldWindow);
this._goldWindow.hide();
};

(function() {

Scene_Item.prototype.create = function() {
Scene_ItemBase.prototype.create.call(this);
this.createHelpWindow();
// abolish category window
// this.createCategoryWindow();
this.createItemWindow();
this.createActorWindow();
};

Scene_Item.prototype.createItemWindow = function() {
var wy = this._helpWindow.height;
// original parts are commented out
// var wy = this._categoryWindow.y + this._categoryWindow.height;
var wh = Graphics.boxHeight - wy;
this._itemWindow = new Window_ItemList(0, wy, Graphics.boxWidth, wh);
this._itemWindow.setHelpWindow(this._helpWindow);
this._itemWindow.setHandler('ok', this.onItemOk.bind(this));
this._itemWindow.setHandler('cancel', this.popScene.bind(this));
// this._itemWindow.setHandler('cancel', this.onItemCancel.bind(this));
this.addWindow(this._itemWindow);
// this._categoryWindow.setItemWindow(this._itemWindow);
// activate item window directly
this._itemWindow.setCategory('item');
this.onCategoryOk();
};
})();

Window_MenuCommand.prototype.initialize = function(x, y) {
Window_Command.prototype.initialize.call(this, x, 480);
this.selectLast();
};

Window_MenuStatus.prototype.numVisibleRows = function() {
return 1;
};

Window_MenuStatus.prototype.initialize = function(x, y) {
var width = this.windowWidth();
var height = this.windowHeight();
Window_Selectable.prototype.initialize.call(this, x, 442, width, height);
this._formationMode = false;
this._pendingIndex = -1;
this.refresh();
};

Window_MenuStatus.prototype.windowHeight = function() {
return Graphics.boxHeight - 442;
};

Window_MenuCommand.prototype.addMainCommands = function() {
// var enabled = this.areMainCommandsEnabled();
if (this.needsCommand('item')) {
this.addCommand(TextManager.item, 'item');
}
// if (this.needsCommand('skill')) {
// this.addCommand(TextManager.skill, 'skill', enabled);
// }
// if (this.needsCommand('equip')) {
// this.addCommand(TextManager.equip, 'equip', enabled);
// }
// if (this.needsCommand('status')) {
// this.addCommand(TextManager.status, 'status', enabled);
// }
};

Window_MenuCommand.prototype.addFormationCommand = function() {
// if (this.needsCommand('formation')) {
// var enabled = this.isFormationEnabled();
// this.addCommand(TextManager.formation, 'formation', enabled);
// }
};

Window_MenuCommand.prototype.addOptionsCommand = function() {
// if (this.needsCommand('options')) {
// var enabled = this.isOptionsEnabled();
// this.addCommand(TextManager.options, 'options', enabled);
// }
};

Window_MenuCommand.prototype.addGameEndCommand = function() {
// var enabled = this.isGameEndEnabled();
// this.addCommand(TextManager.gameEnd, 'gameEnd', enabled);
};