Callback: Show additional text in fund/building window

From GRFSpecs
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.

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). 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.

Supported by OpenTTD 1.1-14 (r20086)1.1-14 Supported by TTDPatch 2.6 (r2354)2.6 The contents of registers 100h..105h are copied onto the text reference stack.

Supported by OpenTTD 1515 Not supported by TTDPatch The contents of registers 100h..10Fh are copied onto the text reference stack.