Is it possible to force it to another layer? (As in, add a custom layer above screens and show it there.) What ends up happening is the tooltip ends up displaying behind the other imagemap buttons on the screen.
Relevant part of the non-mtt code:
Code: Select all
screen council_map2():
if groks_common:
add "images/council_map/world-council-map-b.jpg"
else:
add "images/council_map/world-council-map-a.jpg"
#add "map-tiling.png" # used for debugging imagemap locations
add mtt # adds the MouseToolTip class from https://lemmasoft.renai.us/forums/viewtopic.php?t=47205
## Creates new imagemap for each button
if open_locations["light_house"]:
imagemap:
ground "images/buttons/hirise.png"
hover "images/buttons/hirise-hover.png"
alpha True
xpos 180 ypos 720
hotspot (0, 0, 120, 120) action Jump("meh") hovered mtt.Action(Text("{=map_tooltip_style}Light Side\nhome{/=map_tooltip_style}", outlines=[(absolute(2), "#000000", 0, 0)]))
if open_locations["worker_flats"]:
imagemap:
ground "images/buttons/projects.png"
hover "images/buttons/projects-hover.png"
alpha True
xpos 120 ypos 60
hotspot (0, 0, 120, 120) action Jump("meh") hovered mtt.Action(Text("{=map_tooltip_style}Workers Flats{/=map_tooltip_style}", outlines=[(absolute(2), "#000000", 0, 0)]))