Save?Load textbutton wont work

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
Vnigma
Regular
Posts: 29
Joined: Wed Sep 16, 2015 6:43 pm
Projects: Origin of War
Organization: VNigma
Contact:

Save?Load textbutton wont work

#1 Post by Vnigma » Fri Oct 23, 2015 4:26 pm

I have this problem in my save and load menus when i use textbuttons:

Code: Select all

screen save():
        add"load_save.png"
        textbutton "Prefrences" background "empty.png" text_style "battlebutton_text" xalign 0.2 yalign 0.9 action ShowMenu("preferences")
        textbutton "save" background "empty.png" text_style "battlebutton_text" xalign 0.35 yalign 0.9 action ShowMenu("save")
        textbutton "Load" background "empty.png" text_style "battlebutton_text" xalign 0.45 yalign 0.9 action ShowMenu("load")
        textbutton "Main Menu" background "empty.png" text_style "battlebutton_text" xalign 0.55 yalign 0.9 action MainMenu()
        textbutton "Quit" background "empty.png" text_style "battlebutton_text" xalign 0.65 yalign 0.9 action Quit() 
        
        textbutton _("Back") background "empty.png" text_style "battlebutton_text" xalign 0.7 yalign 0.65 activate_sound "click2.mp3" hover_sound "click2.mp3" action Return()  
        textbutton _("Slot 1 :  [file_name1]. [file_time1!t]\n[save_name1!t]") background "empty.png" text_style "battlebutton_text" xalign 0.15 yalign 0.2  activate_sound "click2.mp3" hover_sound "click2.mp3" action FileSave(1)
        textbutton _("Slot 2 :  [file_name2]. [file_time2!t]\n[save_name2!t]") background "empty.png" text_style "battlebutton_text" xalign 0.15 yalign 0.25  activate_sound "click2.mp3" hover_sound "click2.mp3" clicked FileSave(2)
        textbutton _("Slot 3 :  [file_name3]. [file_time3!t]\n[save_name3!t]") background "empty.png" text_style "battlebutton_text" xalign 0.15 yalign 0.3  activate_sound "click2.mp3" hover_sound "click2.mp3" clicked FileSave(3)
        textbutton _("Slot 4 :  [file_name4]. [file_time4!t]\n[save_name4!t]") background "empty.png" text_style "battlebutton_text" xalign 0.15 yalign 0.35  activate_sound "click2.mp3" hover_sound "click2.mp3" clicked FileSave(4)
        textbutton _("Slot 5 :  [file_name5]. [file_time5!t]\n[save_name5!t]") background "empty.png" text_style "battlebutton_text" xalign 0.15 yalign 0.4  activate_sound "click2.mp3" hover_sound "click2.mp3" clicked FileSave(5)
        textbutton _("Slot 6 :  [file_name6]. [file_time6!t]\n[save_name6!t]") background "empty.png" text_style "battlebutton_text" xalign 0.15 yalign 0.45  activate_sound "click2.mp3" hover_sound "click2.mp3" clicked FileSave(6)
        textbutton _("Slot 7 :  [file_name7]. [file_time7!t]\n[save_name7!t]") background "empty.png" text_style "battlebutton_text" xalign 0.15 yalign 0.5  activate_sound "click2.mp3" hover_sound "click2.mp3" clicked FileSave(7)
the save/load slots can't neither be clicked nor hovered every time i add a delete save button, if you can figure this out please respond, and ty

User avatar
PyTom
Ren'Py Creator
Posts: 15446
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Save?Load textbutton wont work

#2 Post by PyTom » Sat Oct 24, 2015 1:55 am

Sorry, but what does the delete save button look like?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Vnigma
Regular
Posts: 29
Joined: Wed Sep 16, 2015 6:43 pm
Projects: Origin of War
Organization: VNigma
Contact:

Re: Save?Load textbutton wont work

#3 Post by Vnigma » Sat Oct 24, 2015 3:53 am

PyTom wrote:Sorry, but what does the delete save button look like?
sry i forgot to include the delete code, it looks like this:

Code: Select all

textbutton _("Delete") background "empty.png" text_style "battlebutton_text" xalign 0.6 yalign 0.2  activate_sound "click2.mp3" hover_sound "click2.mp3" clicked FileDelete(1)
if i use this code on a save slot it will stop working as previously mentioned.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]