[Question] Making Two Menus?

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
AceQueenKimu24
Newbie
Posts: 19
Joined: Mon May 08, 2017 5:17 am
Projects: Blooming Romance | Marionette
Deviantart: 24WildHeart
itch: 24_wildheart
Contact:

[Question] Making Two Menus?

#1 Post by AceQueenKimu24 » Tue Dec 29, 2020 7:31 pm

Hi there! I was wondering how one would go by to make two main menus (or the general GUI) styles and have them switched once a condition has been met. I was thinking of making two screens that could define as the main menu and just use the other once the tagged, however, I'm having trouble calling the second type as the primary main menu.

Is there perhaps a more efficient way of doing this?
Image

emanuel
Newbie
Posts: 12
Joined: Fri Dec 25, 2020 8:44 am
Contact:

Re: [Question] Making Two Menus?

#2 Post by emanuel » Tue Dec 29, 2020 7:53 pm

You can set the variable _game_menu_screen (notice the leading underscore) to another screen. That requires you to have two screens. I don't know if you can only change the style instead.

User avatar
_ticlock_
Veteran
Posts: 393
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: [Question] Making Two Menus?

#3 Post by _ticlock_ » Tue Dec 29, 2020 9:31 pm

Hi, AceQueenKimu24,

Is it possible you are making Screen Variant

User avatar
AceQueenKimu24
Newbie
Posts: 19
Joined: Mon May 08, 2017 5:17 am
Projects: Blooming Romance | Marionette
Deviantart: 24WildHeart
itch: 24_wildheart
Contact:

Re: [Question] Making Two Menus?

#4 Post by AceQueenKimu24 » Wed Dec 30, 2020 12:24 am

emanuel wrote:
Tue Dec 29, 2020 7:53 pm
You can set the variable _game_menu_screen (notice the leading underscore) to another screen. That requires you to have two screens. I don't know if you can only change the style instead.
I think I get the gist of what _game_menu_screen does, but is it ok to ask for a sample code? I'm not exactly sure how it should be used ^^;
Image

User avatar
AceQueenKimu24
Newbie
Posts: 19
Joined: Mon May 08, 2017 5:17 am
Projects: Blooming Romance | Marionette
Deviantart: 24WildHeart
itch: 24_wildheart
Contact:

Re: [Question] Making Two Menus?

#5 Post by AceQueenKimu24 » Wed Dec 30, 2020 12:25 am

_ticlock_ wrote:
Tue Dec 29, 2020 9:31 pm
Hi, AceQueenKimu24,

Is it possible you are making Screen Variant
Oh, no. I was planning to make two types of interfaces for one device but after reaching a certain part of the story, the interface would then get an overhaul and be completely replaced, if that makes sense ^^;
Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: [Question] Making Two Menus?

#6 Post by Imperf3kt » Wed Dec 30, 2020 8:24 am

Is perhaps this of any use?
viewtopic.php?f=52&t=56021&p=536988#p536988
(A small explanation on how its controlled here)
viewtopic.php?f=52&t=56021&p=536988#p528872

Basically, you create multiple styles or screens, and based on a variable, you change what is shown.

(Sorry I haven't got the time to separate out the relevant portions of code)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Post Reply

Who is online

Users browsing this forum: Bing [Bot]