Difference between revisions of "Callback: Show additional text in fund/building window"
From GRFSpecs
Jump to navigationJump to searchm (Create a separate page for each callback) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Show additional text in fund/building window (38/15C) == |
== Show additional text in fund/building window (38/15C) == |
||
− | This callback allows you to display extra information in the industry fund and object building windows |
+ | This callback allows you to display extra information in the industry fund and object building windows. |
+ | |||
+ | {| |
||
+ | |- |
||
+ | !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). The text stack starts at register 0x101. |
||
+ | |} |
||
+ | The text must begin with a colouring special character and should not be longer than three lines (automatic line breaks are provided, but you can use char 0D for a manual line break). Since the industry isn't built yet, you can't access any industry variables during this callback. Same holds for objects. |
||
+ | |||
+ | Callback 38 is available from TTDPatch 2.0.1 a72 and above. |
||
+ | |||
⚫ | |||
+ | |||
+ | {{ottdp|15|no}} The contents of registers 100h..10Fh are copied onto the text reference stack. |
||
⚫ | |||
[[Category:Callbacks]] |
[[Category:Callbacks]] |
Latest revision as of 13:48, 13 May 2025
Show additional text in fund/building window (38/15C)
This callback allows you to display extra information in the industry fund and object building windows.
The text must begin with a colouring special character and should not be longer than three lines (automatic line breaks are provided, but you can use char 0D for a manual line break). Since the industry isn't built yet, you can't access any industry variables during this callback. Same holds for objects.
Callback 38 is available from TTDPatch 2.0.1 a72 and above.
1.1-14
2.6 The contents of registers 100h..105h are copied onto the text reference stack.
15
The contents of registers 100h..10Fh are copied onto the text reference stack.