Comments

Log in with itch.io to leave a comment.

Is there any way to change the text of the URL (Such as "Twitter" instead of www.twitter.com). I found that using the a=~ wrap works but as you pointed out there is a limit to how many of these you can have per screen. Any help greatly appreciated!

Nevermind I figured it out!

In case it helps anyone else:
Within the file of the template you want to use (1b, 2a, ect) find

textbutton _(url_tuple[1]) action OpenURL(url_tuple[1])

and replace with

textbutton _(url_tuple[1]) action OpenURL(url_tuple[2])

In this instance the first item in the tuple will be the text and the second will be the URL it links to

So in init_credit_objects file when listing the credits you will put "img", "text", "url"
 
(When I first tried this it kept breaking due to unrelated typos so I had doubt in my code but nope pretty sure this is the correct answer)

(1 edit)

Hi, I'm glad you managed to find the solution after all! What you do is indeed correct.

I wrote the code that the 'label' and 'url' both show the same value 'url' because in Ren'Py you can't see the link where you're going to be redirected to unlike a browser, so for someone who doesn't want to click on a link they don't trust they can at least type it manually. Admittedly, it's not exactly pleasing for the UI, or it can take a lot of space too.

Thanks for the response! Your code helped me so much and I'm so happy I get to include the robust credit page that I thought was beyond my coding ability (which to be fair it was haha, but I have learned a bit more now by studying your code and others and other tutorials).  And you will be able to see yourself on that credit page once the game is out xD.

I never thought about that issue before (potentially including sketchy links in Renpy games); in my head I thought that having a direct link is the most useful for the player and having a shorthand is the most attractive, but now I will have to think a bit more about my design philosophy.

Hope you have a nice day,
-M

This project is fairly old and there's probably code I could write differently, though I don't revisit old stuff (so many new project ideas and not enough time). Regardless, I'm very happy it had been helpful to you and thank you for crediting me!

Yes, it's probably not a thing that players are cautious about, usually the worst you get is a broken link to a non-existing page. When you wrote your comment I was also suddenly thinking about whether displaying @handlename could have been alternative for the label, but a player might not recognise it as a clickable link. Not to mention, there are so many Twitter alternatives nowadays and a handle wouldn't be clear which site it represents. So your way of doing with "Twitter" as label is still the most common and intuitive for an average Ren'Py player as other devs do it the same way as well from what I've seen.

I wish you all the success for finishing your game!

Is there anyway to change the color of the text to black? I have been looking around!

Yes, you should first refer to the official Ren'Py documentation for how to customise the GUI: https://www.renpy.org/doc/html/gui.html#colors-fonts-and-font-sizes. I checked again and I haven't overwritten the default fontcolours in the extra styles I've defined so what you see are the default values defined in your project's gui.rpy.

Oh! Thank you, Almost forgot about that section 😅

Hey! Errr, I’m having trouble figuring out where it’s getting it’s all white text color from.. Most of the gui colors i set are not white, They are black, grey, Or transparent.. I hardly use white in the gui.rpy

Hi! Thanks for the template! Just wanted to know if the credits screen is available to use in a commercial project? (it's modified in some aspects, but still is your base code)


Have a good day :]

Yes, go ahead. I'm glad it could be useful to you. Have a nice day too!

(1 edit)

Much appreciated! Thank you so much for such helpful template~

Thank you for your comment! I'm glad you find it helpful.

(1 edit)

Oh! This looks great!

Also feels like a good template to keep item info or character info in a game. Thanks for sharing!

Thank you for your kind comment! Yes, a lot of times you are repurposing code blocks, so it's cool you found a new use for them. :)