Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 4:28 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat May 12, 2012 4:56 pm 
Miko-Class Veteran
User avatar

Joined: Mon Feb 06, 2012 9:50 pm
Posts: 759
Location: NYC
Projects: Icebound
Organization: Fastermind Games
I was wondering how I could remap the red "Close" button to do something else (from the init block). For example, "Esc" calls _game.menu.screen, so what does "Close" call? The reason is, I want it to call a specific screen on top of the menu instead of replacing it.

_________________
ImageImage


Top
 Profile Send private message  
 
PostPosted: Sun May 13, 2012 10:10 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10849
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
The first time it's called, it runs config.quit_action. So if you change that, you should get the effect you want.

As a safety valve, if it's hit again within a few seconds, Ren'Py will shut down without regard to what the game is doing. (This prevents faulty or hostile coding from locking up a user's system.)

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Tue May 15, 2012 6:31 am 
Miko-Class Veteran
User avatar

Joined: Mon Feb 06, 2012 9:50 pm
Posts: 759
Location: NYC
Projects: Icebound
Organization: Fastermind Games
Thanks! I just replaced it like so:

Code:
config.quit_action = Quit(confirm=True)


To prevent it from replacing the menu screen.

_________________
ImageImage


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group