modal bug?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
smollvrn
Newbie
Posts: 14
Joined: Sun Mar 14, 2021 3:24 pm
Contact:

modal bug?

#1 Post 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

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: modal bug?

#2 Post by PyTom »

Could you please test Ren'Py 7.4.5? It should have a fix for this.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

smollvrn
Newbie
Posts: 14
Joined: Sun Mar 14, 2021 3:24 pm
Contact:

Re: modal bug?

#3 Post 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

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: modal bug?

#4 Post 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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users