RMMV YEP_CreditsPage (Title Screen)

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
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);
};
 

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
542
Reaction score
255
First Language
German
Primarily Uses
RMMV
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
 
Last edited:

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,195
First Language
English
Primarily Uses
RMMV
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).
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,944
Reaction score
1,050
First Language
Dutch
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,037
Messages
1,018,464
Members
137,821
Latest member
Capterson
Top