Customizing the save/load/menu screens
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
-
- Regular
- Posts: 121
- Joined: Thu Aug 12, 2010 11:47 am
- Contact:
Customizing the save/load/menu screens
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?
Re: Customizing the save/load/menu screens
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
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
-
- Regular
- Posts: 121
- Joined: Thu Aug 12, 2010 11:47 am
- Contact:
Re: Customizing the save/load/menu screens
Thank you very much 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:
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:
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.
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.
Code: Select all
# Load the common code.
renpy.load_module("_layout/classic_preferences_common")
Re: Customizing the save/load/menu screens
Let's see if I understand...
You're trying to change preferences screen, right?
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
You're trying to change preferences screen, right?
This syntax of imagemap might work.init -2 python:
layout.imagemap_preferences
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
-
- Regular
- Posts: 121
- Joined: Thu Aug 12, 2010 11:47 am
- Contact:
Re: Customizing the save/load/menu screens
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).
Re: Customizing the save/load/menu screens
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'
-
- Regular
- Posts: 121
- Joined: Thu Aug 12, 2010 11:47 am
- Contact:
Re: Customizing the save/load/menu screens
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"
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"
Who is online
Users browsing this forum: Amazon [Bot]