Need explaination on layout

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
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Need explaination on layout

#1 Post by pratomoastan » Sat Jul 09, 2016 2:09 am

Whats the diffrence between this layout then other layout ?
layout.LOADING
when it will be shown ?
i mistaken this layout as a 'NOW LOADING' screen ><

I Already Read The Documentation

Code: Select all

layout.ARE_YOU_SURE - "Are you sure?" This should be the default if the message is unknown.
layout.DELETE_SAVE - "Are you sure you want to delete this save?"
layout.OVERWRITE_SAVE - "Are you sure you want to overwrite your save?"
layout.LOADING - "Loading will lose unsaved progress.nAre you sure you want to do this?"
layout.QUIT - "Are you sure you want to quit?"
layout.MAIN_MENU - "Are you sure you want to return to the mainnmenu? This will lose unsaved progress."
layout.END_REPLAY - "Are you sure you want to end the replay?"
And im confused with this word 'Loading will lose unsaved progress'
So loading the game will make user lose unsaved data ?
~ Sempai !!!

User avatar
andrewngn13
Regular
Posts: 65
Joined: Thu Nov 13, 2014 2:41 pm
Projects: Recast
Skype: andrewngn13
Location: Glued to my desktop
Contact:

Re: Need explaination on layout

#2 Post by andrewngn13 » Sat Jul 09, 2016 5:12 am

I believe the layouts are mostly used when you customize your save/load menus? Anyone with actual experience should correct me since I'm still a newbie at this.

The layouts are messages that pop up asking the user to confirm their decision.

The 'Loading will lose unsaved progress' is for people who are loading while on a current playthrough of the game. If they load a save file while playing, the progress they have made prior to that point is lost.
"Feel feel to idea-bounce off me."
No, like seriously, just send a pm and I'll respond what I think. I'm open to reading anything.

User avatar
DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: Need explaination on layout

#3 Post by DragoonHP » Sat Jul 09, 2016 2:48 pm

What andrew said is right. And layouts aren't used anywhere (for the most part). So you can safely ignore them.

Post Reply

Who is online

Users browsing this forum: Google [Bot]