Add custom signal style properties to set electric/semaphore enabled types
This commit is contained in:
@@ -456,24 +456,56 @@ item (FEAT_GLOBALVARS) {
|
||||
</tr>
|
||||
<tr><td>style_name</td><td>string</td>
|
||||
<td>
|
||||
Set the name of the most recently defined style (defined using the define_style property).<br />
|
||||
Set the name of the most recently defined style (defined using the <span class="code">define_style</span> property).<br />
|
||||
This property should be used if using the define_style property, as otherwise the style will have no name.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>style_electric_enabled</td><td>bitmask(SIGNAL_TYPE_XXX, ...)</td>
|
||||
<td>
|
||||
Set which electric signal types may be built using this signal style for the most recently defined style (defined using the <span class="code">define_style</span> property).<br />
|
||||
At least one of this property and <span class="code">style_semaphore_enabled</span> should be set to a non-zero value, as otherwise
|
||||
no signal types will be enabled for this custom signal style.<br />
|
||||
If PROG or NO_ENTRY are set, it is not necessary to also set <span class="code">enable_programmable_pre_signals</span> or <span class="code">enable_no_entry_signals</span>.
|
||||
<dl>
|
||||
<dt>NORMAL</dt>
|
||||
<dd>Normal/block signal</dd>
|
||||
<dt>ENTRY</dt>
|
||||
<dd>Pre-signal entry</dd>
|
||||
<dt>EXIT</dt>
|
||||
<dd>Pre-signal exit</dd>
|
||||
<dt>COMBO</dt>
|
||||
<dd>Pre-signal combo</dd>
|
||||
<dt>PBS</dt>
|
||||
<dd>Two-way PBS</dd>
|
||||
<dt>PBS_ONEWAY</dt>
|
||||
<dd>One-way PBS</dd>
|
||||
<dt>PROG</dt>
|
||||
<dd>Programmable pre-signal</dd>
|
||||
<dt>NO_ENTRY</dt>
|
||||
<dd>No-entry</dd>
|
||||
</dl>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>style_semaphore_enabled</td><td>bitmask(SIGNAL_TYPE_XXX, ...)</td>
|
||||
<td>
|
||||
Set which semaphore signal types may be built using this signal style for the most recently defined style (defined using the <span class="code">define_style</span> property).<br />
|
||||
See <span class="code">style_electric_enabled</span>, above.
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>style_no_aspect_increase</td><td>0 or 1</td>
|
||||
<td>
|
||||
Set whether the most recently defined style (defined using the define_style property) does not increase
|
||||
Set whether the most recently defined style (defined using the <span class="code">define_style</span> property) does not increase
|
||||
the signal aspect with respect to the signals either side (i.e. function like a banner repeater).
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>style_always_reserve_through</td><td>0 or 1</td>
|
||||
<td>
|
||||
Set whether reserve through is unconditionally enabled for the most recently defined style (defined using the define_style property).
|
||||
Set whether reserve through is unconditionally enabled for the most recently defined style (defined using the <span class="code">define_style</span> property).
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>style_lookahead_extra_aspects</td><td>0 - 6</td>
|
||||
<td>
|
||||
Set the look-ahead extra aspects for the most recently defined style (defined using the define_style property).<br />
|
||||
Set the look-ahead extra aspects for the most recently defined style (defined using the <span class="code">define_style</span> property).<br />
|
||||
This property only makes a difference when the "limit train lookahead to signal aspect" game setting is enabled.<br />
|
||||
This limits the signal aspect which the hypothetical train driver can "read" from the signal without affecting signal aspect propagation to other signals, or variable <span class="code">extra_callback_info2</span>.<br />
|
||||
Example values could include: 1 for traditional banner repeater signals, or 0 for shunt signals.<br />
|
||||
|
||||
@@ -431,9 +431,35 @@
|
||||
The Action 0 Id field is not used, the value is ignored.
|
||||
</p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">action0_signals_style</font>, version 1</p>
|
||||
<h4 id="signals_style_electric_enabled">Set custom signal style train electric signal types enabled (mappable property: signals_style_electric_enabled)</h4>
|
||||
<p>This applies to the most recent custom signal style defined using the <a href="#signals_define_style">signals_define_style</a> property.<br />
|
||||
This sets which electric signal types may be built using this signal style.</p>
|
||||
<p>At least one of this property and <a href="#signals_style_semaphore_enabled">signals_style_semaphore_enabled</a> should be set to a non-zero value, as otherwise
|
||||
no signal types will be enabled for this custom signal style.</p>
|
||||
<p>The property length is 4 bytes:
|
||||
<table>
|
||||
<tr><th>Bit</th><th>Value</th><th>Meaning</th></tr>
|
||||
<tr><td>0</td><td>1</td><td>Normal/block</td></tr>
|
||||
<tr><td>1</td><td>2</td><td>Pre-signal entry</td></tr>
|
||||
<tr><td>2</td><td>4</td><td>Pre-signal exit</td></tr>
|
||||
<tr><td>3</td><td>8</td><td>Pre-signal combo</td></tr>
|
||||
<tr><td>4</td><td>10</td><td>Two-way PBS</td></tr>
|
||||
<tr><td>5</td><td>20</td><td>One-way PBS</td></tr>
|
||||
<tr><td>6</td><td>40</td><td>Programmable pre-signal</td></tr>
|
||||
<tr><td>7</td><td>80</td><td>No-entry</td></tr>
|
||||
</table>
|
||||
If the programmable pre-signal and/or no-entry bits are set, it is not necessary to also set <a href="#signals_enable_programmable_signals">signals_enable_programmable_signals</a>
|
||||
or <a href="#signals_enable_no_entry_signals">signals_enable_no_entry_signals</a>.
|
||||
</p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">action0_signals_style</font>, version 1</p>
|
||||
<h4 id="signals_style_semaphore_enabled">Set custom signal style train semaphore signal types enabled (mappable property: signals_style_semaphore_enabled)</h4>
|
||||
<p>This applies to the most recent custom signal style defined using the <a href="#signals_define_style">signals_define_style</a> property.<br />
|
||||
This sets which semaphore signal types may be built using this signal style.</p>
|
||||
<p>The property length is 4 bytes and has an identical format to <a href="#signals_style_electric_enabled">signals_style_electric_enabled</a>, above.</p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">action0_signals_style</font>, version 1</p>
|
||||
<h4 id="signals_style_no_aspect_increase">Set custom signal style no aspect increase mode (mappable property: signals_style_no_aspect_increase)</h4>
|
||||
<p>This applies to the most recent custom signal style defined using the <a href="#signals_define_style">signals_define_style</a> property.<br />
|
||||
When enabled, signals using this style do not increase the signal aspect with respect to the signals either side (i.e. function like a banner repeater).</p>
|
||||
When enabled, signals using this style do not increase the signal aspect with respect to the signals either side (i.e. the behaviour is like a banner repeater).</p>
|
||||
<p>The property length is 1 byte. 0 is disabled (default). 1 is enabled.<br />
|
||||
The Action 0 Id field is not used, the value is ignored.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user