diff --git a/www.rus/js/plugins/Omori Title Screen.js b/www.rus/js/plugins/Omori Title Screen.js index bb10c46..968d79d 100644 --- a/www.rus/js/plugins/Omori Title Screen.js +++ b/www.rus/js/plugins/Omori Title Screen.js @@ -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) } diff --git a/www.rus/js/plugins/RUS_patches.js b/www.rus/js/plugins/RUS_patches.js index a31daa2..a34bfa8 100644 --- a/www.rus/js/plugins/RUS_patches.js +++ b/www.rus/js/plugins/RUS_patches.js @@ -14,21 +14,24 @@ 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 - (154 * textList.length)) / 1.8) // Original: 156, Mod: 169 + var centerX = 20; // 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 * (144 + 10)); // Original: 130, Mod: 144 + win.x = centerX + previous_width; + previous_width += win.width + 15; win.y = Graphics.height //(Graphics.height - win.height) - 22 // Select Window if (i === this._commandIndex) { win.select(0)} // Add window to title Commands this._titleCommands[i] = win; this.addChild(win) + console.log(win.width) }; // Set Continue text this._titleCommands[1].setText(textList[1], this._canContinue);