Page 1 of 1

modal bug?

Posted: Sat May 22, 2021 7:04 am
by smollvrn
in 7.4.4 modal dosent prevent hover

Code: Select all

screen button_with_hoverarea:
    imagebutton:
            idle Transform("gui/slider/horizontal_idle_thumb.png")
            hover Transform("gui/slider/horizontal_hover_thumb.png")
            action (Hide("hover"), Show(" buttons_with_modal_true_but_hover_mousearea_still_work"))
            xpos 50
            ypos 50
    mousearea:
            area (0, 0, 30, 30)
            hovered Show("hover")
            unhovered Hide("hover")
screen buttons_with_modal_true_but_hover_mousearea_still_work:
    modal True #modal true but dosent work
    hbox:
        textbutton "Save" action ShowMenu("save")
screen hover:
      imagebutton:
            idle "gui/button/choice_hover_background.png"
            action NullAction()
label start:
    show screen button_with_hoverarea
    scene bg room
    e "after push blue button, in renpy 7.4.2  mousearea hover in top-left corner doesn't work, in 7.4.4 modal true doesnt prevents hover mousearea"
    e "You've created a new Ren'Py game."
    e "Once you add a story, pictures, and music, you can release it to the world!"
return

Re: modal bug?

Posted: Sat May 22, 2021 8:18 pm
by PyTom
Could you please test Ren'Py 7.4.5? It should have a fix for this.

Re: modal bug?

Posted: Sun May 23, 2021 10:17 am
by smollvrn
PyTom wrote:
Sat May 22, 2021 8:18 pm
Could you please test Ren'Py 7.4.5? It should have a fix for this.
no chages with 7.4.4
Image

Re: modal bug?

Posted: Sun May 23, 2021 2:45 pm
by PyTom
Ah, I honestly didn't see that this was using a mousearea and not a button.

This is fixed in https://github.com/renpy/renpy/commit/f ... 8789b6febe , which will be the next nightly and in 7.4.5.