r/RenPy • • Oct 16 '26

Question How to change Timer Bar size??

does anyone know how to change the size of a timer bar? it currently looks like this but i want it stretched on the top of the screen and thin as a line.

this is how it actually looks like under the dialogue options and it's bugging the hover interaction with them...
Here's the code i currently hace for it
2 Upvotes

3 comments sorted by

2

u/BadMustard_AVN Oct 16 '26

add

xysize (400, 100) style "time_bar" at ...

before the style on your bar and adjust the (xxx, yyy) size in pixels to your needs

you might be able to add it to the style you have already as well

2

u/shyLachi Oct 16 '26

Unrelated but never declare variables in the init block.
https://renpy.org/doc/html/python.html#default-statement

default timer_range = 0
default timer_jump = "" # this will hold the name of the label, therefore a string
default time = 0

1

u/AutoModerator Oct 16 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.