Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I have a custom tooltip build with renpy.displayable that follows the mousecuror.
In this thread ... viewtopic.php?t=19572#p253634
... I've seen this similar code:
init python:
class MouseTooltip(renpy.Displayable):
# long and irrelevant class code ...
def MouseEvent():
ui.add(mousetooltip)
config.overlay_functions.append(MouseEvent)
define mousetooltip = MouseTooltip()
I'd like to add the tooltip on every screen automatically. Since ui is considered outdated, what's the replacement for the ui.add()-line?