Custom save buttons?

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
Viridis
Newbie
Posts: 17
Joined: Tue Nov 15, 2011 12:55 am
Contact:

Custom save buttons?

#1 Post by Viridis »

So, if I have a couple of buttons on the side of my text box...

like so...
Example buttonstuff.png
and I wanted to make those buttons work as the save and quit buttons and also get rid of the default ones, how would I do that...

I've looked everywhere and I just cant seem to find an answer

Help would be greatly appreciated
thank you...

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Custom save buttons?

#2 Post by SundownKid »

That would be moving the buttons from the navigation bar to the screen itself. The easiest way would be to edit the "quick_menu" screen and add imagebuttons that do the same thing as the save and quit buttons from navigation.

However, I would probably just use the quick save/load buttons and make them more prominent, and add a second quit button. That way the navigation bar won't have any stuff confusingly missing.

User avatar
eesy
Regular
Posts: 39
Joined: Mon May 14, 2012 3:30 am
Contact:

Re: Custom save buttons?

#3 Post by eesy »

edit your screens.rpy, kinda like

Code: Select all

screen quick_menu:

    # Add an in-game quick menu.
    hbox:
        style_group "quick"
    
        xalign 0.995
        yalign 1.0

        
        imagebutton: 
            idle "assets/pictures/save_idle.jpg" 
            hover "assets/pictures/save_hover.jpg"
            action ShowMenu('save')
thats example on how i have custom buttons in my textbox.
and i think you will have to change the hbox to vbox. and manage the xalign and yalign based on the size of your textbox.
hope this helps
I'm epic noob!

Post Reply

Who is online

Users browsing this forum: No registered users