Follow-up Comment #2, bug #9105 (project wesnoth):
I've looked into this, because I wanted it myself. It's going to be quite
difficult to do.
The problem is that tooltips are defined by rectangles in screen absolute
coordinates. The terrain icons don't have fixed screen coordinates because of
the palette scrolling.
Probably the right way to handle this is to add an offset member to the
tooltips context that can be used to relativize the tooltip rectangles, and
then change its y member when scrolling the palette. But that in itself
won't be enough, because we'll also have to impose a clipping rectangle on
the processing of tooltip events.
Then there's building the initial tooltips list...
None of this is especially complex in principle but it's the kind of code
that's a hideous bitch to debug.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?9105>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs