Code: Select all
grid 7 4:
for i in range(1, 29):
frame xmaximum 75 ymaximum 75:
if i == 3: #This is a placeholder for the event on Spring 3rd. Right now it's always pink despite the event month.
text str(i) xalign 0.5 yalign 0.5 color "#FF1493"
elif i == day:
text str(i) xalign 0.5 yalign 0.5 color "#FF1493" #If today is the i listed, make it pink
elif i < day:
text str(i) xalign 0.5 yalign 0.5 color "#D8BFD8" #Grey it out if the day has passed.
else:
text str(i) xalign 0.5 yalign #Else keep it a plan color
Code: Select all
init python:
import renpy.store as store
class SEvent(store.object):
def __init__(self, name, month, day):
self.name = name
self.month = month
self.day = day
event_list.insert(0, self)
def add_event(name, month, day):
events = SEvent(name, month, day)
Code: Select all
$ event_list = []
$ add_event("Birthday", "Spring", 3)