Difference between revisions of "Callback: Layout name"

From GRFSpecs
Jump to navigationJump to search
m (Create a separate page for each callback)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Airport layout name (156) ==
 
== Airport layout name (156) ==
   
This callback allows you to show a name for an airport layout. It should return a D0xx StringID. This callback is always called when available, you do not need to set a bit in any action0 property to enable it. Available for OpenTTD since r20273.
+
This callback allows you to show a name for an airport layout.
  +
  +
{|
  +
|-
  +
!Return value!!Version!!Meaning
  +
|-
  +
|0000..03FF|| ||D0xx text to display.
  +
|-
  +
|0400||{{grfFrom|8}}||Display no text (same as callback failure).
  +
|-
  +
|040F||{{ottdp|15|no}}||Display text using text ID from register 0x100 (not limited to D0xx texts).
  +
|}
  +
  +
This callback is always called when available, you do not need to set a bit in any action0 property to enable it. Available for OpenTTD since r20273.
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]

Latest revision as of 13:55, 13 May 2025

Airport layout name (156)

This callback allows you to show a name for an airport layout.

Return value Version Meaning
0000..03FF D0xx text to display.
0400 GRFv≥8 Display no text (same as callback failure).
040F Supported by OpenTTD 1515 Not supported by TTDPatch Display text using text ID from register 0x100 (not limited to D0xx texts).

This callback is always called when available, you do not need to set a bit in any action0 property to enable it. Available for OpenTTD since r20273.