Need help with gui.history_height

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
User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Need help with gui.history_height

#1 Post by Imperf3kt »

Okay, so this is something I'm struggling to work out.
I have a history screen and it's been slightly modified from the stock history screen Ren'Py generates when you start a new project. Mostly a lot of positional changes, I made it smaller, further away from the top of the window, etc.
Anyway, The way I have it now, everything is spaced out nicely at 139 characters per line, but if I try to use more, then the lines overlap the names.
...
Perhaps a visual example will better explain it.

So in there, you can see a line where I have 143 characters and as such, it pushes four of those characters onto the next line - obscuring the name of the next speaking character. However, if I make the text any further apart, it starts to look really disjointed for the text that use far less characters per line.

Essentially, what I'd like to do is to keep the following:

Code: Select all

## The height of a history screen entry, or None to make the height variable at
## the cost of performance.
define gui.history_height = 120
But also somehow use "None" for specific problem lines or perhaps manually adjust those particular lines.
Is there any way to do this, or will I just have to try and shorten my lines or use larger gaps?
Attachments
screenshot0001.png
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot]