Code: Select all
default page_name_value = FilePageNameInputValue(pattern=_("Page {}"))
Code: Select all
use game_menu(title):
fixed:
## This ensures the input will get the enter event before any of the
## buttons do.
order_reverse True
button:
style "page_label"
key_events True
xalign 0.5
action page_name_value.Toggle()
input:
style "page_label_text"
value page_name_value
1. I don't want my page name can be renamed, so i want it to stay as it is, like Page 1, Page 2, Page 3 and so on. How can i change it? I've tried to use text but i don't know what function to use so that the number after 'Page' will change automatically?
2. what is fixed? when should we use fixed?
3. order_reverse True. What kind of reverse that this sets? I've tried to change it to False but the order stayed the same.