How do I make a history screen like this?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Alaina93
Newbie
Posts: 5
Joined: Thu Feb 20, 2014 11:09 am
Contact:

How do I make a history screen like this?

#1 Post by Alaina93 » Thu Apr 17, 2014 8:28 am

I'd like to create a history screen for my game, which is a 1280x800 resolution screen. I want to be able to have a scroll bar, but the scroll bar keeps changing the more text there is, so it kind of gets hidden when there's too much text.

I'd like a history box like in the VN Taraadin by Cyanide Tea. With a functioning scroll bar, and text that is very neatly divided etc.

Image

User avatar
Stapper
Regular
Posts: 96
Joined: Wed Feb 27, 2013 9:54 pm
Contact:

Re: How do I make a history screen like this?

#2 Post by Stapper » Thu Apr 17, 2014 10:49 am

You have to use a viewport for this: http://www.renpy.org/doc/html/screens.html#viewport

It will automatically update the scrollbar the more text there is. Also you can position the text however you like inside the viewpoirt.

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: How do I make a history screen like this?

#3 Post by SundownKid » Thu Apr 17, 2014 1:29 pm

Check: http://www.renpy.org/wiki/renpy/doc/coo ... xt_History

And modify the styles to your liking.

Post Reply

Who is online

Users browsing this forum: No registered users