Difference between revisions of "NML:Canals"
From GRFSpecs
Jump to navigationJump to searchPlanetmaker (talk | contribs) (Add: dike_map variable and its values as of NML 2074) |
m (Changed the appropriate tables from t to sortable) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
The 'normal sprites' column contains the amount of sprites that should be provided for this feature. If the appropriate bit in the graphics_flags-property (see below) the amount of sprites stated in the 'alternative sprites' column must be provided instead. |
The 'normal sprites' column contains the amount of sprites that should be provided for this feature. If the appropriate bit in the graphics_flags-property (see below) the amount of sprites stated in the 'alternative sprites' column must be provided instead. |
||
− | {| class=" |
+ | {| class="wikitable sortable" |
!name |
!name |
||
!use |
!use |
||
Line 60: | Line 60: | ||
==Canal properties== |
==Canal properties== |
||
− | item ( |
+ | item (FEAT_CANALS, item_name, id) { ... } |
{| class="t" |
{| class="t" |
||
Line 71: | Line 71: | ||
| There is currently only one possible bit: <code style="color:darkgreen">WATERFEATURE_ALTERNATIVE_SPRITES</code> |
| There is currently only one possible bit: <code style="color:darkgreen">WATERFEATURE_ALTERNATIVE_SPRITES</code> |
||
|} |
|} |
||
− | |||
== Canal variables == |
== Canal variables == |
||
− | {| class=" |
+ | {| class="wikitable sortable" |
! name |
! name |
||
! value range |
! value range |
Latest revision as of 20:56, 30 August 2022
Vehicles, Stations, Canals, Bridges, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Terrain
- common props | vars | CBs
- train | roadveh | ship | aircr props
- common variables
- industry props | vars | CBs
- tile props | vars | CBs
- airport props | vars | CBs
- tile props | vars | CBs
Canal ids
The used item ID defines what sprites this item provides. Item IDs should be picked from the following table (WF_XXX).
The 'normal sprites' column contains the amount of sprites that should be provided for this feature. If the appropriate bit in the graphics_flags-property (see below) the amount of sprites stated in the 'alternative sprites' column must be provided instead.
Canal properties
item (FEAT_CANALS, item_name, id) { ... }
name | value range | comment |
---|---|---|
graphic_flags | bitmask(flags) | There is currently only one possible bit: WATERFEATURE_ALTERNATIVE_SPRITES
|
Canal variables
Canal callbacks
callback | return value | comment |
---|---|---|
default | spriteset | graphics for the canal id |
sprite_offset | numeric offset into the spriteset for the canal id |