Customizing the save/load/menu screens

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Customizing the save/load/menu screens

#1 Post by Glazed Donuts »

How do you customize the layouts of the menu screens? (Save, Load, configuration/options, etc..). What .rpy file contains this information? Or is this something I have to create from scratch? Are there any templates or something that I can start from?

Raijenki
Regular
Posts: 33
Joined: Fri Sep 03, 2010 2:07 pm
Location: Natal, Brazil
Contact:

Re: Customizing the save/load/menu screens

#2 Post by Raijenki »

Hey there!
This topic may help you.

The first thing to have is the menu screens with the buttons, then you can change. You have lots of options:

1. Just changing the background, which you can do changing mm_root at options.rpy
2. Imagemaps
3. Styles
4. UI Buttons

The easiest way to do it is through imagemaps (it's the first option, actuality, but you can do anything with it aside changing bg), but if you want something more complex, try Styles or Buttons.

About editing information: Almost everything you do in Ren'Py must be at options.rpy.
Anyway, check the topic I told you. I asked the same thing :P

Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Re: Customizing the save/load/menu screens

#3 Post by Glazed Donuts »

Thank you very much :D This helps a lot!

Alright, this works for the Main Menu Screen (title screen), and I tried to apply this to the preferences screen, however, I keep getting this error:

Code: Select all

ScriptError: Name u'preferences_screen' is defined twice: at C:\Users\Admin\Desktop\renpy-6.11.0\Sample games\game00/game/preferences.rpy:76 and renpy-6.11.0/common/_layout/classic_preferences.rpym:80.
Do I need to open and edit the two_column_preferences.rpym file in order to change the layout of the preferences screen? I can't figure out another way to do this, but it keeps linking back to the Common folder, even after I commented out this line from that file:

Code: Select all

    # Load the common code.
renpy.load_module("_layout/classic_preferences_common")
When I did the Main Menu configurations, I was able to use "label main_menu" and put code in this block for the program to successfully read, but I can't figure out what it is for preferences. I tried "label preferences," "label prefs" and "label preferences_screen" to see if the program would read everything I put in that block, but nothing happens. I hope this makes sense.

Raijenki
Regular
Posts: 33
Joined: Fri Sep 03, 2010 2:07 pm
Location: Natal, Brazil
Contact:

Re: Customizing the save/load/menu screens

#4 Post by Raijenki »

Let's see if I understand...

You're trying to change preferences screen, right?
init -2 python:
layout.imagemap_preferences
This syntax of imagemap might work.

This might help:
http://www.renpy.org/wiki/renpy/doc/ref ... references

I can't help you much with this at all, since I don't know what you did :P

Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Re: Customizing the save/load/menu screens

#5 Post by Glazed Donuts »

Yeah, I was looking at that page. Is the only way to change the preferences screen is via an image map? I was just trying to move the default boxes around (like move the music volume box to a certain x/y-coordinate).

Raijenki
Regular
Posts: 33
Joined: Fri Sep 03, 2010 2:07 pm
Location: Natal, Brazil
Contact:

Re: Customizing the save/load/menu screens

#6 Post by Raijenki »

No, you can use Styles.
style.preferences_button[u'Volume'].xminimum = 133
style.preferences_button[u'Volume'].xmaximum = 133
style.preferences_button[u'Volume'].yminimum = 33
style.preferences_button[uVolume'].ymaximum = 33'

Glazed Donuts
Regular
Posts: 121
Joined: Thu Aug 12, 2010 11:47 am
Contact:

Re: Customizing the save/load/menu screens

#7 Post by Glazed Donuts »

So everything on the preferences starts with a u? So are these parameters right for the default Preferences screen? Will the program know which boxes I'm trying to move?

Display --> u'Display'
Skip Messages --> u'Skip Messages'
Music Volume --> u'Volume'
Sound Volume --> u'Sound Volume'
Voice Volume --> u'Voice Volume'
Transitions --> u'Transitions'
Skip after choice --> u'Skip after choice'
Text Speed --> u'Text Speed'
Auto-Forward Time --> u'Auto Forward Time'

Also, if the above is correct, suppose I want to customize the box itself? Would this be correct? For example, if I wanted to customize the Display box, and instead of it saying 'Windowed' and 'Fullscreen' I wanted it to say 'Window Mode' and 'Fullscreen Mode'. So would this be right?

style.preferences_button[u'Display'].Windowed = "Windowed Mode"
style.preferences_button[u'Display'].Fullscreen = "Fullscreen Mode"

Post Reply

Who is online

Users browsing this forum: Amazon [Bot]