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.
How do I make a history screen like this?
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.
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.
Re: How do I make a history screen like this?
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.
It will automatically update the scrollbar the more text there is. Also you can position the text however you like inside the viewpoirt.
-
- 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:
Who is online
Users browsing this forum: Majestic-12 [Bot]