Tooltip on mouse cursor and custom UI?
Posted: Wed Mar 27, 2024 10:40 pm
Hi there, first forum post! I'm working on my first solo project and after getting the hang of tooltips, I've reached a conflict between my creative wants and my programming abilities. Is there any way to get tooltips to show when hovering over the material, but also follow the mouse cursor? Additionally, is there a way to have tooltip text appear on a custom background, not just with a frame?
I'm using the tooltip tutorial from https://www.renpy.org/doc/html/screen_a ... l#tooltips, which is as follows:
As it stands, the tooltip text appears below the vbox, which is not what I want.
I'm using the tooltip tutorial from https://www.renpy.org/doc/html/screen_a ... l#tooltips, which is as follows:
Code: Select all
screen tooltip_example():
vbox:
textbutton "North":
action Return("n")
tooltip "To meet a polar bear."
textbutton "South":
action Return("s")
tooltip "All the way to the tropics."
textbutton "East":
action Return("e")
tooltip "So we can embrace the dawn."
textbutton "West":
action Return("w")
tooltip "Where to go to see the best sunsets."
$ tooltip = GetTooltip()
if tooltip:
text "[tooltip]"