Difference between revisions of "Action0/Canals"
From GRFSpecs
< Action0
Jump to navigationJump to searchPlanetmaker (talk | contribs) (→Graphic flags (09): version info on river flags) |
|||
| (One intermediate revision by one other user not shown) | |||
| 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) === |
||
| + | Various flags defining how the graphics are drawn. |
||
| − | 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. |
||
{| |- |
{| |- |
||
| − | ! |
+ | !Bit!!Version!!Description |
|- |
|- |
||
| + | |0||{{ottdp|1.1|2.6|ottdrev=r20352|ttdprev=r1573}}||Changes the arrangement of sprites. See [[Action3/Canals#id|Action3]] for details. It's not allowed to set this bit for undefined entries! |
||
| − | |00||{{ottdp|0.6|}}||Watercliffs||4 slope sprites||1 flat ground sprite followed by 4 slope sprites |
||
|- |
|- |
||
| + | |1..7|| || Reserved. Do not set. |
||
| − | |01||{{ottdp|0.6|}}||Locks||24||undefined |
||
| − | |- |
||
| − | |02||{{ottdp|0.6|}}||Dikes||12||undefined |
||
| − | |- |
||
| − | |03||{{ottdp|no|}}||Icons||1||undefined |
||
| − | |- |
||
| − | |04||{{ottdp|no|}}||Flat docks||4||undefined |
||
| − | |- |
||
| − | |05||{{ottdp|0.6|}}||River Slope||4||1 flat ground sprite followed by 4 slope sprites |
||
| − | |- |
||
| − | |06||{{ottdp|0.6|}}||River waterside||12*5 (Last 4 for slopes)||undefined |
||
| − | |- |
||
| − | |07||{{ottdp|no|}}||River GUI||2||undefined |
||
|} |
|} |
||
| − | |||
| − | It's not allowed to set bit 0 for undefined entries! |
||
== Example == |
== Example == |
||
Latest revision as of 17:29, 1 September 2011
Introduction
Defining properties of canals / rivers.
Properties
| Number | Size | Version | Description |
|---|---|---|---|
| 08 | B | Canals / Rivers Callback flags, see below | |
| 09 | B | 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] |
- ↑ Please note that not all feature ids support this callback
Graphic flags (09)
Various flags defining how the graphics are drawn.
| Bit | Version | Description |
|---|---|---|
| 0 | Changes the arrangement of sprites. See Action3 for details. It's not allowed to set this bit for undefined entries! | |
| 1..7 | Reserved. Do not set. |
Example
To be written