Changing Appearance of DSE Day Planner Window
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.
- sempersapiens
- Regular
- Posts: 47
- Joined: Mon Jun 30, 2014 4:31 pm
- Location: Canada
- Contact:
Changing Appearance of DSE Day Planner Window
I'm working on a game that uses the DSE, and while I've figured out how to get the basics working, I'd like some help changing the appearance of my day planner. Currently it looks like this:
And that's obviously silly. For one thing, I'd like to change the alignment of the window that shows the choices so it's on the far left and doesn't cover my sprite's head, but I'm not exactly sure what command would do that. I'd also like to change the lengths of the stat bars, so the two that are out of 25 are smaller than the one that's out of 100. Does anyone know how to do that?Re: Changing Appearance of DSE Day Planner Window
Go to styles.rpy and change some values. For example
style.stat_label_text.size = 32 #try in this to change the text size
Here to move te actions days
# Place the day planner.
style.dp_frame.ypos = 230 #change this
style.dp_frame.yanchor = 0.0
style.dp_frame.xalign = 0.5 #and this
I hope I could help a little
style.stat_label_text.size = 32 #try in this to change the text size
Here to move te actions days
# Place the day planner.
style.dp_frame.ypos = 230 #change this
style.dp_frame.yanchor = 0.0
style.dp_frame.xalign = 0.5 #and this
I hope I could help a little
- sempersapiens
- Regular
- Posts: 47
- Joined: Mon Jun 30, 2014 4:31 pm
- Location: Canada
- Contact:
Re: Changing Appearance of DSE Day Planner Window
Thanks, I hadn't thought of styles.rpy! I've got it looking much better now:
I still don't know how to make two of the stat bars smaller than the third, though.- akemicchi
- Veteran
- Posts: 465
- Joined: Mon Dec 31, 2007 11:22 pm
- Projects: Magicians of Delphine, Panaderia: Ensaimada, SweetTooth!, XOXO Droplets
- Deviantart: littlebabyshoes
- Contact:
Re: Changing Appearance of DSE Day Planner Window
Are you using the DSE's UIs instead of screen language? It's easier to use screen language, but in either case, you'll want to add an xmaximum property to the bar.
In stats.rpy, in the display_stats function:
In stats.rpy, in the display_stats function:
Code: Select all
if bar:
if s.name == "Stress" or s.name == "Mood": # Which stats you want to shorten (or lengthen).
ui.bar(s.max, v, style=style.stat_bar, xmaximum= 200) # Sets the maximum width of the bar.
else:
ui.bar(s.max, v, style=style.stat_bar)
- sempersapiens
- Regular
- Posts: 47
- Joined: Mon Jun 30, 2014 4:31 pm
- Location: Canada
- Contact:
Re: Changing Appearance of DSE Day Planner Window
Perfect! Thank you.
Who is online
Users browsing this forum: Dark79, Google [Bot], Majestic-12 [Bot]