Screen showed at unhovered doesn't hide after Renpy update

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Adrian_DVL
Regular
Posts: 114
Joined: Fri Mar 15, 2019 8:46 am
Completed: Clockwork Poison
Projects: Melodic Dates, Clockwork Poison: Salvation
Contact:

Screen showed at unhovered doesn't hide after Renpy update

#1 Post by Adrian_DVL » Thu Jan 07, 2021 3:32 pm

Hi!
So I have a screen with buttons which, when hovered by the mouse, pop up other screens as a tooltip, and hide these screens when unhovered. This always worked fine and smooth. But today I've updated Renpy to 7.4 and since then, the tooltip screens won't hide when I unhover the buttons. Can anyone explain me why? I didn't see any change regarding this in the Renpy changelog.

This is one of the buttons:

Code: Select all

imagebutton:
                idle "sys/button_star.png"
                hover "sys/hbutton_star.png"
                xpos 265 ypos 496
                action [Play("sound", "audio/hi.mp3"), Hide("l7_tooltip"), Replay("{0}bon1".format(girl.id))]
                hovered Show("l7_tooltip", girl=girl, l7_img = girl.tt7)
                unhovered Hide("l7_tooltip")
This is the screen 'l7_tooltip':

Code: Select all

screen l7_tooltip(girl, l7_img):
    $ ly = 370
    add l7_img pos(233, 370) at lhover(lhy=ly)
And this is the transform the tooltip screen is showed at (which, by the way, has nothing to do with the issue, since the problem still remains if I delete it):

Code: Select all

transform lhover(lhy):
    on show:
        alpha 0 zoom 0.8 ypos lhy+10
        linear .5 alpha 0 zoom 0.8 ypos lhy+10
        linear .1 alpha 1.0 zoom 1.0 ypos lhy
    on hide:
        alpha 1.0 zoom 1.0 ypos lhy
        linear .05 alpha 0 zoom 0.8 ypos lhy+10
Then, on the same screen, below that set of imagebuttons, I have other set of them for another purpose but coded exactly the same way, EXCEPT for the fact that, instead having the hovered and unhovered properties inside the imagebutton, I have them inside a mousearea block, and it works perfectly fine.

But I don't think my solution would be switching to the mousearea thing, since I have another project where the hovered and unhovered thing inside an imagebutton works perfectly fine! What can I do?

Post Reply

Who is online

Users browsing this forum: Google [Bot]