Skip to content

Commit

Permalink
EffekseerAnimationColorChange_ConflictPatch.js update to version v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
unagiootoro committed Sep 8, 2022
1 parent aac7dce commit 456a79d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion EffekseerAnimationColorChange_ConflictPatch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*:
@target MZ
@plugindesc Effekseerアニメーションカラー変更 競合回避用パッチ v1.0.0
@plugindesc Effekseerアニメーションカラー変更 競合回避用パッチ v1.0.1
@author うなぎおおとろ
@url https://raw.githubusercontent.com/unagiootoro/RPGMZ/master/EffekseerAnimationColorChange_ConflictPatch.js
@help
Expand Down Expand Up @@ -40,4 +40,22 @@ if (typeof Spriteset_Battle.prototype.setupBattlebackEffectsOffset !== "undefine
};
}

if (typeof Spriteset_Battle.prototype.pseudo3dSprites !== "undefined") {
// MPP_Pseudo3DBattle.jsのスプライト変形によって合成用テクスチャとの間に差異が出るため、
// BattleFieldは合成用テクスチャにレンダリングしないようにする。
Spriteset_Battle.prototype.createBattleField = function() {
const width = Graphics.boxWidth;
const height = Graphics.boxHeight;
const x = (Graphics.width - width) / 2;
const y = (Graphics.height - height) / 2;
this._battleField = new Sprite();
this._battleField.setFrame(0, 0, width, height);
this._battleField.x = x;
this._battleField.y = y - this.battleFieldOffsetY();
this._baseSprite.addChild(this._battleContainerSprite);
this._baseSprite.addChild(this._battleField);
this.createEffectsSprite();
};
}

})();

0 comments on commit 456a79d

Please sign in to comment.