it updates i want to have an overlay on the top right hand side of the game saying "XXX's profile has been updated"
It worked fine when I had only one information at a time, but can't seem to get it to run with a list of information:
Code: Select all
init python:
information = []
def popup_overlay():
if len(information) > 0 and hide_popups == False:
ui.frame(xanchor="right",xpos=1.0, ypos=0.1)
ui.text(information[0])
config.overlay_functions.append(popup_overlay)
screen show_popup_info:
timer 3.0 repeat True action If(((information > 0) and information), true=information.pop(0), false=Hide('show_popup_info'))
Code: Select all
$ information.append("Girl's profile is updated")
show screen show_popup_info
the error i get is:
File "game/functions.rpy", line 2, in <module>
timer 3.0 repeat True action If(information, true=information.pop(0), false=Hide('show_popup_info'))
IndexError: pop from empty list