If the container for the buttons is also a button, then when you hover the cursor over it, Renpy considers that the cursor was hovered over all the buttons inside. They all light up as if I hovered over each one of them.
Was this done on purpose? At the moment this looks like a bug.
I usually use a button container with an empty action so that clicking on the container doesn't trigger the dismiss. I don't need buttons inside another button to become one button.
Code: Select all
init:
transform hover_at(t=.15):
on idle:
ease t zoom 1 alpha .25
on hover:
ease t zoom 1.2 alpha 1
screen test:
# i want to ensure that clicking this button does not activate the dismiss
button:
# if you hover over this button
background gui.accent_color
align(.5, .5)
xysize(config.screen_width // 2, config.screen_height // 2)
action NullAction()
# all the buttons inside will be highlighted
for i in [ .25, .5, .75 ]:
imagebutton:
idle Text("●", size=222)
focus_mask True
anchor(.5, .5)
pos(i, .5)
action Function(renpy.notify, "clicked")
at hover_at
label start:
show screen test
pause
return
Thank you for your attention.