kyouryuukunn / renpy-ActionEditor3

125 stars 13 forks source link

Couldn't reproduce the state of images at specific time. #14

Closed kyouryuukunn closed 5 months ago

kyouryuukunn commented 1 year ago

https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=66013&p=557882#p557882

kyouryuukunn commented 1 year ago

https://github.com/renpy/renpy/issues/4168

kyouryuukunn commented 5 months ago

Although written in a symptomatic manner, the following code can be used to specify the time

    class FixedTimeDisplayable(renpy.Displayable):

        def __init__(self, d, st, at, **properties):
            super(FixedTimeDisplayable, self).__init__(**properties)

            self.d = d
            self.fixed_st = st
            self.fixed_at = at

        def render(self, width, height, st, at):

            self.d.render(width, height, 0, 0)
            return self.d.render(width, height, self.fixed_st, self.fixed_at)