a set of comfort tools just like my own pyjamas
you can only have one active input per screen in renpy.
rentry is designed to break that limit (well, not exactly, it cheats; it only generates those inputs automatically).
1653639026047.mp4
to start with, put rentry.rpy
in your game directory.
for example, if you have some class defined like this:
init python:
class Foo:
def __init__(self):
self.name = ""
self.desc = ""
self.hidden = ""
foo = Foo()
you might only want to update foo
's name and desc fields, so define the keys for Foo
instances:
define foo_keys = ["name", "desc"]
then call it in a screen like this:
textbutton "edit_foo" action Show("dict_input", keys=foo_keys, obj=foo)
where the obj
parameter is the object you want to update.
(next todo: how to update number fields)