Page 1 of 1
Changing Appearance of DSE Day Planner Window
Posted: Tue Aug 05, 2014 7:57 pm
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:
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
Posted: Wed Aug 06, 2014 12:49 am
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
Re: Changing Appearance of DSE Day Planner Window
Posted: Wed Aug 06, 2014 2:43 am
by sempersapiens
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.
Re: Changing Appearance of DSE Day Planner Window
Posted: Wed Aug 06, 2014 2:55 am
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)
Re: Changing Appearance of DSE Day Planner Window
Posted: Wed Aug 06, 2014 11:45 am
by sempersapiens
Perfect! Thank you.