Follow along with the video below to see how to install our site as a web app on your home screen.
注意事項: This feature may not be available in some browsers.
メニュー画面の一覧の枠のサイズはどうやって
変更できますか?
(アイテム、スキル、セーブなどの一覧)
メニュー画面を追加するとスクロールになり、
11個いれようとすると微妙に収まらず
↓とか出て、はみ出たようになるのを防ぎたいです。
*ゴールドの枠を制御して調整する方法でも構いません。
Scene_Menu.prototype.commandWindowRect = function() {
const ww = this.mainCommandWidth();
const wh = this.mainAreaHeight() - this.goldWindowRect().height;
const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
const wy = this.mainAreaTop();
return new Rectangle(wx, wy, ww, wh);
};
Gを残したままでリストの高さを調整するなら
こちらの数値を制御すればいけそうです。
const itemHeight = Number(parameters["ItemHeight"] || 44);
Window_MenuCommand.prototype.itemHeight = function()
{ return itemHeight;
}
Window_MenuStatus.prototype.numVisibleRows = function() {
return 4;
};
Window_MenuStatus.prototype.itemHeight = function() {
return Math.floor(this.innerHeight / this.numVisibleRows());
};