法术物品窗口
继续水点内容
现在发出及确认物品窗口显示及操作。
代码
function Window_BattleItem() {
this.initialize.apply(this, arguments);
}
Window_BattleItem.prototype = Object.create(Pal_Window_ItemList.prototype);
Window_BattleItem.prototype.constructor = Window_BattleItem;
Window_BattleItem.prototype.initialize = function(x, y, width, height) {
Pal_Window_ItemList.prototype.initialize.call(this, x, y, width, height);
this.hide();
};
Window_BattleItem.prototype.includes = function(item) {
return $gameParty.canUse(item);
};
Window_BattleItem.prototype.show = function() {
this.selectLast();
this.showHelpWindow();
Pal_Window_ItemList.prototype.show.call(this);
};
Window_BattleItem.prototype.hide = function() {
this.hideHelpWindow();
Pal_Window_ItemList.prototype.<