I want to have the game title, then have a line break and version number beneath that. Is there a way to do this?
Is there a way to have extra lines for the title on the title screen?
RPG Maker MZ SupportNot without a plugin. But isn't it easier to just draw the text on the background pictture?
For me it'd be easier to just edit the project title in the database every time. Do you know which plugin would give more title screen control? Google is saying moghunter at least used to have something for more control over the title screen, but I downloaded his plugin pack and didn't see anything for this.
You can easily copy the original drawGameTitle and make a second one.
Save this as a plugin and edit the values to suite your need.
Save this as a plugin and edit the values to suite your need.
JavaScript:
Scene_Title.prototype.createForeground = function() {
this._gameTitleSprite = new Sprite(
new Bitmap(Graphics.width, Graphics.height)
);
this.addChild(this._gameTitleSprite);
if ($dataSystem.optDrawTitle) {
this.drawGameTitle();
this.drawGameTitle2();
}
};
Scene_Title.prototype.drawGameTitle = function() {
const x = 20;
const y = Graphics.height / 4;
const maxWidth = Graphics.width - x * 2;
const text = $dataSystem.gameTitle;
const bitmap = this._gameTitleSprite.bitmap;
bitmap.fontFace = $gameSystem.mainFontFace();
bitmap.outlineColor = "black";
bitmap.outlineWidth = 8;
bitmap.fontSize = 72;
bitmap.drawText(text, x, y, maxWidth, 48, "center");
};
Scene_Title.prototype.drawGameTitle2 = function() {
const x = 20;
const y = Graphics.height / 4 + 80;
const maxWidth = Graphics.width - x * 2;
const text = 'v1.1.0';
const bitmap = this._gameTitleSprite.bitmap;
bitmap.fontFace = $gameSystem.mainFontFace();
bitmap.outlineColor = "black";
bitmap.outlineWidth = 2;
bitmap.fontSize = 12;
bitmap.drawText(text, x, y, maxWidth, 24, "center");
};
Thanks! I had to edit the font size and outline, but I think it looks fine now (see screenshot).
Is there any way to get the text of the 2nd line as something I can edit from within the plugin window in RPG Maker? I am not expecting you to help me for free... if you put this on itch.io I will tip you a couple bucks.
Is there any way to get the text of the 2nd line as something I can edit from within the plugin window in RPG Maker? I am not expecting you to help me for free... if you put this on itch.io I will tip you a couple bucks.
Don't worry about it, it is mostly copy and paste.
So you need a plugin parameter? I'll look into it after I get some sleep, if you haven't figured it out.
So you need a plugin parameter? I'll look into it after I get some sleep, if you haven't figured it out.
Yes, a plugin parameter to change the text of the 2nd line would be great! But no rush. And if you change your mind I am still happy to tip you 🙂
but hiding the game title and just set your title there would be easier
as it's the background you can pick from title1 folder 🙂
but I could change it for you to parameters.
Edit:
added parameters for you for fontsize, outline and title.
both for draw game title and subtitle that is below it.
I cannot test it as I don't own MZ, so I hope the parameters works as I parse them
different for my own, so see if it works 🙂
as it's the background you can pick from title1 folder 🙂
but I could change it for you to parameters.
Edit:
added parameters for you for fontsize, outline and title.
both for draw game title and subtitle that is below it.
I cannot test it as I don't own MZ, so I hope the parameters works as I parse them
different for my own, so see if it works 🙂
Here are my settings and here is what it looks like. Let me know if I've done anything wrong:
1. Don't rename the file.
2. There seems to be unnecessarys eval in SD's code like this:
I removed it and it works now.
3. Delete the plugin from the editor and add it again if the parameters are incorrect.
2. There seems to be unnecessarys eval in SD's code like this:
eval(utSD.DrawTitleCustom.line_1)I removed it and it works now.
3. Delete the plugin from the editor and add it again if the parameters are incorrect.
Thanks, that's working now. I did not rename the file this time, sorry about that. I'll add a link to your post with the plugin in my credits.
I used eval and param as string, and I might forgot something else I parse
and mostly works, but as I parse it differently, it just autodetect them to
number, string, array, objects, etc, and can eval later and still correct them
later that return to a number if the type is a number or string.
I'm glad it works now for you 🙂 but renaming of plugins is not recommended if
there are parameters in play as they respond to it else it throws an error of undefined
a lot or ignore them all the time unless the plugin name match.
while you didn't rename it, it's a param issue and would test it if I had MZ to make sure.
as I only own MV, both MV and MZ are mostly equal in parameters, but some parts
are slightly different 🙂
Good luck with your project.
Just gonna go ahead and:
Edit i'm gonna clean up the parameters a bit and repost the plugin in a few.
Edit edit: had to run out. But the updates done. Will post later lol
Edit i'm gonna clean up the parameters a bit and repost the plugin in a few.
Edit edit: had to run out. But the updates done. Will post later lol
Posting separate so folks see the notification
Updated the plugin parameters to be a bit more straightforward. No changes to the code were made
Game Title and Subtitle are sectioned off and parameters renamed to be clearer
Added in Larger Default font and outline sizes for each.
I might do some additional tweaks to allow font and outline color changes. But for now i hope this helps
This was fun haha
UPDATE: Added plugin parameters for Font/Outline Colors that accept Color name or Hexidecimal (#123456)
That's all I can think of short of allowing font changes, or changing alignment! Let me know if anyone wants that too
Happy RPG making all!
Additional note, i added in a fix to prevent the first and second lines from overlappingg based on the font sizes of the titles, as well as a Y offset option for both titles to be used as needed.
Updated the plugin parameters to be a bit more straightforward. No changes to the code were made
Game Title and Subtitle are sectioned off and parameters renamed to be clearer
Added in Larger Default font and outline sizes for each.
I might do some additional tweaks to allow font and outline color changes. But for now i hope this helps
This was fun haha
UPDATE: Added plugin parameters for Font/Outline Colors that accept Color name or Hexidecimal (#123456)
That's all I can think of short of allowing font changes, or changing alignment! Let me know if anyone wants that too
Happy RPG making all!
Additional note, i added in a fix to prevent the first and second lines from overlappingg based on the font sizes of the titles, as well as a Y offset option for both titles to be used as needed.
Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-have-extra-lines-for-the-title-on-the-title-screen.174578/