First method:
I am an idiot to think i can see words when the background is dark.
now i have added a sketch background
my code is:
(easy to copy version below)
Code: Select all
screen stats:
add "sketch1548944620282.png"
imagebutton:
idle "SmartSelect_20190102-003134_Samsung Notes - Copy.jpg"
xpos 0.04
ypos 0.25
tooltip "Nobel"
$tooltip = GetTooltip()
if tooltip:
text "[tooltip]"
then same thing. My mouse is hovering the picture, but no words come out,
I am thinking to stop figuring this method and try to get the second method figured out first.
2nd Method:
I am an idiot for not putting the mouse-tooltip.rpy into the game folder.
Now I have put it into the game folder.
my code is this:
easy to copy version below:
Code: Select all
default mtt = MouseTooltip(Text(""))
screen stats:
add mtt
imagebutton:
idle "SmartSelect_20190102-003134_Samsung Notes - Copy.jpg"
xpos 0.04
ypos 0.25
hovered mtt.Action(Text("Nobel"))
It now show this:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "renpy/common/00start.rpy", line 185, in script
python:
File "renpy/common/00start.rpy", line 186, in <module>
renpy.execute_default_statement(True)
File "game/script.rpy", line 20, in set_default
default mtt = MouseTooltip(Text(""))
File "game/script.rpy", line 20, in <module>
default mtt = MouseTooltip(Text(""))
File "game/mouse_tooltip.rpy", line 16, in __init__
self.pad_x = padding.get('x', 0)
AttributeError: 'NoneType' object has no attribute 'get'
Did i do something wrong when copy pasting the mouse_tooltip.rpy into the game folder?