And so I did.
https://github.com/koroshiya/python-calendar
In order to include the calendar in your project, grab the files from the renpy directory and paste them into your project's "game" folder.
That's pretty much it. To activate the calendar, you need to set a few variables and then jump to the calendar. eg.
Code: Select all
$ dayofmonth = 2
$ month = 1
$ direction = 2
$ label_cont = "chapter_01"
jump calendar
There are some other variables you can set (eg. the background, frame, buttons, delays, etc.). It's all documented in the calendar.rpy file.
I'll update it some more later. Current limitations include:
-
I haven't tested it thoroughly either. Everything works in the pygame version, so hopefully it's okay.
Also, I know that the current images being used don't really fit in.
The onyx and gray images are public domain images I was using in a medieval RPG, and the photo is one I took.
I'd like to replace all three, maybe have seasonal backgrounds.
For the time being, you can change all three images by setting the variables yourself inside of the calendar.rpy file. Just be mindful of the sizes until I do something about the resolution.