Adding a “Delete” Menu to Game menu screen

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
SpagootBoi
Regular
Posts: 25
Joined: Sun Mar 22, 2020 12:02 am
Completed: Infatuation (Visual Novel Adaptation)
Projects: Canyonlands: American Folklore
Tumblr: plant324
itch: plantmama
Contact:

Adding a “Delete” Menu to Game menu screen

#1 Post by SpagootBoi » Fri Jun 05, 2020 6:30 pm

Hello! I consult you in my hour of need. I did editing to my save and load menu so that a button was above the screenshot of a save file.

I want to go about making a delete menu so that the player can just go delete a save file with a confirm message. How would I go about doing this?

Thanks for any help I get!
Image


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

Re: Adding a “Delete” Menu to Game menu screen

#2 Post by Imperf3kt » Fri Jun 05, 2020 7:01 pm

I've never used it, but I assume the FileDelete action can be used
https://www.renpy.org/doc/html/screen_a ... FileDelete

Something like

Code: Select all

Button:
    action FileDelete(1, confirm=True)
The number should reflect which slot to delete, change it through 1-6) for each button.
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: No registered users