Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] Re: (PR#14874) hex2t tileset for 2.0.99
Home

[Freeciv-Dev] Re: (PR#14874) hex2t tileset for 2.0.99

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: himasaram@xxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#14874) hex2t tileset for 2.0.99
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Dec 2005 08:15:05 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14874 >

Daniel Markstedt wrote:

> Is it possible to let the _unit_ tile size decide the panel size: i.e. 
> the largest common tile size of all "u.xxx" sprites? Then we could use 
> the Trident unit spec directly and offset the unit sprites accordingly. 
> I did this in the attached screen with the offset of x=1 y=59.

You should be using the trident unit spec directly...that's what 
isotrident and isophex do.  However the unit_offset values in the 
tileset aren't enough to determine the panel size.  What's needed is 
either to determine this at runtime (by clipping all units) or to let 
the tileset specify it separately (unit_rectangle_x/y/w/h, perhaps). 
Determining it at runtime is what's done in the citydlg; however this 
isn't very good since it's hard to take sprites other than the base unit 
sprite (i.e., flags, activity sprites, etc.) into account.

-jason





[Prev in Thread] Current Thread [Next in Thread]