RPGツクールMVでUI周りの色を変更するための方法
この記事では、ツクールMVでフォントの色やHPやMPなどのゲージの色などを変更する方法を紹介していく。
やり方
色の指定は、Window_Base
で以下のように定義されているので、これをoverrideするようなプラグインを作れば良い。
Window_Base.prototype.normalColor = function() {
return this.textColor(0);
};
Window_Base.prototype.systemColor = function() {
return this.textColor(16);
};
Window_Base.prototype.crisisColor = function() {
return this.textColor(17);
};
Window_Base.prototype.deathColor = function() {
return this.textColor(18);
};
例えば、以下のようなプラグインを作るとよい。 色の指定はCSSと同じ要領でできる。
(()=>{
Window_Base.prototype.normalColor = function() {
return "#f17272";
};
})();
これだけでOK。これを他の色も同じように実装するとよい。