Difference between revisions of "Action0/Canals"

From GRFSpecs
Jump to navigationJump to search
(→‎Graphic flags (09): version info on river flags)
m (→‎Canals callback (08): use references)
Line 23: Line 23:
 
!Bit!!Value!!Variable 0C value!!Callback
 
!Bit!!Value!!Variable 0C value!!Callback
 
|-
 
|-
|0||1||0x147||Enable add sprite offset callback*
+
|0||1||0x147||Enable add sprite offset callback<ref>Please note that not all feature ids support this callback</ref>
 
|}
 
|}
   
  +
<references />
<nowiki>*</nowiki> Please note that not all feature ids support this callback
 
   
 
=== Graphic flags (09) ===
 
=== Graphic flags (09) ===

Revision as of 07:33, 1 September 2011

Introduction

Defining properties of canals / rivers.


Properties

Number Size Version Description
08 B Supported by OpenTTD 1.1 (r20353)1.1 Supported by TTDPatch 2.6 (r1560)2.6 Canals / Rivers Callback flags, see below
09 B Supported by OpenTTD 1.1 (r20352)1.1 Supported by TTDPatch 2.6 (r1573)2.6 Canals / Rivers Graphic flags

Description

Canals callback (08)

For canals and rivers, the following callbacks can be defined by setting the corresponding bit in property 08:

Bit Value Variable 0C value Callback
0 1 0x147 Enable add sprite offset callback[1]
  1. Please note that not all feature ids support this callback

Graphic flags (09)

For canals and rivers, describes the provided format and features in the sprite block

If bit 0 of graphic flags is enabled, the way Sprites and the count of sprites will change.

ID Version Description Sprites Sprites when Bit 0 is set
00 Supported by OpenTTD 0.60.6 Supported by TTDPatch Watercliffs 4 slope sprites 1 flat ground sprite followed by 4 slope sprites
01 Supported by OpenTTD 0.60.6 Supported by TTDPatch Locks 24 undefined
02 Supported by OpenTTD 0.60.6 Supported by TTDPatch Dikes 12 undefined
03 Not supported by OpenTTD Supported by TTDPatch Icons 1 undefined
04 Not supported by OpenTTD Supported by TTDPatch Flat docks 4 undefined
05 Supported by OpenTTD 0.60.6 Supported by TTDPatch River Slope 4 1 flat ground sprite followed by 4 slope sprites
06 Supported by OpenTTD 0.60.6 Supported by TTDPatch River waterside 12*5 (Last 4 for slopes) undefined
07 Not supported by OpenTTD Supported by TTDPatch River GUI 2 undefined

It's not allowed to set bit 0 for undefined entries!

Example

To be written