Callback: Layout name: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
grf version 8 |
|||
| (One intermediate revision 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. |
This callback allows you to show a name for an airport layout. |
||
{| |
|||
{{grf|8}} For GRF version 8 and above you can return 400 to display no text (instead of failing the callback). |
|||
|- |
|||
!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. |
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. |
||
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.
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.