So Renpy has a neat feature where you can name the save pages by clicking on the page name. I was adding the UI to my save screen and went to test everything and found that this input code has suddenly stopped working. I can click in and delete text, but I can't type anything new. Any ideas? Here is the file slot code:
Code: Select all
screen file_slots(title):
default page_name_value = FilePageNameInputValue(pattern=_("Page {}"), auto=_("Automatic saves"), quick=_("Quick saves"))
use navigation
add "save_bg"
vbox:
style_prefix "page"
spacing 1
xpos 0.036
yalign 0.55
#spacing gui.page_spacing
imagebutton auto "save_up_%s" action FilePagePrevious() xalign 0.5
if config.has_autosave:
textbutton _("{#auto_page}Auto saves") action FilePage("auto") style "save_style" text_style "save_style"
if config.has_quicksave:
textbutton _("{#quick_page}Quick saves") action FilePage("quick") style "save_style" text_style "save_style"
## range(1, 10) gives the numbers from 1 to 9.
for page in range(1, 11):
textbutton "[page]" action FilePage(page) xalign 0.5 style "save_style" text_style "save_style"
imagebutton auto "save_down_%s" action FilePageNext() xalign 0.5
use game_menu(title):
fixed:
## This ensures the input will get the enter event before any of the
## buttons do.
order_reverse True
## The page name, which can be edited by clicking on a button.
button:
style "page_label"
key_events True
xalign 0.5
action page_name_value.Toggle()
input:
style "page_label_text"
value page_name_value
## The grid of file slots.
grid gui.file_slot_cols gui.file_slot_rows:
style_prefix "slot"
xalign 0.5
yalign 0.5
spacing gui.slot_spacing
for i in range(gui.file_slot_cols * gui.file_slot_rows):
$ slot = i + 1
button:
action FileAction(slot)
has vbox
add FileScreenshot(slot) xalign 0.5
text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
style "slot_time_text"
text FileSaveName(slot):
style "slot_name_text"
key "save_delete" action FileDelete(slot)
## Buttons to access other pages.
add "save_fg"
button:
style "page_label"
key_events True
xalign 0.5
action page_name_value.Toggle()
input:
style "page_label_text"
value page_name_value
to other places to seeing if maybe it was the image I'd added on top of it, but that didn't seem to have any effect. Any help would be appreciated!