ページ 11

[解決済み]ウィンドウの開閉について

Posted: 2017年8月30日(水) 12:25
by ねむいぬ
文章の表示等でウィンドウを表示する場合、上下に開閉するような感じで表示されるのですが、この開閉の動作を無くすにはどうすれば良いのでしょうか?
分かり難いかもしれませんが、パッと開いてパッと閉じるようにしたいです。

Re: ウィンドウの開閉について

Posted: 2017年8月30日(水) 15:44
by 剣崎 宗二
Windowの開閉度はWindow_Base.openness(正確にはその大元であるWindow.openness)によりコントロールされている為、当件はプラグインによる解決しかないですね。

一例として以下をプラグインに入れてみてください。

コード: 全て選択

Window_Base.prototype.updateOpen = function() {
    if (this._opening) {
        this.openness = 255;
        if (this.isOpen()) {
            this._opening = false;
        }
    }
};

Window_Base.prototype.updateClose = function() {
    if (this._closing) {
        this.openness = 0;
        if (this.isClosed()) {
            this._closing = false;
        }
    }
};