Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
March 2005: [Freeciv-Dev] (PR#12611) An overlay on the mapview |
[Freeciv-Dev] (PR#12611) An overlay on the mapview[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12611 > This patch is a demonstation of putting an overlay on top of the mapview, which can be used for requesters, windows, popup menus, etc. It's based on a structure called an element, which contains text, graphic, and an n-tree of other elements, which are drawn afterwards. Presently this code is very very ugly. Not to mention the fact that the gentree implementation contained within isn't just ugly, but is inherently evil. :) No type checking, and will probably break on some compilers. It's written as mostly client common code, with hooks to gui-win32 to draw it on top whenever the mapview is refreshed. -James Canete
element-files.tar.gz
elementdemo-3.diff
|