Page 1 of 1

Save?Load textbutton wont work

Posted: Fri Oct 23, 2015 4:26 pm
by Vnigma
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

Re: Save?Load textbutton wont work

Posted: Sat Oct 24, 2015 1:55 am
by PyTom
Sorry, but what does the delete save button look like?

Re: Save?Load textbutton wont work

Posted: Sat Oct 24, 2015 3:53 am
by Vnigma
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.