From 8999f9237b6382b15474e53c0a6dc1cc1df99e49 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 3 Feb 2023 17:06:03 +0000 Subject: [PATCH] Documentation: Add link anchors and index for NewGRF NML additions --- docs/newgrf-additions-nml.html | 35 ++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/docs/newgrf-additions-nml.html b/docs/newgrf-additions-nml.html index 7ce7997d96..69460d1ac7 100644 --- a/docs/newgrf-additions-nml.html +++ b/docs/newgrf-additions-nml.html @@ -32,7 +32,22 @@
  • New landscape (FEAT_NEWLANDSCAPE)
  • -

    Builtin functions

    +

    Sections

    + +
    + +

    Builtin functions

    extended_feature_test(feature_name[, min_version[, max_version]])

    @@ -41,7 +56,7 @@ In most cases it is not necessary to use this function, as extended properties (listed below) which are not supported are simply skipped/ignored.

    -

    Railtypes properties

    +

    Railtype properties

    @@ -104,7 +119,7 @@
    PropertyValue rangeComment
    enable_programmable_pre_signals0 or 1
    -

    Railtypes variables

    +

    Railtype variables

    Variables in the table below which are not supported by the version of OpenTTD being used return a value of 0.

    @@ -149,7 +164,7 @@
    VariableValue rangeComment
    -

    Roadtype properties

    +

    Roadtype properties

    @@ -163,7 +178,7 @@
    PropertyValue rangeComment
    roadtype_extra_flagsbitmask(ROADTYPE_EXTRA_FLAG_XXX, ...)
    -

    Tramtype properties

    +

    Tramtype properties

    @@ -177,7 +192,7 @@
    PropertyValue rangeComment
    tramtype_extra_flagsbitmask(TRAMTYPE_EXTRA_FLAG_XXX, ...)
    -

    Object properties

    +

    Object properties

    PropertyValue rangeComment
    use_land_ground0 or 1 @@ -262,7 +277,7 @@

    -

    Object variables

    +

    Object variables

    Variables in the table below which are not supported by the version of OpenTTD being used return a value of 0.

    @@ -275,7 +290,7 @@ This is useful for xoring with the tile_slope variable, because if this variable is unavailable then the result is still the underlying tile slope.
    VariableValue rangeComment
    -

    Global variables properties

    +

    Global variables properties

    The variables listed below should set inside an item and property block of the form:

     item (FEAT_GLOBALVARS) {
     	property {
    @@ -341,7 +356,7 @@ item (FEAT_GLOBALVARS) {
     }
     		

    -

    Replace new sprites

    +

    Replace new sprites

    @@ -381,7 +396,7 @@ item (FEAT_GLOBALVARS) {
    TypeNumber of sprites Comment
    PROGRAMMABLE_PRE_SIGNAL32
    -

    Signal graphics using switches

    +

    Signal graphics using switches

    This feature allows signal sprites to be specified using switches in a very similar manner to railtype signals in item (FEAT_RAILTYPES) { graphics { signals: ... } } blocks.