I thought I'd make my first post a helpful one. I'm developing a 20+ hour sci-fi action epic (It's almost complete), and having a well functioning Tips List was crucial. I managed to get the buttons working quite smoothly, so read the below and add it into your game if it helps.
For anyone who wants buttons that take you straight back into the game, and that returns you to the game from a hyperlink without skipping forward, replace / add in these buttons.
Put the below in the List screen:
Code: Select all
if main_menu:
textbutton "Close Entry" action [Hide("encyclopaedia_list"), Return()] xfill True
else:
textbutton "Close Entry" action [Hide("encyclopaedia_list"), Return(), RestartStatement()] xfill TrueCode: Select all
frame:
style_prefix "encyclopaedia"
xfill True
yalign .88
hbox:
if main_menu:
xfill True
# Flavour text that displays the current sorting mode
#text "Sorting Mode: {}".format(enc.labels.sorting_mode)
textbutton "Entry List" id "close_entry_button" xalign .55 clicked [enc.ResetSubPage(), Show("encyclopaedia_list", None, enc)] style "gui_button"
textbutton "Close Entry" id "close_entry_button" xalign .25 action [Hide("encyclopaedia_entry"), Return()] style "gui_button"
else:
xfill True
# Flavour text that displays the current sorting mode
#text "Sorting Mode: {}".format(enc.labels.sorting_mode)
textbutton "Entry List" id "close_entry_button" xalign .55 clicked [enc.ResetSubPage(), Show("encyclopaedia_list", None, enc)] style "gui_button"
textbutton "Close Entry" id "close_entry_button" xalign .25 action [Hide("encyclopaedia_entry"), Return(), RestartStatement()] style "gui_button"Need any more help just let me know!
