文字サイズの変更
Posted: 2018年10月19日(金) 06:25
制御文字で一段階文字サイズを小さくすることが出来ますが、それがどうも小さくなりすぎてるように感じます。文字サイズの大きさを細かく変更できるようなやり方があれば助かるのですが、何か方法はありませんか?
(デフォルトの大きさから、ゲームの途中で変える話です)
(デフォルトの大きさから、ゲームの途中で変える話です)
コード: 全て選択
(function(){
'use strict'
Window_Base.prototype.makeFontBigger = function() {
if (this.contents.fontSize <= 96) {
this.contents.fontSize += 12;
}
};
Window_Base.prototype.makeFontSmaller = function() {
if (this.contents.fontSize >= 24) {
this.contents.fontSize -= 12;
}
};
})();