So, I've built a custom Journal Screen for the VN I'm working on. And the screen is displaying everything perfectly. Journals are a custom python class that stores text and image references and some metadata, and there are some methods and whatnot. Anyways. All of it works but one thing I can't figure out, and I've had no luck finding a sensible answer via google. I'm trying to make it so that when you click the Journal title at the top of the sheet of parchment (the date in the gothic font), it allows the player to re-title the journal.
So it's a textbutton
Code:
textbutton journal.title action Function(journal.input_title) text_style "journal_title"
Code:
def input_title(self):
temp = None
temp = renpy.invoke_in_new_context(renpy.input("Enter a new title for the journal.", default = self.get_title(), length=32)).strip()
if temp:
self.set_title(temp)
Code:
Exception: Cannot start an interaction in the middle of an interaction, without creating a new context.
temp = renpy.invoke_in_new_context(renpy.input("Enter a new title for the journal.", default = self.get_title(), length=32)).strip()
line to run in a new context so I can open the input from inside the Journal menu screen?Or - is there perhaps a better way to handle renaming the data?