Ren'Py - Creating a new UI page

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
APD13
Newbie
Posts: 7
Joined: Wed Sep 26, 2018 3:47 pm
Completed: VIS
Projects: VIS
Deviantart: madkinggames
Contact:

Ren'Py - Creating a new UI page

#1 Post by APD13 »

Hi,

Can someone help with this thing? I've created a button in the gameplay UI for player status but I don't know how to create and make the proper link to the page where the user will be redirected for stats view.

For creating the button in UI I used in the screens.rpy:
screen button:
vbox xalign 1.0 yalign 1.0:

imagebutton:
idle "button_idle.png"
hover "button_hover.png"
action ui.callsinnewcontext("aff_screen_label").

Thank you in advance!

User avatar
That Oyajicon
Regular
Posts: 33
Joined: Sun May 29, 2016 7:31 pm
Location: The Pillars of Nosgoth
Contact:

Re: Ren'Py - Creating a new UI page

#2 Post by That Oyajicon »

I'd be interested in learning this, too. I'm working on a game where activating certain story flags unlocks "extra scenes" that can be viewed/played from a sub-menu on the main menu. The problem is, I'm not really sure how to add an additional page to the title screen.

Here's a quick and terrible mockup I made:

Image

Image

Post Reply

Who is online

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