MV YEP_CreditsPage (Title Screen)

So I just got around to enabling this plugin but noticed that the "Credits" option is placed between "Continue" & "Options". I was wondering if there was a way to put "Credits" as the last option.

Screenshot:
1604302985671.png


Relevant code:
JavaScript:
//=============================================================================
// Window_TitleCommand
//=============================================================================

Yanfly.Credits.Window_TitleCommand_makeCommandList =
  Window_TitleCommand.prototype.makeCommandList;
Window_TitleCommand.prototype.makeCommandList = function() {
  Yanfly.Credits.Window_TitleCommand_makeCommandList.call(this);
  var index = this.findSymbol('options');
  var text = Yanfly.Param.CreditsCmdName;
  var enabled = true;
  this.addCommandAt(index, text, 'credits', enabled);
};
So I just got around to enabling this plugin but noticed that the "Credits" option is placed between "Continue" & "Options". I was wondering if there was a way to put "Credits" as the last option.

Screenshot:
View attachment 166305

Relevant code:
JavaScript:
//=============================================================================
// Window_TitleCommand
//=============================================================================

Yanfly.Credits.Window_TitleCommand_makeCommandList =
  Window_TitleCommand.prototype.makeCommandList;
Window_TitleCommand.prototype.makeCommandList = function() {
  Yanfly.Credits.Window_TitleCommand_makeCommandList.call(this);
  var index = this.findSymbol('options');
  var text = Yanfly.Param.CreditsCmdName;
  var enabled = true;
  this.addCommandAt(index, text, 'credits', enabled);
};
ok i am just guessing here, but it looks that this is affected by the "index"..
in that case it will be above of the used index..
I would try to change the index and look what happens, or you could edit your "rpg.windows Plugin"..
But i think that you could also change the last line of Yep code you showed..
it uses "this.addCommandAt(index, text, 'credits', enabled);"
while the "rpg.windows Plugin" uses : " this.addCommand(TextManager.options, 'options');"
and in the "rpg.windows Plugin" that seems to put every command on the next position in line
(thats what you want)
-> im just not sure how exactly to setup the "()" in such case, but if you find no solution , im pretty sure i could test that and figure it out later when i got my other stuff done.
However i am not sure if its allowed to edit the yep plugin..
(for own usage only in this case of course)

Screenshot_1.png
But i think that you could also change the last line of Yep code you showed..
it uses "this.addCommandAt(index, text, 'credits', enabled);"
while the "rpg.windows Plugin" uses : " this.addCommand(TextManager.options, 'options');"
and in the "rpg.windows Plugin" that seems to put every command on the next position in line
(thats what you want)
-> im just not sure how exactly to setup the "()" in such case, but if you find no solution , im pretty sure i could test that and figure it out later when i got my other stuff done.
So I tried replacing "index" w/ "0", but that put it on the top. Then I tried "4"...lo and behold, it worked! Basically, any number > 3 would work (since there are 3 items I want before/above it).
it does add on the bottom normally, while when options is found (commandAt) it will be the
next in line.

why it didn't work for you, might be wrong plugin order or a conflict that also changes the title
scene.

if it's the 2nd one, it might not read options correctly (but this is a guess), so I cant tell for sure.
but I'm happy you got it to work.

Original thread: https://forums.rpgmakerweb.com/threads/yep_creditspage-title-screen.129451/