41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
/*:
|
||
* @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;
|
||
}
|
||
}
|
||
};
|
||
})();
|