English: Fix menus

This commit is contained in:
OleSTEEP 2024-01-15 20:46:11 +03:00
parent 4b93f9c439
commit f351db40b1
3 changed files with 16 additions and 14 deletions

View file

@ -387,15 +387,17 @@ Scene_OmoriTitleScreen.prototype.createTitleCommands = function () {
// Text Array
var textList = LanguageManager.getMessageData("XX_BLUE.Omori_Title_Screen").commands
// Get Center X Position
var centerX = Math.floor((Graphics.width - (136 * textList.length)) / 1.8)
var centerX = 43;
// Go Through Text Array
var previous_width = 0;
for (var i = 0; i < textList.length; i++) {
// Get Text
var text = textList[i];
// Create Window
var win = new Window_OmoTitleScreenBox(text);
// Set Wnidow Position
win.x = centerX + (i * (130 + 15));
win.x = centerX + previous_width;
previous_width += win.width + 30;
win.y = Graphics.height //(Graphics.height - win.height) - 22
// Select Window
if (i === this._commandIndex) { win.select(0) }