The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: MHD on November 18, 2011, 06:24:42 PM

Title: Unknown dat.Parameter for Graphics
Post by: MHD on November 18, 2011, 06:24:42 PM
Hi,

I am sure, that somebody of the object designers will know. There is a parameter in some dat-files, which I couldn't find in Simutrans-Wiki:
When the cursor is defined, I see e.g.

cursor=graphics.4.0,0,-16

What do the last both numers do?


Title: Re: Unknown dat.Parameter for Graphics
Post by: DirrrtyDirk on November 18, 2011, 06:45:04 PM
This is graphics offset. In your example, the graphic is moved 16 pixels upwards from the position it has in the png itself.
Title: Re: Unknown dat.Parameter for Graphics
Post by: MHD on November 18, 2011, 06:46:09 PM
Thanks a lot!
Title: Re: Unknown dat.Parameter for Graphics
Post by: greenling on November 18, 2011, 06:57:44 PM
DirrrtyDirk
Thank You!
Your info have me make smart.