The placement of tooltip is controlled by the WML of the GUI engine. The
code is not used yet, only available with a proof-of-concept define named
DEBUG_TOOLTIP.
This document describes parts of the design of gui2 and the ideas
behind the gui in general. It's composed of several notes I've written
during the development. More parts will be added later.