I've added the tooltip code from the documentation into my imagebutton quickmenu.
Code: Select all
screen quick_menu():
zorder 100
use tooltipscreen
hbox:
yalign 0.637
xalign 0.889
spacing 9
imagebutton:
idle "gui/alt_save_idle.png"
auto "gui/save_%s.png"
action ShowMenu ('save')
focus_mask True
yalign 1.0
style "main_imagebutton"
imagebutton idle "gui/alt_load_idle.png" auto "gui/load_%s.png" action ShowMenu ('load') focus_mask True yalign 1.0 style "main_imagebutton"
imagebutton idle "gui/alt_rollback_idle.png" auto "gui/rollback_%s.png" action Rollback() focus_mask True yalign 1.0 style "main_imagebutton" tooltip "Back one line (Mouse Wheel)"
imagebutton idle "gui/alt_skip_idle.png" auto "gui/skip_%s.png" action Skip () alternate Skip(fast=True, confirm=True) focus_mask True yalign 1.0 style "main_imagebutton" tooltip "Skip seen text (Ctrl)"
imagebutton idle "gui/alt_menu_idle.png" auto "gui/menu_%s.png" action ShowMenu('gamemenu_settings') focus_mask True yalign 1.0 style "main_imagebutton"
screen tooltipscreen:
modal False
sensitive False
layer "master"
roll_forward True
$ tooltip = GetTooltip()
if tooltip:
text tooltip size 20 yalign 0.637 xalign 0.889 yoffset -38 outlines [(2,"#000000",0,0)]
Focus works fine with mouse, but using either keyboard or gamepad makes the buttons completely unhoverable. They can't gain focus at all.
It's definitely the tooltips doing this. Nothing I do gives them focus (apart from default_focus True, but you still can't toggle around with the buttons, and I can't really have default focus on a quickmenu anyway), but everything works totally fine when I comment out the tooltip button attribute. Have checked this on a clean project with a new quickmenu and the error still happens.
What is really weird to me about this is that when I go to a choice menu, the button focus works totally fine.
https://youtu.be/wigiy46alBA
I don't know enough about Ren'Py's internals to figure out what exactly about the choice screen fixes this issue (I'm assuming something about default focus? but I've tried basically everything), so any help on a fix for this would be very appreciated! \o/