Russian: Pixel-perfect title commands
This commit is contained in:
parent
f351db40b1
commit
8ef74a9410
2 changed files with 9 additions and 4 deletions
|
@ -387,15 +387,17 @@ Scene_OmoriTitleScreen.prototype.createTitleCommands = function () {
|
||||||
// Text Array
|
// Text Array
|
||||||
var textList = LanguageManager.getMessageData("XX_BLUE.Omori_Title_Screen").commands
|
var textList = LanguageManager.getMessageData("XX_BLUE.Omori_Title_Screen").commands
|
||||||
// Get Center X Position
|
// Get Center X Position
|
||||||
var centerX = Math.floor((Graphics.width - (136 * textList.length)) / 1.8)
|
var centerX = 43;
|
||||||
// Go Through Text Array
|
// Go Through Text Array
|
||||||
|
var previous_width = 0;
|
||||||
for (var i = 0; i < textList.length; i++) {
|
for (var i = 0; i < textList.length; i++) {
|
||||||
// Get Text
|
// Get Text
|
||||||
var text = textList[i];
|
var text = textList[i];
|
||||||
// Create Window
|
// Create Window
|
||||||
var win = new Window_OmoTitleScreenBox(text);
|
var win = new Window_OmoTitleScreenBox(text);
|
||||||
// Set Wnidow Position
|
// 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
|
win.y = Graphics.height //(Graphics.height - win.height) - 22
|
||||||
// Select Window
|
// Select Window
|
||||||
if (i === this._commandIndex) { win.select(0) }
|
if (i === this._commandIndex) { win.select(0) }
|
||||||
|
|
|
@ -14,21 +14,24 @@ Scene_OmoriTitleScreen.prototype.createTitleCommands = function() {
|
||||||
// Text Array
|
// Text Array
|
||||||
var textList = LanguageManager.getMessageData("XX_BLUE.Omori_Title_Screen").commands
|
var textList = LanguageManager.getMessageData("XX_BLUE.Omori_Title_Screen").commands
|
||||||
// Get Center X Position
|
// 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
|
// Go Through Text Array
|
||||||
|
var previous_width = 0;
|
||||||
for (var i = 0; i < textList.length; i++) {
|
for (var i = 0; i < textList.length; i++) {
|
||||||
// Get Text
|
// Get Text
|
||||||
var text = textList[i];
|
var text = textList[i];
|
||||||
// Create Window
|
// Create Window
|
||||||
var win = new Window_OmoTitleScreenBox(text);
|
var win = new Window_OmoTitleScreenBox(text);
|
||||||
// Set Wnidow Position
|
// 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
|
win.y = Graphics.height //(Graphics.height - win.height) - 22
|
||||||
// Select Window
|
// Select Window
|
||||||
if (i === this._commandIndex) { win.select(0)}
|
if (i === this._commandIndex) { win.select(0)}
|
||||||
// Add window to title Commands
|
// Add window to title Commands
|
||||||
this._titleCommands[i] = win;
|
this._titleCommands[i] = win;
|
||||||
this.addChild(win)
|
this.addChild(win)
|
||||||
|
console.log(win.width)
|
||||||
};
|
};
|
||||||
// Set Continue text
|
// Set Continue text
|
||||||
this._titleCommands[1].setText(textList[1], this._canContinue);
|
this._titleCommands[1].setText(textList[1], this._canContinue);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue