I am wondering if I can use a solid color square for this? I'm doing something wrong I think (unless it's just not possible)
I put the default and also defined the image for the solid color in case I couldn't put it directly in
Code: Select all
default mtt = MouseTooltip(Text(" "), padding={"x": 10, "y": -10})
Code: Select all
default currentcolor_image = Image(Solid(currentcolor, xysize=(50,50)))
Code: Select all
imagebutton:
idle Solid(currentcolor, xysize=(100,180))
clicked mtt.Action(Image(currentcolor_image))
Code: Select all
While running game code:
File "renpy/common/00start.rpy", line 185, in script
python:
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/setup.rpy", line 67, in set_default
default currentcolor_image = Image(Solid(currentcolor, xysize=(50,50)))
File "game/setup.rpy", line 67, in <module>
default currentcolor_image = Image(Solid(currentcolor, xysize=(50,50)))
Exception: Expected an image, but got a general displayable.
And I do want the tooltip to stay displayed until I click on something specific to take it off but yeah I can only get it to work with text and I'm sure a normal image would work fine