Difference between revisions of "Callback: Show additional text in fund/building window"
(grf version 8) |
(use new grf templates) |
||
Line 3: | Line 3: | ||
This callback allows you to display extra information in the industry fund and object building windows. The return value should be the number of a D0xx text to be displayed. 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. |
This callback allows you to display extra information in the industry fund and object building windows. The return value should be the number of a D0xx text to be displayed. 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. |
||
− | {{ |
+ | {{grfFrom|8}} For GRF version 8 and above you can return 400 to display no text (instead of failing the callback). |
Callback 38 is available from TTDPatch 2.0.1 a72 and above. |
Callback 38 is available from TTDPatch 2.0.1 a72 and above. |
Latest revision as of 13:35, 1 April 2012
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 return value should be the number of a D0xx text to be displayed. 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.
GRFv≥8 For GRF version 8 and above you can return 400 to display no text (instead of failing the callback).
Callback 38 is available from TTDPatch 2.0.1 a72 and above. Since OpenTTD r20086 and TTDPatch r2354, the contents of registers 100h..105h are copied onto the text reference stack.