do-disciplinary-committee-m.../www/js/plugins/Eiten_NoWindowAnim.js
2025-05-04 14:43:03 -05:00

41 lines
1.4 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*:
* @plugindesc ウィンドウ開閉アニメ調整プラグイン(スイッチ制御版)
* @author Eiten
* @help ウィンドウ開閉時のアニメーションをカットします
* このプラグインにプラグインコマンドはありません
*
* 利用規約:
* 作者に無断で改変、再配布が可能です、利用形態商用、18禁利用等
* についても制限はありません。
* このプラグインは自由にお使いください。
* しかし、自作発言と有償再配布はやめてくださいね。
*/
(function() {
Window_Base.prototype.updateOpen = function() {
if (this._opening) {
// スイッチがONの場合のみアニメーションをカット
if ($gameVariables.value(57)!=0) {
this.openness += 255; // ウィンドウの最大サイズ
} else {
this.openness += 32;
}
if (this.isOpen()) {
this._opening = false;
}
}
};
Window_Base.prototype.updateClose = function() {
if (this._closing) {
if ($gameVariables.value(57)!=0) {
this.openness -= 255; // ウィンドウを閉じる
} else {
this.openness -= 32;
}
if (this.isClosed()) {
this._closing = false;
}
}
};
})();