Changing Appearance of DSE Day Planner Window

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
sempersapiens
Regular
Posts: 47
Joined: Mon Jun 30, 2014 4:31 pm
Location: Canada
Contact:

Changing Appearance of DSE Day Planner Window

#1 Post by sempersapiens »

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:
Day Planner Screenshot.png
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?

User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

Re: Changing Appearance of DSE Day Planner Window

#2 Post by stwkun »

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

User avatar
sempersapiens
Regular
Posts: 47
Joined: Mon Jun 30, 2014 4:31 pm
Location: Canada
Contact:

Re: Changing Appearance of DSE Day Planner Window

#3 Post by sempersapiens »

Thanks, I hadn't thought of styles.rpy! I've got it looking much better now:
Day Planner Screenshot 2.png
I still don't know how to make two of the stat bars smaller than the third, though.

User avatar
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

#4 Post by akemicchi »

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:

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)

User avatar
sempersapiens
Regular
Posts: 47
Joined: Mon Jun 30, 2014 4:31 pm
Location: Canada
Contact:

Re: Changing Appearance of DSE Day Planner Window

#5 Post by sempersapiens »

Perfect! Thank you.

Post Reply

Who is online

Users browsing this forum: Dark79, Google [Bot], Majestic-12 [Bot]