Skip to content

a set of comfort tools just like my own pyjamas

Notifications You must be signed in to change notification settings

idelem/renpyjamas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

renpyjamas

a set of comfort tools just like my own pyjamas

rentry

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)

About

a set of comfort tools just like my own pyjamas

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages