init python: class Calendar(): def __init__(self, day, time): self.dayNames = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Bazuka" ] self.timeNames = [ "Morning", "Afternoon", "Evening", "Night" ] self.SetDay(day) self.SetTime(time) def SetDay(self, day): i = 0 for name in self.dayNames: i += 1 if name == day: self.day = i def SetTime(self, time): i = 0 for name in self.timeNames: i += 1 if name == time: self.time = i global dayTime dayTime = self.time < 3 def NextTime(self): self.time += 1 if (self.time > len(self.timeNames)): self.NextDay() self.time = 1 global dayTime dayTime = self.time < 3 renpy.call("bedroom_event_everyday_0012") def NextDay(self): self.day += 1 if (self.day >= len(self.dayNames)): self.day = 1 def GetDay(self): return self.dayNames[self.day-1] def GetTime(self): return self.timeNames[self.time-1] def GetDayText(self): return self.GetDay()[:3] + "." def GetImage(self): return "calendar/" + self.GetTime() + ".png" screen calendar(): $ FONT_SIZE = 70 $ TIME_ICON = "calendar/time_" + navigation.calendar.GetTime() + ".png" $ BTN_TIME = "calendar/btnTime.png" $ HOVER_VAL = 0.25 if navigation.calendar is not None: add TIME_ICON pos (1480,18) text navigation.calendar.GetDayText() kerning -0.5 size 18 color "#FFFFFF" pos (1595,45) font "fonts/ArchitectsDaughter.ttf" text navigation.calendar.GetTime() kerning -0.5 size 16 color "#FFFFFF" pos (1545,23) font "fonts/ArchitectsDaughter.ttf" $ global canAdvanceTime $ advance = canAdvanceTime if advance: imagebutton: idle im.MatrixColor(BTN_TIME, im.matrix.tint(1, 1, 1)) hover im.MatrixColor(BTN_TIME, im.matrix.tint(1, 1, 1) * im.matrix.brightness(HOVER_VAL)) selected_idle im.MatrixColor(BTN_TIME, im.matrix.tint(1, 1, 1)) selected_hover im.MatrixColor(BTN_TIME, im.matrix.tint(1, 1, 1) * im.matrix.brightness(HOVER_VAL)) action [Function(navigation.calendar.NextTime), Function(navigation.CallEvent, navigation.currentRoomName)] focus_mask None pos (1568, 80) # Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc