(() => {
//ショップ
Window_ShopNumber.prototype.createButtons = function() {
this._buttons = [];
for (const type of ["down2", "down", "up", "up2", "ok"]) {
const button = new Sprite_Button(type);
this._buttons.push(button);
this.addInnerChild(button);
}
this._buttons[0].setClickHandler(this.onButtonDown2.bind(this));
this._buttons[1].setClickHandler(this.onButtonDown.bind(this));
this._buttons[2].setClickHandler(this.onButtonUp.bind(this));
this._buttons[3].setClickHandler(this.onButtonUp2.bind(this));
this._buttons[4].setClickHandler(this.onButtonOk.bind(this));
}
//数値入力
Window_NumberInput.prototype.createButtons = function() {
this._buttons = [];
for (const type of ["down", "up", "ok"]) {
const button = new Sprite_Button(type);
this._buttons.push(button);
this.addInnerChild(button);
}
this._buttons[0].setClickHandler(this.onButtonDown.bind(this));
this._buttons[1].setClickHandler(this.onButtonUp.bind(this));
this._buttons[2].setClickHandler(this.onButtonOk.bind(this));
};
Window_NumberInput.prototype.windowHeight = function() {
return this.fittingHeight(1) + this.buttonSpacing() + 48;
};
})();